:root {
	/* 曲ページ(プレイヤー・MML・情報)の最大幅 */
	--mml-page-width: 960px;
	/* コメントは一行が長いと読み書きしづらいので狭めにする */
	--mml-comment-width: 720px;
}
#mmlbbs_body {
	margin: 0px;
	padding: 1em;
}
/* 曲ページ全体(プレイヤー・MML・詳細)の幅を制限して読みやすくする */
.mml-page {
	max-width: var(--mml-page-width);
	margin-left: auto;
	margin-right: auto;
}
/* 広告(mml_adBox)は本文と同じ幅で中央寄せにする */
.ad-box {
	max-width: var(--mml-page-width);
	margin: 12px auto;
	text-align: center;
}
.ad-box ins,
.ad-box iframe,
.ad-box img {
	margin-left: auto;
	margin-right: auto;
}
#mmlbbs_body h1 {
	font-size: 1.2em;
	margin-top: 0px;
	margin-bottom: 8px;
	padding: 10px;
	background-color: #ffc0c0;
	color: black;
	border-left: 1em solid #AA6666;
}
#login_form {
	line-height: 1.5em;
	border-left: 1em solid #EEE;
	padding-left: 1em;
}
#login_form input[type=submit] {
	margin: 0.3em;
}
#login_form label {
	color: #227;
}
.headertitle {
	font-size: 1.5em;
	font-weight: bold;
	color: #5a3b3b;
	margin: 0px;
	padding: 16px 18px 14px 18px;
	background: linear-gradient(180deg, #ffd6d6 0%, #ffc0c0 100%);
	border-bottom: 1px solid #f0b0b0;
	letter-spacing: 0.02em;
}

a.indextitle {
	color: #644;
	text-decoration: none;
}

a:hover.indextitle {
	color: #f44;
	text-decoration: none;
}

a.userlink {
	text-decoration: none;
	color: #644;
}

a:hover.userlink {
	text-decoration: none;
	color: #f44;
}

a.tag {
	padding: 1px 6px;
	background-color: #f2f4fa;
	border-radius: 10px;
	font-size: 0.9em;
	line-height: 1.6em;
	color: #667799;
	text-decoration: none;
	white-space: nowrap;
}

a:hover.tag {
	background-color: #e6ebf7;
	color: #f44;
	text-decoration: none;
}

#bbsheader {
	width: 100%;
	padding: 0px;
	margin: 0px;
	box-shadow: 0 1px 4px rgba(170, 102, 102, 0.15);
}

.desc {
	font-size: 0.8em;
	color: #909090;
	padding: 4px;
	margin: 0px;
}

.q_label {
	font-weight: bold;
}

.form_section {
	margin-left: 50px;
	line-height: 1.5em;
}

.form_section h3 {
	background-color: #ffcccc;
	padding: 5px;
}

.error_str {
	color: #FF0000;
}

#foot_copyright {
	text-align: center;
	margin: 16px 12px 12px 12px;
	padding: 16px;
	background: linear-gradient(180deg, #fff8f8 0%, #ffffff 70%);
	border: 1px solid #f0d8d8;
	border-top: 3px solid #ffc0c0;
	border-radius: 8px;
	font-size: 12px;
	color: #806666;
}
#foot_copyright .foot_title {
	font-size: 1.1em;
	font-weight: bold;
	color: #644;
}
#foot_copyright .foot_since {
	font-weight: normal;
	font-size: 0.85em;
	color: #aa9999;
}
#foot_copyright .foot_links {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	margin: 10px 0;
}
#foot_copyright .foot_links a {
	display: inline-block;
	padding: 4px 12px;
	background-color: #fff;
	border: 1px solid #f0d0d0;
	border-radius: 14px;
	color: #644;
	text-decoration: none;
	transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
#foot_copyright .foot_links a:hover {
	background-color: #ffe8e8;
	border-color: #ffa0a0;
	color: #f44;
}
#foot_copyright .foot_copy a {
	color: #aa9999;
	text-decoration: none;
}
#foot_copyright .foot_copy a:hover {
	color: #f44;
}
#foot_ad {
	max-width: var(--mml-page-width);
	margin: 16px auto 0 auto;
	text-align: center;
}
#foot_ad ins,
#foot_ad iframe {
	margin-left: auto;
	margin-right: auto;
}

#header_menu {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	flex-wrap: wrap;
	gap: 14px;
	background-color: #fff2f2;
	border-bottom: 1px solid #ffe0e0;
	margin: 0px;
	padding: 6px 12px;
	font-size: 0.8em;
}
#header_menu a {
	color: #886666;
	text-decoration: none;
}
#header_menu a:hover {
	color: #f44;
	text-decoration: underline;
}

#header_menu_linkbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	background-color: #fff8f8;
	border-bottom: 1px solid #ffe0e0;
	margin: 0px;
	padding: 8px 12px;
	font-size: 0.8em;
}
.nav-item {
	display: inline-block;
	padding: 5px 12px;
	background-color: #fff;
	border: 1px solid #f0d0d0;
	border-radius: 14px;
	color: #644;
	text-decoration: none;
	line-height: 1.4em;
	white-space: nowrap;
	transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.nav-item:hover {
	background-color: #ffe8e8;
	border-color: #ffa0a0;
	color: #f44;
}
.nav-item.is-primary {
	background-color: #AA6666;
	border-color: #AA6666;
	color: #fff;
	font-weight: bold;
}
.nav-item.is-primary:hover {
	background-color: #c07878;
	border-color: #c07878;
	color: #fff;
}
.nav-item.is-login {
	background-color: #fffbe0;
	border-color: #e8d890;
	color: #886600;
}

.smart_list {
	width: 100%;
	background-color: #fff9f9;
	border-bottom-style: solid;
	border-bottom-color: orange;
	border-bottom-width: 2px;
}

.posttitle {
	font-size: 18px;
	margin-left: auto;
	margin-right: auto;
	margin-top: 10px;
	margin-bottom: 10px;
	padding-left: 12px;
	padding-right: 12px;
	padding-top: 20px;
	padding-bottom: 20px;
	background-color: #FFF0F0;
	border-left-style: solid;
	border-left-color: #ffc0c0;
	border-left-width: 15px;
	text-align: center;
}

.userlist {
	margin: 8px 0;
	padding: 0;
	border: 1px solid #f2e8e8;
	border-radius: 8px;
	overflow: hidden;
}
.userlist-row {
	display: flex;
	align-items: baseline;
	gap: 10px;
	padding: 8px 12px;
	border-bottom: 1px solid #f7f0f0;
	text-decoration: none;
	color: #644;
	transition: background-color 0.12s;
}
.userlist-row:last-child {
	border-bottom: none;
}
.userlist-row:hover {
	background-color: #fff7f7;
}
.userlist-id {
	flex: none;
	width: 4em;
	color: #c4b4b4;
	font-size: 0.75em;
	text-align: right;
}
.userlist-name {
	flex: none;
	width: 12em;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-weight: bold;
	font-size: 0.9em;
}
.userlist-row:hover .userlist-name {
	color: #f44;
}
.usercomment {
	flex: 1 1 10em;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	color: #a09696;
	font-size: 0.78em;
}
.usercomment-empty {
	color: #c8c0c0;
}
@media screen and (max-width: 600px) {
	.userlist-row {
		flex-wrap: wrap;
		gap: 4px 8px;
	}
	.userlist-name {
		width: auto;
		max-width: 60%;
	}
	.usercomment {
		flex: 1 1 100%;
		padding-left: 4.6em;
	}
}

.userpagedata {
	padding: 20px;
}

#users_part h2 {
	font-size: 20px;
	border-bottom-style: solid;
	border-bottom-color: #ffc0c0;
	border-bottom-width: 2px;
}

