@charset "utf-8";

/* -- form#mail_form, dl, dt, dd -------------------------------------------------------------------------------- */

/* --- moto にはこの上がある
 */
/* -- Quill エディタ用の独自 CSS -------------------------------------------------------------------------------- */

/* Quillエディタコンテンツ全体のスタイルを定義 */
form#mail_form .ql-editor {
	font-family: Arial, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: #333;
	margin: 0;
	padding: 20px; /* 必要に応じて調整 */
	box-sizing: border-box; /* 既存のbox-sizingを上書き */
}

/* 見出し */
form#mail_form .ql-editor h1,
form#mail_form .ql-editor .ql-header-1 {
	font-size: 2em;
	margin: 0.67em 0;
	text-align: left; /* デフォルトの配置 */
}

form#mail_form .ql-editor h2,
form#mail_form .ql-editor .ql-header-2 {
	font-size: 1.5em;
	margin: 0.75em 0;
	text-align: left;
}

form#mail_form .ql-editor img {
	width: 100%;
	max-width: 100%;
	height: auto;
	display: block;
	margin: 0 auto;
}

form#mail_form .ql-editor {
	padding: 0;
}

/* 段落 */
form#mail_form .ql-editor p {
	/*margin: 1em 0;*/
}

/* テキスト装飾 */
form#mail_form .ql-editor .ql-bold {
	font-weight: bold;
}

form#mail_form .ql-editor .ql-italic {
	font-style: italic;
}

form#mail_form .ql-editor .ql-underline {
	text-decoration: underline;
}

form#mail_form .ql-editor .ql-strike {
	text-decoration: line-through;
}

/* リスト */
form#mail_form .ql-editor ol,
form#mail_form .ql-editor .ql-list-ordered {
	/*list-style-type: decimal;*/
	margin-left: 2em; /* インデントを調整 */
	padding-left: 0; /* パディングをリセット */
}

form#mail_form .ql-editor ul,
form#mail_form .ql-editor .ql-list-bullet {
	list-style-type: disc;
	margin-left: 2em; /* インデントを調整 */
	padding-left: 0; /* パディングをリセット */
}

form#mail_form .ql-editor li {
	position: relative;
	margin: 0.5em 0;
	padding-left: 1.5em; /* リスト番号のスペースを確保 */
	box-sizing: border-box; /* 既存のbox-sizingを上書き */
}

/* リストアイテム内の .ql-ui スパン */
form#mail_form .ql-editor li .ql-ui {
	position: absolute;
	left: -1.5em; /* スパンをリスト番号の左側に配置 */
	top: 0;
	width: 1em;
	height: 1em;
	/*background-color: transparent;*/
	display: inline-block;
	vertical-align: middle;
	box-sizing: border-box; /* 既存のbox-sizingを上書き */
}

/* ブロッククォート */
form#mail_form .ql-editor blockquote {
	border-left: 4px solid #ccc;
	padding-left: 1em;
	color: #777;
	font-style: italic;
	margin: 1em 2em ;
}

/* テキストサイズ */
form#mail_form .ql-editor .ql-size-small {
	font-size: 0.75em;
}

form#mail_form .ql-editor .ql-size-large {
	font-size: 1.5em;
}

form#mail_form .ql-editor .ql-size-huge {
	font-size: 2.5em;
}

/* テキストカラー */
form#mail_form .ql-editor .ql-color-red {
	color: #e60000;
}

form#mail_form .ql-editor .ql-color-blue {
	color: #0066ff;
}

form#mail_form .ql-editor .ql-color-green {
	color: #008000;
}

/* 背景カラー */
form#mail_form .ql-editor .ql-background-blue {
	background-color: #e0f7fa;
}

form#mail_form .ql-editor .ql-background-yellow {
	background-color: #fff9c4;
}

form#mail_form .ql-editor .ql-background-green {
	background-color: #c8e6c9;
}

/* テキスト配置 */
form#mail_form .ql-editor .ql-align-center {
	text-align: center;
}

form#mail_form .ql-editor .ql-align-right {
	text-align: right;
}

form#mail_form .ql-editor .ql-align-justify {
	text-align: justify;
}

/* リンク */
form#mail_form .ql-editor .ql-link {
	color: #1a0dab;
	text-decoration: underline;
}

/* 画像 */
form#mail_form .ql-editor .ql-image {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 1em 0;
}

/* その他の要素調整 */
form#mail_form .ql-editor ol,
form#mail_form .ql-editor ul {
	padding-left: 20px;
}

form#mail_form .ql-editor li {
	margin: 0.5em 0;
}

form#mail_form .ql-editor br {
	line-height: 1.6;
}

/* コードブロック */
form#mail_form .ql-editor pre,
form#mail_form .ql-editor .ql-code-block {
	background-color: #f5f5f5;
	padding: 10px;
	border-radius: 4px;
	font-family: 'Courier New', Courier, monospace;
	overflow-x: auto;
	margin: 1em 0;
}

/* インラインコード */
form#mail_form .ql-editor code,
form#mail_form .ql-editor .ql-inline-code {
	background-color: #f5f5f5;
	padding: 2px 4px;
	border-radius: 4px;
	font-family: 'Courier New', Courier, monospace;
}

/* テーブル */
form#mail_form .ql-editor table {
	width: 100%;
	border-collapse: collapse;
	margin: 1em 0;
}

form#mail_form .ql-editor table,
form#mail_form .ql-editor th,
form#mail_form .ql-editor td {
	border: 1px solid #ddd;
}

form#mail_form .ql-editor th,
form#mail_form .ql-editor td {
	padding: 8px;
	text-align: left;
}

form#mail_form .ql-editor th {
	background-color: #f2f2f2;
}

/* レスポンシブデザイン */
@media (max-width: 600px) {
	form#mail_form .ql-editor {
		font-size: 14px;
	}

	form#mail_form .ql-editor li {
		padding-left: 1.2em;
	}

	form#mail_form .ql-editor li .ql-ui {
		left: -1.2em;
		width: 0.8em;
		height: 0.8em;
	}
}

/* リスト番号の調整 */
form#mail_form .ql-editor ol {
	counter-reset: list-item;
}

form#mail_form .ql-editor ol li {
	counter-increment: list-item;
	position: relative; /* 既に設定済みですが再確認 */
}

form#mail_form .ql-editor ol li::before {
	/*content: counter(list-item) ". ";*/
	/*position: absolute;*/
	/*left: -2em; !* 番号とテキストの間隔を調整 *!*/
	/*width: 1.5em;*/
	/*text-align: right;*/
	/*font-weight: bold;*/
}

/* .ql-ui スパンを非表示にする（番号が不要な場合） */
form#mail_form .ql-editor .ql-ui {
	display: none;
}