h2 {
	font-size: 1.3em;
	border-bottom-style: solid;
	border-bottom-color: #ffc0c0;
	border-bottom-width: 2px;
}

.usershorz {
	padding: 10px 0;
}

/* ユーザーのチップ一覧 */
.user-chips {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
	gap: 6px;
}
.user-chip {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 10px;
	background-color: #fff;
	border: 1px solid #f2e2e2;
	border-radius: 20px;
	color: #644;
	text-decoration: none;
	transition: background-color 0.15s, border-color 0.15s, transform 0.15s;
}
.user-chip:hover {
	background-color: #fff7f7;
	border-color: #ffc0c0;
	transform: translateY(-1px);
}
.user-chip-icon {
	flex: none;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 1px solid #f0e0e0;
	background-color: #fff;
	object-fit: cover;
}
.user-chip-name {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-size: 0.85em;
}
.user-chip:hover .user-chip-name {
	color: #f44;
}
.user-chip-count {
	flex: none;
	padding: 0 8px;
	background-color: #fff2f2;
	border-radius: 10px;
	color: #c08080;
	font-size: 0.75em;
	line-height: 1.8em;
}
.user-chip-rank {
	position: absolute;
	top: -4px;
	left: -4px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background-color: #ccc;
	color: #fff;
	font-size: 0.65em;
	font-weight: bold;
	line-height: 18px;
	text-align: center;
}
.user-chip.is-top1 {
	border-color: #f0d090;
	background-color: #fffdf3;
}
.user-chip.is-top1 .user-chip-rank {
	background-color: #e8b64c;
}
.user-chip.is-top2 .user-chip-rank {
	background-color: #b8b8c0;
}
.user-chip.is-top3 .user-chip-rank {
	background-color: #cc9a76;
}
.user-chip.is-top1 .user-chip-name,
.user-chip.is-top2 .user-chip-name,
.user-chip.is-top3 .user-chip-name {
	font-weight: bold;
}

/* ユーザー検索フォーム */
.user-search {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin: 10px 0 20px 0;
	padding: 12px 14px;
	background-color: #fffafa;
	border: 1px solid #f2e2e2;
	border-radius: 8px;
	font-size: 0.85em;
}
.user-search label {
	color: #AA6666;
	font-weight: bold;
}
.user-search input[type="text"] {
	flex: 1 1 14em;
	min-width: 0;
	padding: 6px 10px;
	border: 1px solid #e8d8d8;
	border-radius: 14px;
	font-size: 1em;
}
.user-search input[type="text"]:focus {
	outline: none;
	border-color: #ffa0a0;
}

h2.mmllist {
	font-size: 20px;
	border-bottom-style: solid;
	border-bottom-color: #ffc0c0;
	border-bottom-width: 2px;
}

.islogin {
	padding: 2px 8px;
	background-color: #fffbe0;
	border: 1px solid #e8d890;
	border-radius: 10px;
	font-weight: bold;
}
#header_menu a.islogin {
	color: #886600;
}

.rightinfo {
	text-align: right;
	font-size: 12px;
}

.hint {
	color: #AA6666;
	font-size: 14px;
}

.liststar {
	color: #ff9090;
	font-size: 10px;
}

.row1 {
	background-color: #ffffff;
}

.row2 {
	background-color: #fffff0;
}

.comment {
	font-size: 0.8em;
	line-height: 1.4em;
}

.indexcomment {
	font-size: 0.8em;
	line-height: 1.4em;
	color: #633;
}

#downloadCounterArea {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 10px;
	margin: 16px 0;
}
.opt_box {
	padding: 10px 12px;
	background-color: #fffafa;
	border: 1px solid #f2e2e2;
	border-radius: 8px;
}
.opt_box.is-wide {
	grid-column: 1 / -1;
}
.opt_title {
	margin-bottom: 4px;
	color: #AA6666;
	font-size: 0.75em;
	font-weight: bold;
}
.opt_value {
	color: #644;
	font-size: 0.85em;
	line-height: 1.6em;
}
.fav-stars img {
	vertical-align: middle;
}
.fav-action-row {
	margin-top: 4px;
}
.fav-action {
	color: #AA6666;
	font-size: 0.9em;
	text-decoration: none;
}
.fav-action:hover {
	color: #f44;
	text-decoration: underline;
}

/* トップページの統計とサブメニュー */
.board-stats {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px 20px;
	margin: 4px 0 12px 0;
	padding: 16px 20px;
	background: linear-gradient(115deg, #fff4f4 0%, #fffaf0 60%, #fdf4fb 100%);
	border: 1px solid #f5dede;
	border-radius: 10px;
}
.board-stats-body {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 4px 10px;
}
.board-stats-num {
	font-size: 1.9em;
	font-weight: bold;
	line-height: 1.2em;
	color: #AA6666;
	letter-spacing: 0.02em;
}
.board-stats-unit {
	margin-left: 2px;
	font-size: 0.55em;
	color: #c09090;
}
.board-stats-label {
	font-size: 0.85em;
	color: #9a8888;
}
.board-stats-btn {
	flex: none;
	display: inline-block;
	padding: 9px 22px;
	background-color: #AA6666;
	border-radius: 20px;
	color: #fff;
	font-size: 0.85em;
	font-weight: bold;
	text-decoration: none;
	box-shadow: 0 2px 5px rgba(170, 102, 102, 0.25);
	transition: background-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.board-stats-btn:hover {
	background-color: #c07878;
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 4px 10px rgba(170, 102, 102, 0.3);
}
.board-nav {
	margin: 0 0 20px 0;
	padding: 12px 14px;
	background-color: #fffafa;
	border: 1px solid #f2e2e2;
	border-radius: 10px;
}
.board-nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}
.board-nav-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 14px;
	background-color: #fff;
	border: 1px solid #f0d0d0;
	border-radius: 16px;
	color: #644;
	font-size: 0.8em;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.board-nav-item:hover {
	background-color: #ffe8e8;
	border-color: #ffa0a0;
	color: #f44;
}
.board-nav-icon {
	font-size: 1.1em;
	line-height: 1em;
}
.board-nav-tags {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 10px;
	padding-top: 10px;
	border-top: 1px solid #f5eaea;
}
.board-nav-tags-label {
	color: #a09090;
	font-size: 0.75em;
}
.board-nav-tags a {
	text-decoration: none;
}
.board-nav-tags .tag {
	display: inline-block;
	padding: 2px 10px;
	background-color: #f2f4fa;
	border-radius: 12px;
	color: #667799;
	font-size: 0.75em;
	line-height: 1.7em;
	white-space: nowrap;
	transition: background-color 0.15s, color 0.15s;
}
.board-nav-tags a:hover .tag {
	background-color: #e6ebf7;
	color: #f44;
}

#commentArea {
	margin-left: auto;
	margin-right: auto;
}

/* --------------------------------------------
 * 曲の投稿・編集フォーム (post.php?action=edit)
 * -------------------------------------------- */
.form-card {
	margin: 16px 0;
	background-color: #fff;
	border: 1px solid #f2e2e2;
	border-radius: 10px;
	overflow: hidden;
}
.form-row {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	padding: 14px 18px;
	border-bottom: 1px solid #faf1f1;
}
.form-row:last-child {
	border-bottom: none;
}
.form-row:nth-child(even) {
	background-color: #fffcfc;
}
.form-label {
	flex: none;
	width: 8.5em;
	padding-top: 6px;
	color: #AA6666;
	font-size: 0.85em;
	font-weight: bold;
	line-height: 1.4em;
}
.form-field {
	flex: 1 1 auto;
	min-width: 0;
}
.form-row.is-submit {
	justify-content: center;
	padding: 18px;
	background-color: #fffafa;
}
.form-input {
	width: 100%;
	padding: 8px 10px;
	background-color: #fff;
	border: 1px solid #e8d8d8;
	border-radius: 6px;
	color: #5a5050;
	font-size: 0.95em;
	line-height: 1.5em;
	box-sizing: border-box;
}
.form-input:focus {
	outline: none;
	border-color: #ffa0a0;
	box-shadow: 0 0 0 2px #ffeef0;
}
.form-input.is-select {
	width: auto;
	max-width: 100%;
	padding: 7px 10px;
	cursor: pointer;
}
.form-input.is-mml {
	font-family: "SFMono-Regular", Consolas, "Osaka-Mono", monospace;
	font-size: 0.85em;
	line-height: 1.6em;
	resize: vertical;
	white-space: pre;
}
.form-field .hint {
	margin-top: 6px;
	color: #b09a9a;
	font-size: 0.75em;
	line-height: 1.6em;
}
.form-field .hint a {
	color: #AA6666;
}
.form-storage {
	margin-top: 8px;
	color: #a09090;
	font-size: 0.8em;
}
/* ライセンス選択 */
.license-select .license-preview {
	margin-top: 8px;
}
/* 投稿ボタンまわり */
.form-confirm {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	color: #7a6666;
	font-size: 0.85em;
	cursor: pointer;
	user-select: none;
}
.form-confirm input {
	margin: 0;
	accent-color: #AA6666;
	cursor: pointer;
}
.form-confirm a {
	color: #AA6666;
}
.form-submit {
	margin-top: 14px;
	text-align: center;
}
.form-submit-btn {
	padding: 10px 32px;
	background-color: #AA6666;
	border: none;
	border-radius: 20px;
	color: #fff;
	font-size: 0.95em;
	font-weight: bold;
	cursor: pointer;
	box-shadow: 0 2px 4px rgba(170, 102, 102, 0.25);
	transition: background-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.form-submit-btn:hover {
	background-color: #c07878;
	transform: translateY(-1px);
	box-shadow: 0 4px 8px rgba(170, 102, 102, 0.3);
}
.form-submit-btn:active {
	transform: translateY(0);
	box-shadow: none;
}
@media screen and (max-width: 600px) {
	.form-row {
		flex-direction: column;
		gap: 6px;
		padding: 12px 14px;
	}
	.form-label {
		width: auto;
		padding-top: 0;
	}
	.form-field {
		width: 100%;
	}
}

.news {
	background-color: #fffdf5;
	font-size: 0.8em;
	color: #776655;
	padding: 10px 14px;
	border-bottom: 1px solid #f2e8d8;
	border-left: 4px solid #ffd0a0;
}
.news a {
	color: #AA6666;
}

.s_list_title {
	text-decoration:none;
	font-weight:bold;
	font-size:1.1em;
}

.pager-block {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	padding: 0.5em;
	margin: 1em 0;
	text-align: center;
}
.pager-block a {
	display: inline-block;
	padding: 6px 16px;
	background-color: #fff;
	border: 1px solid #f0d0d0;
	border-radius: 16px;
	color: #644;
	font-size: 0.9em;
	line-height: 1.6em;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.pager-block a:hover {
	background-color: #ffe8e8;
	border-color: #ffa0a0;
	color: #f44;
}
.up {
	padding: 0 5px;
	border-radius: 8px;
	font-size: 0.85em;
	font-weight: bold;
	line-height: 1.6em;
}
.up.is-new {
	background-color: #ffefef;
	color: #e06666;
}
.up.is-up {
	background-color: #f2f4fa;
	color: #7788aa;
}
.mml-list-icon {
	font-size: 1.5em;
}

.grid-container {
	display: grid;
	place-items: center;
	height: 100%;
}
.grid-container-parent {
	display: flex;
	justify-content: center;
	align-items: center;
}

.error_page_frame {
	border: 1px solid #ff0000;
	padding: 1em;
	background-color: #fff0f0;
	margin: 1em;
}

.s_video {
	background-color: #fff0f0;
	color: black;
	padding: 0.3em;
}
.s_pico {
	background-color: #fff0f0;
	color: black;
	padding: 0.3em;
}
.post_count {
	font-size: 0.9em;
	color: #333344;
	padding: 0.3em;
}
.post_count_num {
	font-size: 1.2em;
	font-weight: bold;
}
/* --------------------------------------------
 * ユーザーページの曲一覧（カード表示）
 * -------------------------------------------- */
.mml-cards {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 10px;
	margin: 12px 0 4px 0;
}
.mml-card {
	display: flex;
	flex-direction: column;
	padding: 12px 14px;
	background-color: #fff;
	border: 1px solid #f2e2e2;
	border-left: 5px solid #f5dcdc;
	border-radius: 8px;
	box-shadow: 0 1px 2px rgba(120, 80, 80, 0.05);
	text-decoration: none;
	color: #644;
	transition: box-shadow 0.15s, border-color 0.15s, transform 0.15s;
}
.mml-card:hover {
	border-color: #ffc0c0;
	border-left-color: #AA6666;
	box-shadow: 0 4px 10px rgba(120, 80, 80, 0.13);
	transform: translateY(-2px);
}
/* 1週間以内に投稿/更新された曲 */
.mml-card.is-recent {
	border-left-color: #ff9a9a;
}
.mml-card.is-private {
	background-color: #f7f7f7;
	border-left-color: #cccccc;
}
.mml-card-head {
	position: relative;
	display: flex;
	align-items: flex-start;
	gap: 6px;
	/* カード上部いっぱいに広がる帯にする */
	margin: -12px -14px 8px -14px;
	padding: 10px 14px 8px 14px;
	border-radius: 7px 7px 0 0;
	overflow: hidden;
}
/* 曲名を読みやすくするための白いベール */
.mml-card-head::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-image: linear-gradient(
		100deg,
		rgba(255, 255, 255, 0.82) 0%,
		rgba(255, 255, 255, 0.58) 100%
	);
}
.mml-card-head > .mml-card-title,
.mml-card-head > .mml-card-fav {
	position: relative;
	z-index: 1;
}
.mml-card-title {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	flex: 1 1 auto;
	min-height: 2.8em;
	font-weight: bold;
	font-size: 1.05em;
	line-height: 1.4em;
	color: #5a3b3b;
	text-decoration: none;
	word-break: break-word;
}
.mml-card:hover .mml-card-title {
	color: #f44;
}
.mml-card-user {
	display: flex;
	align-items: center;
	gap: 5px;
	margin-top: 2px;
	font-size: 0.78em;
	color: #b0a0a0;
}
/* 投稿者のプロフィール画像 */
.mml-card-avatar {
	flex: none;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background-color: #fff;
	border: 1px solid #f0e0e0;
	object-fit: cover;
}
.mml-card-user a {
	color: #886666;
	text-decoration: none;
}
.mml-card-user a:hover {
	color: #f44;
	text-decoration: underline;
}
a.mml-card-comment {
	display: block;
	text-decoration: none;
}
.mml-card-fav {
	flex: none;
	padding: 1px 8px;
	background-color: #fff2f2;
	border-radius: 10px;
	color: #e08080;
	font-size: 0.75em;
	font-weight: bold;
	line-height: 1.8em;
	white-space: nowrap;
}
.mml-card-comment {
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	flex: 1 1 auto;
	font-size: 0.8em;
	line-height: 1.6em;
	color: #7a6e6e;
	margin: 6px 0 10px 0;
	word-break: break-word;
}
.mml-card-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px;
	padding-top: 8px;
	border-top: 1px solid #f7efef;
	font-size: 0.75em;
	color: #999;
}
.mml-card-date {
	display: flex;
	align-items: center;
	gap: 4px;
	margin-left: auto;
	white-space: nowrap;
}
.mml-card-badge {
	padding: 1px 6px;
	border-radius: 10px;
	font-size: 0.95em;
	line-height: 1.6em;
	white-space: nowrap;
}
.mml-card-badge.is-private {
	background-color: #eeeeee;
	color: #777777;
}
.mml-card-badge.is-pico {
	background-color: #fff0f0;
	color: #AA6666;
}
.mml-card-badge.is-audio {
	background-color: #f0f4ff;
	color: #667799;
}
@media screen and (max-width: 480px) {
	.mml-cards {
		grid-template-columns: 1fr;
	}
}

/* --------------------------------------------
 * ユーザーページのプロフィールカード
 * -------------------------------------------- */
/* ユーザーリンクのプロフィール画像 */
.user-avatar {
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background-color: #fff;
	border: 1px solid #f0d8d8;
	object-fit: cover;
	vertical-align: middle;
}

/* ログイン後のお知らせ */
.login-notice {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 10px auto;
	padding: 10px 18px;
	background-color: #fffbf3;
	border: 1px solid #f2e2cc;
	border-left: 4px solid #e0b878;
	border-radius: 8px;
	color: #8a7050;
	font-size: 1em;
	text-align: left;
}
.login-notice-icon {
	flex: none;
	font-size: 1.2em;
	line-height: 1em;
}
.login-notice a {
	margin-left: 4px;
	color: #AA6666;
	font-weight: bold;
}
.login-notice a:hover {
	color: #f44;
}

/* プロフィールの編集ボタン */
.user-profile-actions {
	margin: 12px 0 18px 0;
	text-align: center;
}
.profile-edit-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 24px;
	background: linear-gradient(180deg, #c07878 0%, #AA6666 100%);
	border: none;
	border-radius: 20px;
	color: #fff;
	font-size: 0.9em;
	font-weight: bold;
	text-decoration: none;
	box-shadow: 0 2px 5px rgba(170, 102, 102, 0.28);
	transition: box-shadow 0.15s, transform 0.15s, background 0.15s;
}
.profile-edit-btn:hover {
	background: linear-gradient(180deg, #cd8686 0%, #b87070 100%);
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 5px 10px rgba(170, 102, 102, 0.32);
}
.profile-edit-btn:active {
	transform: translateY(0);
	box-shadow: none;
}
.profile-edit-icon {
	font-size: 1.05em;
	line-height: 1em;
}

/* プロフィール画像のアップロード */
.pic-edit {
	display: flex;
	align-items: center;
	gap: 14px;
}
.pic-preview {
	flex: none;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background-color: #fff;
	border: 2px solid #ffc0c0;
	object-fit: cover;
}
.pic-edit-body {
	min-width: 0;
}
.pic-file {
	max-width: 100%;
	color: #7a6666;
	font-size: 0.8em;
}
.pic-file::file-selector-button {
	margin-right: 10px;
	padding: 6px 16px;
	background-color: #fff;
	border: 1px solid #ecdcdc;
	border-radius: 14px;
	color: #8a7070;
	font-size: 1em;
	font-weight: bold;
	cursor: pointer;
	transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.pic-file::file-selector-button:hover {
	background-color: #ffeef0;
	border-color: #e0b0b8;
	color: #a05060;
}
.pic-delete {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 8px;
	color: #a09090;
	font-size: 0.8em;
	cursor: pointer;
	user-select: none;
}
.pic-delete input {
	margin: 0;
	accent-color: #AA6666;
	cursor: pointer;
}

/* プロフィール編集フォームの補助 */
.form-subfield {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 8px;
}
.form-subfield-label {
	flex: none;
	color: #a09090;
	font-size: 0.8em;
}
.form-radios {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}
.form-radio {
	display: flex;
	align-items: center;
	gap: 5px;
	color: #6b5252;
	font-size: 0.9em;
	cursor: pointer;
}
.form-radio input {
	margin: 0;
	accent-color: #AA6666;
	cursor: pointer;
}
.form-actions {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 12px;
	margin: 18px 0;
}
.form-cancel-btn {
	padding: 9px 22px;
	background-color: #fff;
	border: 1px solid #ecdcdc;
	border-radius: 20px;
	color: #8a7070;
	font-size: 0.85em;
	text-decoration: none;
	transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.form-cancel-btn:hover {
	background-color: #ffeef0;
	border-color: #e0b0b8;
	color: #a05060;
}

.user-profile {
	margin: 12px 0;
	padding: 16px 18px;
	background: linear-gradient(180deg, #fff8f8 0%, #ffffff 60%);
	border: 1px solid #f0d8d8;
	border-radius: 8px;
}
.user-profile-head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-bottom: 12px;
	border-bottom: 2px solid #ffc0c0;
}
.user-profile-icon {
	flex: none;
	width: 56px;
	height: 56px;
	border-radius: 50%;
	background-color: #fff;
	border: 2px solid #ffc0c0;
	object-fit: cover;
}
.user-profile-namebox {
	min-width: 0;
}
.user-profile-name {
	font-size: 1.4em;
	font-weight: bold;
	color: #644;
	line-height: 1.3em;
	word-break: break-word;
}
.user-profile-id {
	font-size: 0.75em;
	color: #aa9999;
}
.user-profile-comment {
	padding: 12px 2px;
	font-size: 0.9em;
	line-height: 1.7em;
	color: #555;
	word-break: break-word;
}
.user-profile-empty {
	color: #aaa;
}
.user-profile-items {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 6px 16px;
	margin: 0;
	padding: 0;
}
.user-profile-item {
	display: flex;
	align-items: baseline;
	gap: 8px;
	padding: 6px 8px;
	background-color: #fffaf5;
	border-radius: 4px;
	font-size: 0.85em;
	line-height: 1.6em;
}
.user-profile-item dt {
	flex: none;
	width: 7em;
	color: #AA6666;
	font-weight: bold;
}
.user-profile-item dd {
	flex: 1 1 auto;
	margin: 0;
	color: #555;
	word-break: break-word;
}
.user-profile-item a {
	color: #644;
}
.user-profile-item a:hover {
	color: #f44;
}
.user-profile-note {
	font-size: 0.85em;
	color: #aaa;
}
.user-profile-ok {
	font-size: 0.85em;
	color: #3377bb;
}
.user-profile-ng {
	font-size: 0.85em;
	color: #dd5555;
}
@media screen and (max-width: 480px) {
	.user-profile-items {
		grid-template-columns: 1fr;
	}
	.user-profile-item {
		flex-direction: column;
		gap: 0;
	}
	.user-profile-item dt {
		width: auto;
	}
}

/* --------------------------------------------
 * ユーザーページの控えめなサブセクション
 * (最近お気に入りの曲 / 最近の書き込み)
 * -------------------------------------------- */
.sub-section {
	margin: 20px 0;
	padding: 12px 14px;
	background-color: #fbfbfa;
	border: 1px solid #eeeae8;
	border-radius: 6px;
}
.sub-title {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 2px;
	font-size: 0.9em;
	font-weight: bold;
	color: #998888;
	cursor: pointer;
	list-style: none;
	user-select: none;
}
.sub-title::-webkit-details-marker {
	display: none;
}
.sub-title::before {
	content: "▶";
	font-size: 0.7em;
	color: #ccbaba;
	transition: transform 0.15s;
}
details[open] > .sub-title::before {
	content: "▼";
}
.sub-title:hover {
	color: #AA6666;
}
.sub-count {
	padding: 0 8px;
	background-color: #f0eae8;
	border-radius: 10px;
	font-size: 0.85em;
	font-weight: normal;
	color: #998888;
}
details[open] > .sub-title {
	margin-bottom: 8px;
	padding-bottom: 6px;
	border-bottom: 1px solid #eeeae8;
}
.sub-list {
	margin: 0;
	padding: 0;
	list-style: none;
}
.sub-list li {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 6px;
	padding: 4px 2px;
	font-size: 0.8em;
	line-height: 1.6em;
	border-bottom: 1px dotted #eeeae8;
}
.sub-list li:last-child {
	border-bottom: none;
}
.sub-list li > a {
	color: #776666;
	text-decoration: none;
}
.sub-list li > a:hover {
	color: #f44;
	text-decoration: underline;
}
.sub-by {
	color: #aaa0a0;
	font-size: 0.9em;
}
.sub-date {
	color: #bbb;
	font-size: 0.9em;
}
.sub-fav {
	color: #e0b0b0;
	font-size: 0.85em;
}
.sub-desc {
	flex: 1 1 12em;
	min-width: 0;
	color: #aaa;
	font-size: 0.9em;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* --------------------------------------------
 * 曲カードのジャケット風の飾り
 * (曲IDから色と波形が決まる)
 * -------------------------------------------- */
.mml-card-art {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-image: linear-gradient(
		110deg,
		hsl(var(--art-hue), 70%, 86%) 0%,
		hsl(var(--art-hue), 62%, 76%) 100%
	);
	transition: opacity 0.15s;
}
.mml-card-art svg {
	position: absolute;
	top: 50%;
	left: 0;
	width: 100%;
	height: 22px;
	transform: translateY(-50%);
}
.mml-card-art .staff line {
	stroke: rgba(255, 255, 255, 0.6);
	stroke-width: 1;
}
.mml-card-art .notes circle {
	fill: #fff;
}
.mml-card-art .notes circle.o {
	fill: none;
	stroke: #fff;
	stroke-width: 1.1;
}
.mml-card:hover .mml-card-art {
	filter: saturate(1.25);
}

/* --------------------------------------------
 * 曲ページ (post.php) の詳細表示
 * -------------------------------------------- */
.mml-detail-head {
	position: relative;
	margin: 8px 0 16px 0;
	padding: 18px 20px;
	border-radius: 8px;
	overflow: hidden;
}
.mml-detail-head::after {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-image: linear-gradient(
		100deg,
		rgba(255, 255, 255, 0.86) 0%,
		rgba(255, 255, 255, 0.62) 100%
	);
}
.mml-detail-head > .mml-detail-title,
.mml-detail-head > .mml-detail-by,
.mml-detail-head > .mml-detail-chips {
	position: relative;
	z-index: 1;
}
#mmlbbs_body h1.mml-detail-title {
	margin: 0;
	padding: 0;
	background: none;
	border: none;
	font-size: 1.5em;
	line-height: 1.4em;
	color: #5a3b3b;
	word-break: break-word;
}
.mml-detail-by {
	margin-top: 4px;
	font-size: 0.85em;
	color: #a08a8a;
}
.mml-detail-by a {
	color: #886666;
	text-decoration: none;
}
.mml-detail-by a:hover {
	color: #f44;
	text-decoration: underline;
}
.mml-detail-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-top: 10px;
	font-size: 0.8em;
}
.mml-detail-player {
	margin: 0 0 16px 0;
	padding: 12px;
	background-color: #fffafa;
	border: 1px solid #f2e2e2;
	border-radius: 8px;
}
.mml-detail-items {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
	gap: 6px 16px;
	margin: 0;
	padding: 0;
}
.mml-detail-item {
	display: flex;
	align-items: baseline;
	gap: 8px;
	padding: 8px 10px;
	background-color: #fffafa;
	border-radius: 4px;
	font-size: 0.85em;
	line-height: 1.6em;
}
.mml-detail-item.is-wide {
	grid-column: 1 / -1;
	align-items: flex-start;
}
.mml-detail-item dt {
	flex: none;
	width: 10em;
	white-space: nowrap;
	color: #AA6666;
	font-weight: bold;
}
.mml-detail-item dd {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	color: #555;
	word-break: break-word;
}
.mml-detail-actions {
	margin: 16px 0;
	text-align: center;
}
@media screen and (max-width: 600px) {
	.mml-detail-items {
		grid-template-columns: 1fr;
	}
	.mml-detail-item {
		flex-direction: column;
		gap: 0;
	}
	.mml-detail-item dt {
		width: auto;
	}
}

/* --------------------------------------------
 * 感謝のコメント (post.php)
 * -------------------------------------------- */
#commentArea {
	/* 一行が長すぎると読み書きしづらいので幅を制限する */
	max-width: var(--mml-comment-width);
	margin: 16px auto;
}
.comment-post textarea,
.comment-edit-form textarea {
	max-width: 100%;
}
.comment-empty {
	padding: 14px;
	background-color: #fffafa;
	border: 1px dashed #f0d8d8;
	border-radius: 8px;
	color: #a09090;
	font-size: 0.85em;
	text-align: center;
}
.comment-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin: 12px 0;
}
.comment-item {
	padding: 12px 14px;
	background-color: #fff;
	border: 1px solid #f2e2e2;
	border-left: 4px solid #f5dcdc;
	border-radius: 8px;
}
.comment-item.is-mine {
	border-left-color: #ffb0b0;
	background-color: #fffcfc;
}
.comment-head {
	display: flex;
	align-items: center;
	gap: 8px;
	padding-bottom: 8px;
	border-bottom: 1px solid #f7efef;
}
.comment-icon {
	flex: none;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	border: 1px solid #f0e0e0;
	background-color: #fff;
	object-fit: cover;
}
.comment-user {
	font-weight: bold;
	font-size: 0.9em;
	color: #644;
	text-decoration: none;
}
a.comment-user:hover {
	color: #f44;
	text-decoration: underline;
}
.comment-date {
	font-size: 0.75em;
	color: #bbb0b0;
}
.comment-actions {
	display: flex;
	gap: 6px;
	margin-left: auto;
}
.comment-actions a {
	padding: 2px 10px;
	background-color: #fff;
	border: 1px solid #ece0e0;
	border-radius: 10px;
	color: #a09090;
	font-size: 0.7em;
	line-height: 1.8em;
	text-decoration: none;
}
.comment-actions a:hover {
	border-color: #ffb0b0;
	color: #f44;
}
.comment-text {
	padding-top: 10px;
	font-size: 0.85em;
	line-height: 1.7em;
	color: #5a5050;
	word-break: break-word;
}
.comment-quote {
	color: #7788aa;
}
.comment-mark {
	color: #e06666;
}
.comment-edit-form textarea {
	width: 100%;
	margin-top: 8px;
	padding: 8px;
	border: 1px solid #e8d8d8;
	border-radius: 6px;
	font-size: 0.9em;
	box-sizing: border-box;
}
.comment-edit-buttons {
	display: flex;
	gap: 6px;
	margin-top: 6px;
}
.comment-ad {
	padding: 4px 0;
	text-align: center;
}
.comment-ad .ad-box {
	max-width: 100%;
}

/* コメント投稿フォーム */
.comment-post {
	margin: 16px 0;
	padding: 14px 16px;
	background-color: #fffafa;
	border: 1px solid #f2e2e2;
	border-radius: 8px;
}
.comment-post-label {
	display: block;
	margin-bottom: 6px;
	color: #AA6666;
	font-size: 0.85em;
	font-weight: bold;
}
.comment-post textarea {
	width: 100%;
	padding: 8px 10px;
	background-color: #fff;
	border: 1px solid #e8d8d8;
	border-radius: 6px;
	font-size: 0.9em;
	line-height: 1.6em;
	box-sizing: border-box;
}
.comment-post textarea:focus {
	outline: none;
	border-color: #ffa0a0;
}
.comment-post-buttons {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 10px;
}
.comment-fav-check {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-right: auto;
	padding: 5px 12px;
	background-color: #fffbf0;
	border: 1px solid #f0e0c0;
	border-radius: 14px;
	color: #a08040;
	font-size: 0.8em;
	cursor: pointer;
	user-select: none;
}
.comment-fav-check:hover {
	background-color: #fff6e0;
	border-color: #e8c880;
}
.comment-fav-check input {
	margin: 0;
	accent-color: #e8a020;
	cursor: pointer;
}
.comment-phrases {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 6px;
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid #f2e8e8;
}
.comment-phrases-label {
	color: #a09090;
	font-size: 0.8em;
}
.comment-phrases button {
	padding: 4px 12px;
	background-color: #fff;
	border: 1px solid #f0d0d0;
	border-radius: 14px;
	color: #644;
	font-size: 0.8em;
	cursor: pointer;
	transition: background-color 0.15s, border-color 0.15s;
}
.comment-phrases button:hover {
	background-color: #ffe8e8;
	border-color: #ffa0a0;
}

/* --------------------------------------------
 * タグの曲一覧 (post.php?action=tag)
 * -------------------------------------------- */
.tag-page-head {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 14px;
	padding: 14px 18px;
	background: linear-gradient(135deg, #fff4f4 0%, #fffaf2 100%);
	border: 1px solid #f2e2e2;
	border-left: 5px solid #AA6666;
	border-radius: 10px;
}
.tag-page-icon {
	flex: none;
	font-size: 1.6em;
	line-height: 1em;
}
.tag-page-headbody {
	min-width: 0;
}
.tag-page-title {
	color: #8a4f4f;
	font-size: 1.35em;
	font-weight: bold;
	line-height: 1.3em;
	word-break: break-word;
}
.tag-page-lead {
	margin-top: 3px;
	color: #b09a9a;
	font-size: 0.75em;
}
.tag-page-count {
	flex: none;
	margin-left: auto;
	padding: 6px 14px;
	background-color: #fff;
	border: 1px solid #f0dcdc;
	border-radius: 16px;
	color: #AA6666;
	font-size: 1.1em;
	font-weight: bold;
	line-height: 1.2em;
}
.tag-page-count small {
	margin-left: 2px;
	font-size: 0.6em;
	font-weight: normal;
	color: #c0a8a8;
}
.tag-page-empty {
	padding: 28px 14px;
	background-color: #fffafa;
	border: 1px dashed #f0d8d8;
	border-radius: 10px;
	color: #a09090;
	font-size: 0.9em;
	line-height: 1.8em;
	text-align: center;
}
.tag-page-empty-sub {
	font-size: 0.85em;
	color: #c0acac;
}
.tag-page-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px;
	margin: 20px 0 8px 0;
}
.tag-page-btn {
	padding: 8px 20px;
	background-color: #AA6666;
	border: 1px solid #AA6666;
	border-radius: 18px;
	color: #fff;
	font-size: 0.85em;
	font-weight: bold;
	text-decoration: none;
	transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}
.tag-page-btn:hover {
	background-color: #c07878;
	border-color: #c07878;
	color: #fff;
}
.tag-page-btn.is-sub {
	background-color: #fff;
	border-color: #ecdcdc;
	color: #8a7070;
}
.tag-page-btn.is-sub:hover {
	background-color: #ffeef0;
	border-color: #e0b0b8;
	color: #a05060;
}
@media screen and (max-width: 600px) {
	.tag-page-head {
		flex-wrap: wrap;
	}
	.tag-page-count {
		font-size: 0.95em;
	}
}

/* --------------------------------------------
 * ライセンスの表示 (post.php)
 * -------------------------------------------- */
.license-badge {
	display: inline-flex;
	align-items: flex-start;
	gap: 8px;
	max-width: 100%;
	padding: 7px 12px 7px 10px;
	background-color: #fffafa;
	border: 1px solid #f2e4e4;
	border-left: 4px solid #e0c0c0;
	border-radius: 8px;
	line-height: 1.5em;
	vertical-align: middle;
}
/* 自由に使えるものほど明るい山吹色、制限が強いものほど濃い小豆色 */
.license-badge.is-pd {
	background-color: #fffbf3;
	border-color: #f2e6d2;
	border-left-color: #e0b878;
}
.license-badge.is-cc {
	background-color: #fffafa;
	border-color: #f2e4e4;
	border-left-color: #e8a8a8;
}
.license-badge.is-mail {
	background-color: #fdf9f6;
	border-color: #efe4da;
	border-left-color: #c49a80;
}
.license-badge.is-no {
	background-color: #fdf4f4;
	border-color: #eedcdc;
	border-left-color: #AA6666;
}
.license-icon {
	flex: none;
	font-size: 1.1em;
	line-height: 1.4em;
}
.license-body {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 4px 8px;
	min-width: 0;
}
.license-name {
	font-size: 0.85em;
	font-weight: bold;
	color: #6b5252;
	text-decoration: none;
}
a.license-name:hover {
	color: #f44;
	text-decoration: underline;
}
.license-external {
	margin-left: 3px;
	font-size: 0.8em;
	opacity: 0.6;
}
.license-tags {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 4px;
}
.license-tag {
	padding: 1px 8px;
	border: 1px solid transparent;
	border-radius: 10px;
	font-size: 0.7em;
	white-space: nowrap;
}
.license-tag.is-ok {
	background-color: #fdf6ec;
	border-color: #f0e2cc;
	color: #a07840;
}
.license-tag.is-ng {
	background-color: #fdf0f0;
	border-color: #f0dada;
	color: #a05e5e;
}
.license-note {
	flex-basis: 100%;
	color: #b0a0a0;
	font-size: 0.72em;
}

@media screen and (max-width: 600px) {
	.license-badge {
		display: flex;
	}
}

/* --------------------------------------------
 * プレイヤーとMMLの表示 (post.php)
 * -------------------------------------------- */
.mml-player-frame {
	margin-bottom: 10px;
	background-color: #fffafa;
	border: 1px solid #f2e2e2;
	border-radius: 8px;
	overflow: hidden;
}
.mml-player-frame iframe {
	display: block;
	width: 100%;
	height: 90px;
	border: none;
}
.mml-player-frame.is-pico iframe {
	height: 400px;
}
.mml-player-link {
	margin-bottom: 10px;
	font-size: 0.8em;
	text-align: right;
}

/* 動画(YouTube)の表示 */
.mml-video {
	margin: 0 auto;
}
.mml-video-frame {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background-color: #000;
	border: 1px solid #f2e2e2;
	border-radius: 8px;
	overflow: hidden;
}
.mml-video-frame iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: none;
}
/* ショート動画は縦長で表示する */
.mml-video.is-short {
	max-width: 320px;
}
.mml-video.is-short .mml-video-frame {
	aspect-ratio: 9 / 16;
}
.mml-video-link {
	margin-top: 4px;
	font-size: 0.75em;
	text-align: right;
}
.mml-video-link a {
	color: #AA6666;
	text-decoration: none;
}
.mml-video-link a:hover {
	text-decoration: underline;
}

/* MMLのソース表示 */
.mml-code-box {
	border: 1px solid #f2e2e2;
	border-radius: 8px;
	overflow: hidden;
}
.mml-code-bar {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 6px 10px;
	background-color: #fdf5f5;
	border-bottom: 1px solid #f2e2e2;
	font-size: 0.75em;
}
.mml-code-label {
	color: #AA6666;
	font-weight: bold;
}
.mml-code-note {
	color: #b5a8a8;
}
.mml-code-link {
	margin-left: auto;
	padding: 2px 10px;
	background-color: #fff;
	border: 1px solid #f0d0d0;
	border-radius: 10px;
	color: #644;
	text-decoration: none;
}
.mml-code-link:hover {
	background-color: #ffe8e8;
	border-color: #ffa0a0;
	color: #f44;
}
.mml-code {
	counter-reset: mmlline;
	max-height: 24em;
	margin: 0;
	padding: 8px 0;
	background-color: #fffdfd;
	overflow: auto;
}
.mml-code li {
	list-style: none;
	white-space: pre;
	font-family: "SFMono-Regular", Consolas, "Osaka-Mono", monospace;
	font-size: 0.78em;
	line-height: 1.6em;
	color: #554848;
}
.mml-code li::before {
	counter-increment: mmlline;
	content: counter(mmlline);
	position: sticky;
	left: 0;
	display: inline-block;
	width: 3em;
	margin-right: 1em;
	padding-right: 0.6em;
	background-color: #fdf5f5;
	border-right: 1px solid #f2e6e6;
	color: #cbbcbc;
	text-align: right;
	user-select: none;
	-webkit-user-select: none;
}
.mml-code li:hover {
	background-color: #fff7f7;
}
.mml-comment {
	color: #4e9a63;
}

/* 作者からのコメント (MMLの直下) */
.mml-note {
	position: relative;
	margin: 14px 0 16px 0;
	padding: 14px 18px 14px 20px;
	background: linear-gradient(180deg, #fff8f8 0%, #ffffff 70%);
	border: 1px solid #f2e2e2;
	border-left: 5px solid #ffc0c0;
	border-radius: 8px;
}
.mml-note-label {
	margin-bottom: 6px;
	color: #AA6666;
	font-size: 0.75em;
	font-weight: bold;
	letter-spacing: 0.08em;
}
.mml-note-text {
	color: #554949;
	font-size: 1em;
	line-height: 1.8em;
	word-break: break-word;
}
.mml-note-text a {
	color: #886666;
}

/* コメントへのお誘い (未ログイン時) */
.comment-invite {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 14px 0;
	padding: 18px 20px;
	background: linear-gradient(115deg, #fff4f4 0%, #fffaf0 55%, #fdf4fb 100%);
	border: 1px solid #f5dede;
	border-radius: 10px;
	box-shadow: 0 2px 6px rgba(150, 100, 100, 0.06);
}
.comment-invite-icon {
	flex: none;
	width: 46px;
	height: 46px;
	border-radius: 50%;
	background-color: #fff;
	border: 2px solid #ffd0d0;
	color: #e08a8a;
	font-size: 1.5em;
	line-height: 44px;
	text-align: center;
}
.comment-invite-body {
	flex: 1 1 auto;
	min-width: 0;
}
.comment-invite-title {
	font-size: 1.05em;
	font-weight: bold;
	color: #5a3b3b;
	line-height: 1.5em;
}
.comment-invite-text {
	margin-top: 4px;
	font-size: 0.8em;
	line-height: 1.7em;
	color: #9a8888;
}
.comment-invite-actions {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px 14px;
	margin-top: 12px;
}
.comment-invite-btn {
	display: inline-block;
	padding: 9px 22px;
	background-color: #AA6666;
	border-radius: 20px;
	color: #fff;
	font-size: 0.9em;
	font-weight: bold;
	text-decoration: none;
	box-shadow: 0 2px 5px rgba(170, 102, 102, 0.28);
	transition: background-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.comment-invite-btn:hover {
	background-color: #c07878;
	color: #fff;
	transform: translateY(-1px);
	box-shadow: 0 4px 10px rgba(170, 102, 102, 0.32);
}
.comment-invite-sub {
	color: #a08888;
	font-size: 0.78em;
	text-decoration: none;
	border-bottom: 1px dotted #d8c4c4;
}
.comment-invite-sub:hover {
	color: #f44;
	border-bottom-color: #f44;
}
@media screen and (max-width: 480px) {
	.comment-invite {
		flex-direction: column;
		text-align: center;
	}
	.comment-invite-actions {
		justify-content: center;
	}
}

/* --------------------------------------------
 * 利用規約 (license.php)
 * -------------------------------------------- */
.terms {
	max-width: 900px;
	margin: 0 auto;
	line-height: 1.9em;
	color: #554a4a;
}
.terms p {
	margin: 0 0 12px 0;
	font-size: 0.9em;
}
.terms-lead {
	margin-bottom: 24px;
	padding: 20px 22px;
	background: linear-gradient(115deg, #fff4f4 0%, #fffaf0 60%, #fdf4fb 100%);
	border: 1px solid #f5dede;
	border-radius: 10px;
}
.terms-lead-title {
	margin-bottom: 10px;
	font-size: 1.25em;
	font-weight: bold;
	color: #AA6666;
	letter-spacing: 0.04em;
}
.terms-lead p:last-child {
	margin-bottom: 0;
}
.terms-section {
	margin-bottom: 22px;
	padding: 18px 22px;
	background-color: #fff;
	border: 1px solid #f2e2e2;
	border-radius: 10px;
}
.terms-title {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 14px 0;
	padding: 0 0 10px 0;
	font-size: 1.15em;
	color: #5a3b3b;
	border: none;
	border-bottom: 2px solid #ffc0c0;
}
.terms-icon {
	font-size: 1.1em;
}
.terms-sub {
	color: #AA6666;
	font-weight: bold;
}
.terms-em {
	background: linear-gradient(transparent 65%, #ffe0e0 65%);
}
.terms-note {
	margin: 14px 0 4px 0;
	padding: 12px 14px;
	background-color: #fffdf5;
	border-left: 4px solid #ffd0a0;
	border-radius: 0 6px 6px 0;
	font-size: 0.85em;
}
.terms-small {
	color: #a09090;
	font-size: 0.9em;
}
.terms-warn {
	margin: 14px 0;
	padding: 14px 16px;
	background-color: #fff6f6;
	border: 1px solid #ffd0d0;
	border-radius: 8px;
	font-size: 0.85em;
	color: #a04a4a;
}
.terms-warn-title {
	margin-bottom: 6px;
	font-weight: bold;
	color: #d05555;
}
.terms-warn-title::before {
	content: "⚠ ";
}
.terms-tips {
	margin-top: 14px;
	padding: 14px 16px;
	background-color: #fbfbfa;
	border: 1px solid #eeeae8;
	border-radius: 8px;
	font-size: 0.85em;
}
.terms-tips-title {
	margin-bottom: 8px;
	font-weight: bold;
	color: #AA6666;
}
.terms-tips ul {
	margin: 0;
	padding-left: 1.2em;
}
.terms-tips li {
	margin-bottom: 6px;
}
.terms-link {
	display: inline-block;
	margin-top: 8px;
	color: #886666;
}
.terms-outro {
	margin: 26px 0 10px 0;
	padding: 20px 22px;
	background: linear-gradient(180deg, #fff8f8 0%, #ffffff 70%);
	border: 1px solid #f2e2e2;
	border-radius: 10px;
	font-size: 0.9em;
	text-align: center;
	color: #776666;
}
.terms-outro-actions {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 16px;
}
.terms-btn {
	display: inline-block;
	padding: 9px 24px;
	background-color: #AA6666;
	border: 1px solid #AA6666;
	border-radius: 20px;
	color: #fff;
	font-weight: bold;
	font-size: 0.95em;
	text-decoration: none;
	transition: background-color 0.15s;
}
.terms-btn:hover {
	background-color: #c07878;
	color: #fff;
}
.terms-btn.is-sub {
	background-color: #fff;
	border-color: #f0d0d0;
	color: #644;
}
.terms-btn.is-sub:hover {
	background-color: #ffe8e8;
	border-color: #ffa0a0;
	color: #f44;
}
