/* プリセット */
/* Google Fontsの読み込みはlib/head.phpの<link>に移動。
   @importはこのファイルをパースし終わるまで発火せず、直列のリクエストチェーンになるため。 */

:root {
	--main-color: #af4362;
	--main-under-color: #502a3f;
	--sub-under-color: #231d2d;
	--sub-color: #161016cc;
	--accent-color: #fb769e;
	--font-light-color: #202020;
	--font-dark-color: #efefef;
	--main-font: "M PLUS 2", sans-serif;
	/* --main-font: 'BIZ UDGothic', sans-serif; */
	/* --main-font: 'Noto Sans JP', sans-serif; */
	--sub-font: 'WDXL Lubrifont JP N', sans-serif;
	--display-font: "BBH Sans Hegarty", "WDXL Lubrifont JP N", sans-serif;
	--serif-font: "Zen Old Mincho", serif;
	--gradation-to-top: linear-gradient(to top, #231d2d, #181016);
	--gradation-to-right: linear-gradient(to right, #231d2d, #181016);
}

@media only screen and (max-width: 800px) {
	:root {
		--gradation-to-top: #231d2d;
		--gradation-to-right: #231d2d;
	}
}

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	height: 100%;
	font-size: 62.5%;
	scroll-behavior: smooth;
	cursor: unset;
}

body {
	background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.4)),
		url("../imgs/dark-mosaic.png"),
		url("../imgs/bg_img01.webp");
	/* 背景画像のデコードが終わるまでの下地。これが無いとキャンバスが既定の白のままで、
	   ページ遷移のたびに一瞬白飛びする。htmlに背景が無いのでbodyの背景色がキャンバスに伝播する。 */
	background-color: #231d2d;
	background-size: auto, auto, cover;
	background-repeat: repeat, repeat, no-repeat;
	background-attachment: fixed, fixed, fixed;
	background-position: 50% 50%;
	/* box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.6), inset 0 0 200px rgba(0, 0, 0, 0.4); */
	font-family: var(--main-font);
	color: var(--font-dark-color);

	/* フェードインはCSSアニメーションで行う。JSでのクラス付与だとDOMContentLoaded待ちになり、
	   その間ずっと中身が透明のままになるため。 */
	animation: pageFadeIn 0.3s ease both;
}

@keyframes pageFadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

body.home {
	background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
		url("../imgs/dark-mosaic.png"),
		url("../imgs/bg_img02.webp");
}

/* Background pattern from Toptal Subtle Patterns */
.material-symbols-outlined {
	font-variation-settings:
		'FILL' 0,
		'wght' 400,
		'GRAD' 0,
		'opsz' 24;
	vertical-align: -5px;
}

/* チッピー */
.tippy-tooltip[data-animation=shift-away-subtle][data-placement^=top][data-state=hidden] {
	transform: translateY(5px)
}

.tippy-tooltip[data-animation=shift-away-subtle][data-placement^=bottom][data-state=hidden] {
	transform: translateY(-5px)
}

.tippy-tooltip[data-animation=shift-away-subtle][data-placement^=left][data-state=hidden] {
	transform: translateX(5px)
}

.tippy-tooltip[data-animation=shift-away-subtle][data-placement^=right][data-state=hidden] {
	transform: translateX(-5px)
}

.tippy-tooltip[data-animation=shift-away-subtle][data-state=hidden] {
	opacity: 0
}

.tippy-tooltip.material-theme {
	background-color: #505355;
	font-size: 13px;
	font-weight: 600
}

.tippy-tooltip.material-theme[data-placement^=top]>.tippy-arrow {
	border-width: 8px 8px 0;
	border-top-color: #505355
}

.tippy-tooltip.material-theme[data-placement^=bottom]>.tippy-arrow {
	border-width: 0 8px 8px;
	border-bottom-color: #505355
}

.tippy-tooltip.material-theme[data-placement^=left]>.tippy-arrow {
	border-width: 8px 0 8px 8px;
	border-left-color: #505355
}

.tippy-tooltip.material-theme[data-placement^=right]>.tippy-arrow {
	border-width: 8px 8px 8px 0;
	border-right-color: #505355
}

.tippy-tooltip.material-theme>.tippy-content {
	padding: 4px 7px
}

.tippy-tooltip.material-theme>.tippy-backdrop {
	background-color: #505355
}

.tippy-tooltip.material-theme>.tippy-svg-arrow {
	fill: #505355
}

.fas.cap[data-tippy-content],
.far.cap[data-tippy-content] {
	cursor: pointer;
	margin: 0 0.25em;
	z-index: 15;
}

.cap[data-tippy-content] {
	cursor: pointer;
}

.tippy-tooltip {
	max-width: none !important;
}


/*スクロールバー*/
::-webkit-scrollbar {
	width: 12px;
	height: 12px;
	background-color: rgba(58, 58, 58, 0.9);
}

::-webkit-scrollbar-track {
	border-radius: 2px;
	background-color: rgba(58, 58, 58, 0.9);
	/* box-shadow: inset 0 0 6px rgba(0, 0, 0, .1); */
}

::-webkit-scrollbar-thumb {
	background-color: rgba(255, 255, 255, 0.5);
	border-radius: 4px;
	/* box-shadow:0 0 0 1px rgba(255, 255, 255, .3); */
}

@media only screen and (max-width: 600px) {
	::-webkit-scrollbar {
		width: 4px;
		height: 4px;
		background-color: rgba(58, 58, 58, 0.9);
	}
}

/* particle-js */
#particles-js {
	position: fixed;
	z-index: -1;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	pointer-events: none;
	background-color: var(--main-color);
}

/* ユーティリティ */

small {
	font-weight: normal;
}

.small {
	font-size: 0.7em;
}

.big,
.large {
	font-size: 1.3em;
	font-weight: bold;
}

.red {
	color: #ff9191;
}

.blue {
	color: #8ac2ff;
}

.grean,
.green,
.template {
	color: #95e48b;
}

.yellow {
	color: #cdc577;
}

.darkred {
	color: #a73652;
}

.orange {
	color: #e0a670;
}

.purple {
	color: #d29af3;
}

.gray {
	color: #ababab;
}

.lightgray {
	color: #b9b9b9;
}

.center {
	text-align: center;
}

img.emoji {
	width: 3em;
}

img.big_emoji {
	width: 9em;
}

.midasi {
	font-family: var(--sub-font);
	font-weight: bold;
}

.cursor {
	cursor: pointer;
}

details {
	width: 100%;
}

a {
	color: unset;
	transition: 0.15s;
}

a:hover {
	opacity: 0.8;
}

a.noul {
	text-decoration: none;
}

.un {
	text-decoration: underline;
	cursor: pointer;
}

span.cap.add {
	text-decoration-color: #c35125;
	text-decoration-line: underline;
	text-decoration-thickness: 2px;
}

summary {
	cursor: pointer;
}

li {
	list-style-type: none;
}

/* フォーム関連 */

.content_box form {
	margin: 1em;
}

form label {
	width: fit-content;
	max-width: 100%;
	cursor: pointer;
	display: flex;
	flex-flow: column;
	justify-content: flex-start;
}

select,
option {
	max-width: 100% !important;
	overflow-x: hidden;
	text-overflow: ellipsis;
}

option.red {
	color: #c44d4d;
}

option.blue {
	color: #4d63c4;
}

option.grean {
	color: #51c44d;
}

input[type="submit"],
button,
div.button {
	font-size: 0.85em;
	display: inline-block;
	margin: 0.5em 0.5em 0.5em 0;
	padding: 5px 1em;
	border: 3px solid var(--main-color);
	border-radius: 2px;
	color: #FFFFFF;
	cursor: pointer;
	transition: 0.15s;
	text-decoration: none;
	transform: skewX(20deg);

	padding: 7px 1em;
	background-color: rgba(0, 0, 0, 0);

	color: var(--font-dark-color);
	cursor: pointer;
	transition: 0.25s;
	white-space: nowrap;

	span {
		display: inline-block;
		transform: skewX(-20deg);
	}
}

input[type="submit"][disabled],
button[disabled],
div.button[disabled] {
	opacity: 0.6;
}

div.button {
	width: fit-content;
	margin: 0 0.25em;
	display: inline-block;
	font-size: 0.85em;
	white-space: nowrap;
}

input[type="submit"]:hover,
button:hover,
button.active,
button.selected,
div.button:hover {
	color: var(--font-dark-color);
	background-color: var(--main-color);
	border: 3px solid #00000000;
}

div.button.active {
	color: var(--font-dark-color);
	background-color: var(--main-color);
	border: 3px solid #00000000;
}

input[type="submit"][disabled="disabled"],
button[disabled="disabled"] {
	opacity: 0.4;
	cursor: not-allowed;
}

input[type="submit"][disabled="disabled"]:hover,
button[disabled="disabled"]:hover {
	color: var(--font-dark-color);
	background-color: rgba(0, 0, 0, 0);
	border: 2px solid #b7b4c9;
}

select {
	height: 3em;
	margin: 0.5em 0;
	padding: 0.5em;
	max-width: 100%;
}

textarea {
	padding: 0.5em;
	background-color: #00000040;
	border: 2px solid #b7b4c9;
	color: #FFFF;
	resize: both;
}

input,
textarea {
	max-width: 100%;
	font-family: 'メイリオ', sans-serif;
	cursor: pointer;
	transition: background-color 0.15s;

	background-color: #00000040;
	color: #b7b4c9;
}

input:focus,
textarea:focus {
	outline: 2px solid #61616161;
}

button {
	display: inline;
}

input[type="submit"]:hover,
input[type="button"]:hover,
input[type="reset"]:hover,
button:hover {
	background-color: var(--main-color);
	color: var(--font-dark-color);
}

input[type="text"],
input[type="number"],
input[type="password"] {
	margin: 0.5em 0;
	padding: 0.5em;
	border-radius: 2px;

	min-width: calc(20em - 20px);
	max-width: calc(100% - 2.5em);
	height: 3em;
	padding: 0.5em;
	cursor: text;
}

input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	position: relative;
	width: 1.6rem;
	height: 1.6rem;
	background-color: var(--sub-color);
	border: 2px solid #b7b4c9;
	border-radius: 3px;
	cursor: pointer;
	vertical-align: middle;
	margin: 0 0.25em 0 0;
	transition: background-color 0.15s, border-color 0.15s;
}

input[type="checkbox"]:checked {
	background-color: var(--main-color);
	border-color: var(--main-color);
}

input[type="checkbox"]:checked::before {
	content: '✔';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: var(--font-dark-color);
	font-size: 1.2rem;
	line-height: 1;
}

input[type="radio"] {
	appearance: none;
	-webkit-appearance: none;
	position: relative;
	width: 1.6rem;
	height: 1.6rem;
	background-color: var(--sub-color);
	border: 2px solid #b7b4c9;
	border-radius: 50%;
	cursor: pointer;
	vertical-align: middle;
	margin: 0 0.25em 0 0;
	transition: background-color 0.15s, border-color 0.15s;
}

input[type="radio"]:checked {
	border-color: var(--main-color);
}

input[type="radio"]:checked::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 0.8rem;
	height: 0.8rem;
	background-color: var(--main-color);
	border-radius: 50%;
}

textarea,
input[type="text"],
input[type="number"],
input[type="password"] {
	box-shadow: inset 0px 0px 5px 0px rgba(0, 0, 0, 0.75);
	background-color: var(--sub-color);
	border: none;
	color: var(--font-dark-color);
}

select {
	box-shadow: inset 0px 0px 5px 0px rgba(0, 0, 0, 0.75);
	background-color: var(--sub-under-color);
	border: none;
	color: var(--font-dark-color);
}

/* number inputのスピナーを非表示にするCSS */
input[type="number"] {
	appearance: textfield;
	-moz-appearance: textfield;
}

input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

textarea {
	cursor: text;
	width: 40em;
	height: 8em;
	margin: 0.5em 0;
	padding: 0.5em;

	border-radius: 2px;
	resize: auto;
}

textarea[disabled],
input[disabled] {
	opacity: 0.6;
	cursor: not-allowed;
}

div.flex_columns {
	display: flex;
	flex-flow: column;
}

/* メインコンポーネント */

main {
	padding: 0 0 1em 0;
	position: relative;
	font-size: 1.6em;
	min-height: calc(100dvh - 5em);
}

main::before {
	display: block;
	content: "";
	height: 60px;
	width: 100%;
}

section.container {
	position: relative;
	z-index: 1;
	margin: 2em auto;
	padding: 4px;
	max-width: 1600px;
	width: calc(100% - 2em);
	background-color: #efefef;

	clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
	box-shadow: 2px 2px 2px #000000f0;
}

div.content_box {
	height: 100%;
	margin: 0;

	padding: 0.5em;

	clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
	background: var(--gradation-to-top);
}

div.box {
	margin: 0.5em 0;
	padding: 0 1em;
}

section p {
	margin: 0.5em 1em 1em 1em;
}

.textbox {
	display: block;
	margin: 0 1em;
	padding: 0.5em 1em;
	box-shadow: inset 0px 0px 5px 0px rgba(0, 0, 0, 0.75);
	background-color: var(--sub-color);
	border-radius: 2px;
}

h2 {
	margin: 0 0 0.5em 0;
	padding: 0 0.25em;

	display: block;
	border-bottom: solid 4px #efefef;
	transform: translateY(-0.20em);

	color: var(--font-dark-color);
	font-size: 2em;
	font-family: var(--display-font);
	font-weight: 400;
	font-style: normal;
	text-shadow: 2px 1px 0px #000000f0;
}

h3 {
	margin: 0.5em 0 0 0;
	padding: 0.25em;
	font-size: 1.5em;
	text-align: left;
	display: flex;
	align-items: center;
}

h3::before {
	content: "";
	width: 4px;
	height: 2em;
	background-color: var(--accent-color);
	margin: 0 0.5em 0 0;
}

h4 {
	display: block;
	width: fit-content;
	margin: 1em 0 0 1em;
	padding: 0.25em 0.3em;
	font-weight: bold;
	border-bottom: 2px dashed var(--accent-color);
}

.content_box img {
	max-width: 100%;
	max-height: 100%;
}

img.icon {
	height: 1.25em;
	object-fit: cover;
	object-position: center;
	margin: 0;
	vertical-align: sub;
}

section table {
	margin: 1em 0.5em;
	border-collapse: separate;
}

section td {
	padding: 0.5em 0.25em;
	text-align: center;
}

section td:nth-child(1) {
	border-right: 2px solid #606060;
}

li a {
	text-decoration: none;
}

ul.button_list {
	margin: 0.5em 1em;
	width: 100%;
	display: flex;
	flex-flow: wrap;
	justify-content: center;

	font-size: 1em;
	font-family: var(--main-font);
}

div.button,
ul.button_list li {
	font-size: 0.85em;
	display: inline-block;
	margin: 0.5em 0.5em 0.5em 0;
	padding: 5px 1em;
	border: 3px solid var(--main-color);
	border-radius: 2px;
	color: #FFFFFF;
	cursor: pointer;
	transition: 0.15s;
	text-decoration: none;
	transform: skewX(20deg);
}

ul[class*="_choice"] {
	margin: 0.5em;
	display: flex;
	flex-flow: wrap;
	align-content: flex-start;
}

ul[class*="_choice"]>li {
	display: flex;
	justify-content: center;
	align-items: center;

	position: relative;
	width: 60px;
	height: 60px;
	margin: 0 0.5em 0.5em 0;
	padding: 0;
	border: solid 2px #f0f0f0b3;
	background-color: #424242;
	border-radius: 3px;

	cursor: pointer;
	transition: 0.15s;
	box-shadow: 2px 2px 0px 0px rgb(0 0 0 / 40%);
}

ul[class*="_choice"]>li:hover {
	border: solid 2px rgba(240, 237, 78, 1);
	box-shadow: 2px 2px 2px rgb(62 47 48 / 0);
	transform: translate(0px, 2px);
}

ul[class*="_choice"]>li.broken {
	filter: brightness(0.5);
}

ul[class*="_choice"]>li.collect,
ul[class*="_choice"]>li.checked {
	box-shadow: 0px 0px 2px 2px #fae476;
}
ul[class*="_choice"]>li.npc{
	border: 2px solid #9af39a;
}
ul[class*="_choice"]>li.object{
	border: 2px solid #9ad2f3;
}

ul[class*="_choice"]>li>img {
	width: 100%;
	height: 100%;
}

ul[class*="_choice"]>li>span.fa-solid {
	color: #f1f1f1;
	font-size: 3em;
}

div.button>span,
div.button>a,
div.button>p,
div.button>div {
	display: inline-block;
	transform: skewX(-20deg);
	text-decoration: none;
}

span.button {
	margin: 0 auto;
}

div.button:hover,
ul.button_list li:hover,
ul.button_list li.checked {
	border: 3px solid #00000000;
	background-color: var(--main-color);
	color: var(--font-dark-color);
}

div.button:hover>a {
	opacity: 1;
}

ul.button_list li a,
ul.button_list li span {
	display: inline-block;
	transform: skewX(-20deg);
	text-decoration: none;

	width: 100%;
	padding: 0.25em;
	text-align: center;
	cursor: pointer;
}

/* ページ更新ボタン
   右端(margin-left:auto)は container_label の黒ラベルと、固定配置の
   サイドバートグル(div.logs>div.log_menu, z-index:300)に覆われるので、
   寄せずにタブ行の流れのまま末尾へ置く */
ul.button_list li.reload-button {
	margin-left: 0.5em;
}

/* ラベルは li > span の入れ子なので、上の整形(幅100%/skew/padding)を打ち消す */
ul.button_list li.reload-button span.reload-label {
	display: inline;
	width: auto;
	padding: 0;
	margin-left: 0.4em;
	transform: none;
}

.tab-content {
	margin: 1em 0.5em;
	padding: 0.5em;
}

.tab-content h4 {
	margin: 0;
}

@media only screen and (max-width: 800px) {
	main {
		font-size: 1.25em;
	}

	h2 {
		font-size: 1.25em;
	}

	h3 {
		font-size: 1.2em;
	}

	ul.button_list {
		margin: 1em 0;
	}

	/* 狭い画面ではアイコンのみにして、タブ行を1行分余計に折り返させない */
	ul.button_list li.reload-button span.reload-label {
		display: none;
	}

	div.container_box {
		margin: 0;
		padding: 0 0.5em;
	}

	div.content_box {
		clip-path: none;
	}

	section.container {
		margin: 1em auto;
		width: calc(100% - 1em);
		clip-path: none;
	}
}

/* セリフ */
div.serif,
div.chara_intro {
	margin: 0.5em 0;
	padding: 0.5em 0.5em 0.5em 0.5em !important;

	width: fit-content;
	max-width: 100%;

	display: flex;
	flex-flow: row;
	align-items: center;

	background-color: #49396145;
	border-radius: 2px;
	box-shadow: inset 0px 0px 5px 0px rgba(0, 0, 0, 0.75);
}

div.serif>img,
div.chara_intro>img {
	border-radius: 2px;
	object-fit: cover;
	object-position: top;

	max-width: 60px;
	max-height: 80px;
	justify-self: flex-start;
}

div.serif>p,
div.chara_intro>p {
	margin: 0 1em !important;
	padding: 0 !important;
	max-width: 50em;
	color: var(--font-dark-color);
	text-align: left;
	font-size: 0.9em;
	font-weight: 500;
}

div.serif>p>img {
	margin: 0.5em 1em 0.5em 0;
	width: 60px;
	max-height: 120px;
	min-height: 60px;
	border-radius: 2px;
}

img.ic {
	max-width: 60px;
	max-height: 120px;
	border-radius: 2px;
}

div.serif.center {
	margin: 0.5em auto;
}

div.serif a {
	text-decoration: underline;
}

div.chara_intro>a>img {
	max-width: 120px;
	max-height: 120px;
	justify-self: flex-start;
}

#shop_serif {
	cursor: pointer;
	user-select: none;
}

/* モーダル */
#overlay {
	position: fixed;
	top: 0;
	right: 0;
	width: 100vw;
	height: 100dvh;

	background-color: rgba(0, 0, 0, 0.5);
	content: "";
	cursor: pointer;
	z-index: 1000;
	transition: 0.25s;
}

.modal {
	position: fixed;
	top: 50%;
	bottom: auto;
	left: 50%;
	right: 50%;
	transform: translate(-50%, -50%);
	z-index: 2000;

	margin: auto;
	padding: 4px;
	width: 90%;
	/* height: 70%; */
	max-width: 1300px;
	max-height: 90%;

	font-size: 1.5em;
	font-family: var(--main-font);
	color: var(--font-dark-color);

	/* スクロールは内側(.modal>div)に持たせること。
	   .modal側をスクロールさせると内側のdivだけが縦に伸び、
	   外側のclip-path(可視領域の下端が基準)と内側のclip-path(コンテンツ下端が基準)の
	   角がズレて、疑似白フチの斜め部分が欠ける。 */
	overflow: hidden;
	transition: 0.1s;

	background-color: #fff;
	clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

.modal>div {
	margin: 0;
	padding: 1em;
	width: 100%;
	height: 100%;
	/* .modalのmax-height:90%から上下padding(4px)を引いた値 */
	max-height: calc(90vh - 8px);
	overflow-x: hidden;
	overflow-y: auto;
	background: var(--gradation-to-top);
	clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
}

.modal div.serif,
.modal div.chara_intro {
	margin: 0.5em auto 0.5em 1em;
	width: fit-content;
	max-width: 100%;
	overflow: visible;
	display: flex;
}

.modal>div.serif>p {
	padding: 0;
}

div.button.center {
	display: block;
	margin: 0.5em auto;
}

.modal h3 {
	font-size: 1.5em;
	margin: 0 0 0.5em 0;
	padding: 0 0 0.5em 0.5em;
}

.modal h4::before {
	content: none;
	width: 5px;
	height: 2em;
	background-color: var(--accent-color);
	padding: 0;
}

.modal p {
	width: 100%;
	margin: 1em auto;
	padding: 0 1em;
	/* text-align: left; */
	font-family: var(--main-font);
	word-break: keep-all;
}

.modal img {
	max-width: 100%;
}

.modal ul {
	margin: 0 0 1em 0;
	width: 100%;
	max-height: 500px;
	display: flex;
	overflow: auto;

	flex-flow: wrap;
	overflow-y: scroll;
}

.modal ul>li {
	margin: 0.25em;
}

.modal ul>li>img {
	width: 60px;
	max-height: 120px;
	min-height: 60px;
	cursor: pointer;
	transition: 0.2s;
}

.modal ul>li>img:hover {
	box-shadow: 0px 0px 0px 2px rgb(255 255 255 / 75%);
}

.modal form {
	margin: 1em 0;
	width: 100%;
	display: flex;
	flex-flow: column;
	justify-content: center;
	align-items: center;
}

.modal form>div {
	width: 100%;
	display: flex;
	flex-flow: column;
	justify-content: center;
	align-items: center;
}

.modal form>div.skill_content {
	align-items: flex-start;
}

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

	.modals>.modal {
		max-width: 100vw;
		width: calc(100vw - 1em);
		font-size: 1.0em;
	}

	.modal p {
		word-break: break-all;
	}

	div.serif {
		font-size: 0.9em;
	}

	div.serif>img {
		max-width: 40px;
		max-height: 80px;
	}

	div.chara_intro>a>img {
		max-width: 60px;
		max-height: 60px;
		justify-self: flex-start;
	}
}

/* トーク読み込み */

.content_box span.load_talk {
	display: inline-block;
	margin: 0.25em;
	padding: 0.5em;
	font-family: var(--main-font);
	font-size: 1.2em;
	color: var(--font-dark-color);
	text-align: center;
	cursor: pointer;
	user-select: none;
	background-color: var(--main-color);
	border-radius: 2px;
	transition: 0.15s;
}

.content_box span.load_talk:hover {
	color: var(--font-dark-color);
	background-color: var(--main-under-color);
	transform: translate(1px, 1px);
	box-shadow: unset;
}

/* サイドバー */

div.logs {
	position: fixed;
	top: 95px;

	width: 35%;
	/* max-width: 500px; */
	padding: 0.5em;
	z-index: 300;
	transition: 0.15s;
	font-size: 1.25em;
	filter: drop-shadow(-2px 2px 2px #000000a0);
}

div.logs {
	right: -35%;
}

div.logs.visible {
	right: 0;
}

div.logs>div.log_menu {
	content: " ";
	display: flex;
	justify-content: center;
	align-items: center;

	position: absolute;
	top: 3em;
	left: -60px;

	width: 70px;
	height: 50px;
	overflow: hidden;
	border-radius: 3px 0 0 3px;

	cursor: pointer;
	user-select: none;

	background-size: 55%;
	background-repeat: no-repeat;
	background-color: var(--sub-under-color);
	background-position: 35% 50%;
}

div.logs.bookmarks>div.log_menu {
	top: calc(4em + 50px);
}

div.logs.bookmarks>div.log_menu.unread::before {
	content: "●";
	position: absolute;
	top: 0;
	left: 0;
	font-size: 0.5em;
	color: #F55;
	text-decoration: none;
}

div.logs>div.log_menu>img {
	margin: 0 10% 0 0;
	height: 90%;
	opacity: 0.95;
}

div.side_box {
	width: 100%;
	height: calc(100dvh - (120px + 3.5em));
	max-height: 80dvh;
	padding: 0.5em;

	overflow: hidden;
	color: #efefef;
	font-family: var(--main-font);
	background-color: var(--sub-under-color);
	border-radius: 2px;

	transition: 0.15s;
}

div.side_box>h2 {
	color: var(--font-dark-color);
	font-size: 1.5em;
	cursor: pointer;
}

div.side_box>ul {
	height: 100%;
	padding: 0 0.75em 3em 0.75em;
	overflow-y: auto;
}

div.side_box>ul>li {
	position: relative;
	padding: 0.5em;
	display: flex;
	flex-flow: column;

	border-bottom: 2px solid #dddddd50;
	text-align: left;
	font-family: var(--main-font);
	color: var(--font-dark-color);
}

div.side_box>ul>li .fa-solid {
	margin: 0 0.25em 0 0;
	width: 1.25em;
	text-align: center;
}

div.side_box>ul>li:last-of-type {
	margin: 0 0 0.5em 0;
	border-bottom: none;
}

div.side_box>ul>li small {
	font-size: 0.7em;
}

div.side_box>ul>li p {
	font-size: 0.7em;
}

div.side_box>ul>li a {
	text-decoration: underline;
}

div.bookmarks div.side_box>ul>li {
	font-size: 0.9em;
	flex-flow: row;
	justify-content: flex-start;
	align-items: baseline;
}

div.bookmarks div.side_box>ul>li a {
	display: inline-block;
	width: 100%;
	height: 100%;
	text-decoration: none;
}

div.bookmarks div.side_box>ul>li.unread::before {
	content: "●";
	position: absolute;
	top: 0;
	left: 0;
	font-size: 0.5em;
	color: #F55;
	text-decoration: none;
}

@media only screen and (max-width: 1000px) {
	div.home {
		width: 100%;
	}

	div.logs {
		position: fixed;

		width: 100%;
		max-width: none;
	}

	div.logs {
		right: -100%;
	}

	nav.top_menu {
		width: 90%;
	}

	nav.top_menu>div.top_menu_over>div,
	nav.top_menu>div.top_menu_under>div {
		width: 40%;
	}

}

/* お知らせ通知 */

div.noticearea {
	pointer-events: none;
	position: fixed;
	bottom: 5px;
	right: 5px;
	z-index: 1000;

	overflow-x: hidden;
	overflow-y: hidden;
	width: 400px;

	display: flex;
	flex-direction: column;
}

div.notice {
	position: relative;

	margin-left: auto;
	margin-right: -0px;
	margin-bottom: 10px;

	width: 400px;
	height: fit-content;
	padding: 2px;

	background-color: #efefef;
	clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
	box-shadow: 2px 2px 2px #000000f0;

	font-size: 1.5em;
	text-align: center;
	z-index: 1000;
}

div.notice_content {
	width: 100%;
	height: 100%;
	padding: 1em;
	clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
	background: var(--gradation-to-top);
}

div.notice_content>p {
	display: flex;
	justify-content: center;
	align-items: center;
}

div.notice_content>p>.fa-solid {
	font-size: 1.5em;
	margin: 0 0.25em 0 0;
}

/* 下からn番目 */
@keyframes noticeSlideIn {
	0% {
		transform: translateY(150%);
		opacity: 0;
	}

	10% {
		transform: translateY(0);
		opacity: 1;
	}

	90% {
		transform: translateY(0);
		opacity: 1;
	}

	100% {
		transform: translateY(150%);
		opacity: 0;
	}
}

div.noticearea>div.notice {
	animation: noticeSlideIn 5s ease-in-out forwards;
}

div.noticearea>div.notice:nth-child(n+2) {
	animation-delay: calc((var(--notice-index, 0)) * 0.3s);
}

div.notice .red {
	color: #ffc9c9;
}

div.notice .blue {
	color: #c9d6ff;
}

@keyframes notice {
	0% {
		margin-bottom: -100px;
	}

	10% {
		margin-bottom: 10px;
	}

	90% {
		margin-bottom: 10px;
	}

	100% {
		margin-bottom: -100px;
	}
}

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

	div.notice {
		max-width: 80vw;
	}
}

/* ヘッダーメニュー */

header {
	width: 100%;
	height: calc(55px + 0.5em);
	position: fixed;
	top: 0;
	left: 0;
	padding: 1em;

	display: flex;
	align-items: center;
	justify-content: space-between;

	z-index: 300;
	font-size: 1.5em;
	user-select: none;
	font-family: var(--sub-font);
	transition: 0.15s;
	background: var(--gradation-to-right);
	box-shadow: 0px 2px 5px 0px #000000a0;
	border-bottom: solid 3px #efefef;
}

/* Background pattern from Toptal Subtle Patterns */

div.header_menu {
	display: flex;
	margin: 0 auto 0 0;
	align-items: center;
	justify-content: flex-end;
	font-family: "Jura";
	z-index: 1000;
}

div.menu_overlay {
	position: absolute;
	top: 0;
	left: 0;

	width: 100vw;
	height: 100dvh;
	overflow: hidden;

	content: "";
	opacity: 0;
	pointer-events: none;
}

div.menu_other {
	margin: 0 0.5em;
	display: flex;
	flex-flow: row;
	align-items: center;
	font-size: 1.25em;
}

div.menu_other>div {
	margin: 0 0.5em;
}

div.menu_other p.fas {
	text-shadow: 1px 1px 2px black;
}

div.menu_button {
	position: relative;
	display: inline-block;

	margin: 0;
	padding: 0 0 0.5em 0;
	width: fit-content;
	min-width: 40px;

	font-size: 0.5em;
	cursor: pointer;
	text-align: center;
}

div.menu_button>p {
	display: none;
}

.menu_button>p.visible {
	display: inline;
	opacity: 1;
	pointer-events: unset;
}

.chara_area {
	position: fixed;
	top: 0.25em;
	right: 0.5em;
	width: auto;
	z-index: 500;
	display: flex;
	font-size: 1.5em;
}

.charaBanner {
	position: relative;
	margin: 0.5em;
	display: flex;
	flex-flow: column;
	align-self: center;

	color: #202020;
	border-radius: 2px;
	box-sizing: content-box;
}

.charaBanner>a,
.charaBanner>span {
	width: 40px;
	height: 40px;
	display: inline-block;
	border-radius: 2px;
	overflow: hidden;
	transition: 0.25s;
	z-index: 100;
}

.charaBanner img.chara_icon {
	width: 100%;
	height: 100%;
	border-radius: 50%;
}

.state_area {
	margin: 0.5em 0 0 1em;
	padding: 0 1em;
	font-size: 0.5em;

	display: flex;
	flex-flow: column;
	justify-content: center;

	color: var(--font-dark-color);
	text-shadow: 2px 2px 1px rgb(62 47 48 / 80%);
	border-radius: 2px;
}

div.state_area div[class*="state_"] {
	margin: 0.15em 0;
	display: flex;
	align-items: center;
	justify-content: flex-start;
}

.hp_guege {
	position: relative;
	content: "";
	width: 200px;
	height: 20px;
	background-color: #2c3e50;
	box-shadow: 3px 3px 1px rgb(62 47 48 / 40%);

	border-radius: 2px;
}

div.state_area div[class*="state_"]>p {
	width: 3.25em;
	margin: 0 0.25em 0 0;
	display: inline-block;

	font-size: 1.5em;
	font-weight: bold;
	font-family: var(--main-font);
}

.hp_guege>div {
	height: 100%;
	background-color: #da821d;
	border-radius: 2px;
}

.hp_guege>small {
	position: absolute;
	top: 50%;
	left: 0.25em;
	transform: translateY(-55%);

	color: var(--font-dark-color);
	font-size: 1.75em;
	font-family: var(--main-font);
}

div.state {
	width: calc(100% - (1em + 60px));
	display: flex;
	flex-flow: column;
	justify-content: space-evenly;
	font-family: var(--main-font);
}

div.state div.state_resource {
	display: flex;
	flex-flow: nowrap;
}

div.state_area div[class*="state_"]>div {
	white-space: nowrap;
}

div.state_lv {
	width: calc(100% -(60px + 1em));
	position: relative;
}

div.state_lv p {
	margin: 0 0 -0.5em 0;
	font-weight: bold;
	font-family: var(--main-font);
}

div.state_lv p b {
	font-size: 2em;
}

div.lv_gauge {
	position: absolute;
	bottom: 0;
	left: 0;

	height: 2px;
	z-index: 10;
	background-color: #fff;
}

div.lv_progress {
	position: absolute;
	bottom: 0;
	left: 0;
	z-index: 0;

	background-color: #999;
	width: 100%;
	height: 2px;
}

div.state_resource>div {
	margin: 0 1em 0 0;
}

div.state_resource p {
	font-weight: bold;
	font-family: var(--main-font);
	display: flex;
	align-items: center;
}

/* サイドメニュー全般 */
nav.side_menu {
	position: fixed;
	top: 0;

	width: 80%;
	max-width: 270px;
	height: 100%;
	padding: calc(60px + 2em) 0em 50px 0em;

	display: flex;
	flex-flow: column;

	z-index: 200;
	transition: 0.2s ease-in-out;

	background: var(--gradation-to-top);
	border-right: solid 3px #efefef;
	font-family: var(--display-font);
	box-shadow: 3px 0px 2px #00000070;
}

nav.side_menu::before {
	position: absolute;
	bottom: 0;
	left: 0.25em;

	color: var(--font-dark-color);
	font-size: 3em;
	opacity: 0.25;
	pointer-events: none;
}

nav.side_menu.glonav::before {
	content: "MENU";
}

nav.side_menu.glonav {
	left: -300px;
}

nav.side_menu.glonav.open {
	left: 0px !important;
}

nav.side_menu.profnav>img {
	width: 180px;
	height: 240px;
}

ul.menu_content {
	margin: 0;
	padding: 0;
	text-align: right;
	display: flex;
	flex-flow: column;
	flex-wrap: wrap;
	justify-content: flex-start;

	font-size: 1.5em;
}

ul.menu_content.bottom {
	margin-top: auto;
}

nav.side_menu li {
	margin: 0.5em 0.25em;
	padding: 0 20px;
	display: flex;
	justify-content: flex-start;
	text-shadow: 1px 1px 2px black;
	font-family: var(--display-font);
}

nav.side_menu li>a {
	position: relative;
	font-size: 1.75em;
	text-decoration: none;
	transition: 0.25s;
}

nav.side_menu li .fa-solid {
	width: 1.5em;
	text-align: center;
	margin: 0 0.25em 0 0;
}

nav.side_menu li.small .fa-solid {
	margin: 0 0.75em 0 0;
}

nav.side_menu li.small {
	padding: 0 27px;
	color: #adadad;
}

nav.side_menu li>a:hover {
	color: #c6c6c6;
}

div.new {
	position: relative;
}

div.new>a::before,
nav.side_menu>ul.menu_content .new::before {
	content: "●";
	position: absolute;
	top: -5px;
	right: -10px;
	font-size: 0.5em;
	color: #F55;
	text-decoration: none;
}

nav ul.acount_change {
	max-width: 250px;
	margin: 0 0 0 27px;
	display: flex;
	flex-flow: wrap;
	justify-content: flex-start;
}

nav ul.acount_change li {
	margin: 0.5em;
	padding: 0;
	min-height: 40px;
	border-radius: 3px;
	border: 2px solid #efefef55;
	transition: 0.2s;
}

nav ul.acount_change li:hover {
	opacity: 0.7;
}

nav ul.acount_change li a {
	display: block;
	width: 40px;
	border-radius: 3px;
}

nav ul.acount_change li img {
	width: 100%;
}

div.top_button {
	opacity: 0;
	pointer-events: none;

	position: fixed;
	z-index: 50;
	bottom: 50px;
	right: 20px;
	width: 70px;
	height: 70px;

	border-radius: 15px;
	background-color: #172027;
	box-shadow: 2px 2px 2px #000000a0;
	text-align: center;
	cursor: pointer;
	transition: 0.3s;
}

.top_button:hover {
	transform: translate(1.5px, 1.5px);
}

div.top_button>a {
	width: 100%;
	font-size: 4em;
	text-decoration: none;
	line-height: 70px;
}

div.top_button.visible {
	display: block;
	opacity: 1;
	pointer-events: unset;
}

@media only screen and (max-width: 800px) {
	header>h1 {
		font-size: 1em;
		padding: 0;
	}

	nav.side_menu li>a>small {
		font-size: 0.35em;
	}

	nav ul.acount_change li {
		margin: 0.25em;
		min-height: 30px;
	}

	nav ul.acount_change li a {
		width: 30px;
	}
}

@media only screen and (max-width: 600px) {
	header {
		padding: 0 0.2em 0 0;
	}

	ul.menu_content {
		font-size: 1.1em;
		margin: 0;
	}

	.charaBanner>a {
		width: 40px;
		height: 40px;
	}

	div.menu_other {
		display: none;
	}

	div.state_area {
		margin: 0;
	}

	div.state {
		width: calc(100% - (1em + 40px));
	}

	div.hp_guege {
		width: 100px;
	}

	div.menu_button {
		margin: 0 0 0 1em;
	}
}

/* ルールブック */
div.rule_box {
	margin: 0 0 2em 0;
	padding: 0 1em;
}

div.index_box {
	margin: 0 0 1em 0;
	padding: 0 1em;
	font-size: 1.25em;
}

div.index_box li {
	list-style-type: disc;
	margin: 0 1em 0 2em;
	font-size: 0.9em;
}

div.index_box li:first-of-type {
	margin: 0 1em 0 1em;
	font-size: 1em;
}

main.rule table {
	margin: 1em;
	padding: 0.5em;
	max-width: 1000px;

	box-shadow: inset 0px 0px 5px 0px rgba(0, 0, 0, 0.75);
	border-radius: 2px;
	background-color: var(--sub-color);
}

table td:nth-of-type(2),
table th:nth-of-type(2) {
	padding: 0.5em 1em;
	font-size: 0.9em;
}

table.status_table tr>th:nth-of-type(2),
table.status_table tr>td:nth-of-type(2) {
	text-align: center;
}

table.status_table tr>th:nth-of-type(3),
table.status_table tr>td:nth-of-type(3) {
	text-align: left;
}

table.resource_table tr>th:nth-of-type(2),
table.resource_table tr>td:nth-of-type(2) {
	text-align: left;
	padding: 0.5em 1em;
	font-size: 0.9em;
}

table.effect_table tr>th:nth-of-type(2),
table.effect_table tr>td:nth-of-type(2),
table.range_table tr>th:nth-of-type(2),
table.range_table tr>td:nth-of-type(2) {
	font-size: 0.9em;
	text-align: left;
}

table.skills_table tr>th:nth-of-type(2),
table.skills_table tr>td:nth-of-type(2) {
	font-size: 0.9em;
	text-align: left;
}

table.status_table tr>th:nth-of-type(2),
table.status_table tr>td:nth-of-type(2) {
	font-size: 0.9em;
	text-align: center;
}

table.elm_table tr>th,
table.elm_table tr>td {
	text-align: center;
	font-size: 1em;
}

table.state_table tr>th:nth-of-type(2),
table.state_table tr>td:nth-of-type(2) {
	text-align: center;
}

table.state_table tr>th:nth-of-type(3),
table.state_table tr>td:nth-of-type(3) {
	text-align: left;
}

@media only screen and (max-width: 800px) {
	main.rule table {
		font-size: 0.8em;
	}
}

/* お知らせページ */
main.info {
	height: calc(100dvh - 55px);
	min-height: auto;
}

section.osirasu {
	height: calc(100dvh - (110px + 1em));
}

section.osirasu>div.news_container {
	margin: 0;
	height: 100%;
	overflow-y: auto;
}

div.news_container>article {
	margin: 0.25em;
	padding: 0.5em;
}

div.news_container>article>p {
	padding: 0 0.5em;
}

/* ランディングページ */

main.index::before {
	display: none;
}

div.title {
	width: 100%;
	height: 80dvh;
	padding: 60px 0 0 0;

	display: flex;
	flex-flow: column;
	justify-content: space-between;
	align-items: center;

	background-size: auto, auto, cover;
	background-repeat: repeat, repeat, no-repeat;
	background-attachment: fixed, fixed, scroll;
	background-position: 50% 80%;
}

div.title>p {
	text-shadow: 1px 1px 2px black;
}

div.title>img {
	margin: 2em 0;
	width: 60%;
	max-height: 50%;
	object-fit: contain;
	filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 1));
}

div.teaserbox {
	width: 100%;
	min-height: 70dvh;
	margin: 0;
	padding: 2em;
	background-image: url("../imgs/otis-redding.png");
	background-size: auto;
	background-repeat: repeat;
	background-attachment: fixed;
}

div.teaserbox p {
	max-width: 1200px;
	margin: 0 auto;
	word-break: keep-all;
}

div.teaserbox.prologue {
	background-image: url("../imgs/otis-redding.png"),
		linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
		url("../imgs/bg04.webp");
	background-color: #17202750;
	background-size: auto, auto, cover;
	background-repeat: repeat, repeat, no-repeat;
	background-attachment: fixed, fixed, scroll;
	background-position: 50% 80%;
}

div.teaserbox.about {
	background-image: url("../imgs/otis-redding.png"),
		linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
		url("../imgs/bg02.webp");
	background-color: #27251750;
	background-size: auto, auto, cover;
	background-repeat: repeat, repeat, no-repeat;
	background-attachment: fixed, fixed, scroll;
	background-position: 50% 80%;
}

div.teaserbox.world {
	background-image: url("../imgs/otis-redding.png"),
		linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
		url("../imgs/bg03.webp");
	background-color: #27172350;
	background-size: auto, auto, cover;
	background-repeat: repeat, repeat, no-repeat;
	background-attachment: fixed, fixed, scroll;
	background-position: 50% 80%;
}

div.teaserbox.term {
	background-image: url("../imgs/otis-redding.png"),
		linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
		url("../imgs/bg01.webp");
	background-color: #17271c50;
	background-size: auto, auto, cover;
	background-repeat: repeat, repeat, no-repeat;
	background-attachment: fixed, fixed, scroll;
	background-position: 50% 80%;
}

div.teaserbox.other {
	background-image: url("../imgs/otis-redding.png"),
		linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)),
		url("../imgs/bg00.webp");
	background-color: #271e1750;
	background-size: auto, auto, cover;
	background-repeat: repeat, repeat, no-repeat;
	background-attachment: fixed, fixed, scroll;
	background-position: 50% 80%;
}

div.teaserbox h3 {
	margin: 0.5em 0 1.25em 0;
	text-shadow: 1px 1px 2px black;
	display: flex;
	align-items: center;
	justify-content: center;
	border: none;
}

div.teaserbox h3::before,
div.teaserbox h3::after {
	content: '';
	width: 3em;
	height: 3px;
	background-color: var(--accent-color);
}

div.teaserbox h3::before {
	margin-right: 1em;
}

div.teaserbox h3::after {
	margin-left: 1em;
}

div.teaserbox h4 {
	margin: 1em auto;
	max-width: 1200px;
}

div.teaserbox table {
	margin: 1em auto;
	max-width: 1200px;
}

@media only screen and (max-width: 800px) {
	div.title>img {
		width: 100%;
	}

	div.teaserbox p {
		word-break: break-all;
	}
}

/* ホーム画面 */

section.home {
	position: relative;
	width: 100%;
	height: calc(100dvh - (60px + 1em));
	padding: 0;

	display: flex;
	justify-content: center;
	align-items: flex-end;
	overflow: hidden;

}

@keyframes slideIn {
	0% {
		transform: translateX(150%);
	}

	100% {
		transform: translateX(0%);
	}
}

@keyframes slideInUp {
	0% {
		transform: translateY(200%);
	}

	100% {
		transform: translateY(0%);
	}
}

input.hidden {
	display: none;
}

label[for="activity-toggle"] {
	display: none;
}

div.friend_activity {
	display: flex;
	flex-flow: column;

	position: absolute;
	bottom: 1em;
	left: 1em;
	font-size: 0.75em;

	width: 30%;
	max-width: 500px;
	min-width: 200px;

	transform: translateY(150%);
	animation: slideInUp 1.0s cubic-bezier(0, 1.00, 0.6, 1) forwards;
	animation-delay: 0.25s;
}

div.act {
	margin: 0.5em 0;
	padding: 0.5em 0.5em 0.5em 0.5em !important;

	/* width: fit-content;
		max-width: 100%; */
	width: 100%;

	display: flex;
	flex-flow: row;
	align-items: center;

	background-color: #FFFFFFdd;
	border-radius: 10px;
}

div.act>a>img {
	width: 40px;
	height: 40px;
	justify-self: flex-start;
}

div.act>p {
	margin: 0 1em;
	padding: 0;
	max-width: 50em;
	color: #202020;
	text-align: left;
	font-size: 0.9em;
	font-weight: 500;
}

div.prof_img {
	position: relative;
	width: 100%;
	height: 100%;
	padding: 0;

	display: flex;
	justify-content: center;
	align-items: flex-end;
}

div.prof_img>a {
	position: absolute;
	height: 80%;
}

div.prof_img>a>img {
	object-fit: contain;
	width: fit-content;
	height: 100%;
}

div.prof_img>a.selected {
	pointer-events: none;
	z-index: 1;
	transform: translateX(-50%);
}

div.prof_img>a.hide {
	z-index: 0;
	filter: brightness(0.3);
}


nav.top_menu {
	width: 100%;

	position: absolute;
	right: 0;
	bottom: 0.5em;

	display: flex;
	flex-flow: row;

	font-family: var(--sub-font);
	line-height: 0;
	z-index: 10;
}

nav.top_menu>div.items {
	margin: auto;
	width: calc(100% / 14);
	max-width: 100px;
}

nav.top_menu>div.items {
	height: 100%;
	padding: 0.25em;
}

nav.top_menu>div.items.disabled {
	opacity: 0.5;
	pointer-events: none;
}

nav.top_menu>div.items>a {
	display: flex;
	flex-flow: column;
	justify-content: center;
	align-items: center;

	text-decoration: none;
}

nav.top_menu>div.items img {
	width: 100%;
}

@media only screen and (max-width: 800px) {
	nav.top_menu {
		font-size: 1em;
		height: auto;
		max-height: none;
	}

	div.prof_img {
		height: 100%;
	}

	div.friend_activity {
		width: 100%;
		max-width: none;
		z-index: 10;
		bottom: 0;
		left: 0;

		transform: translateY(100%);
		transition: transform 0.3s ease-in-out;
		animation: none;
	}

	#activity-toggle:checked+.friend_activity {
		transform: translateY(0);
	}

	label[for="activity-toggle"] {
		display: block;
	}

	.activity_bar {
		content: "";
		position: absolute;
		top: -1.5em;
		left: 50%;
		transform: translateX(-50%);
		width: 200px;
		height: 5px;
		border-radius: 10px;
		background-color: var(--font-dark-color);
		z-index: 10;
		transition: 0.3s;
		cursor: pointer;
	}

	div.friend_activity>div.act {
		margin: 0.5em auto;
		width: 90%;
	}
}

@media only screen and (max-width: 600px) {
	nav.top_menu {
		font-size: 0.8em;
	}

	nav.top_menu>div.items {
		width: calc(100% / 10);
	}
}

/* フィールド画面 */

	div.map {
		margin: -2em auto 0 auto;
		padding: 0;
		width: 80%;
		max-width: 700px;
		position: relative;
	}

	div.map_sections {
		width: 100%;
		height: 100%;
	}

	div.map_sections div[class*="map_"] {
		max-width: 100px;
		max-height: 100px;
		min-width: 40px;
		min-height: 40px;
		width: 10vw;
		height: 10vw;
		position: absolute;
		box-shadow: 2px 2px 0px 0px rgb(0 0 0 / 40%);
		border-radius: 3px;
		cursor: pointer;
		transition: 0.15s;
		z-index: 10;
		overflow: visible;

		clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
		background-color: #efefef;
		padding: 2px;
	}

	div.map_sections div[class*="map_"]>div {
		clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
		background: var(--gradation-to-top);
		position: relative;
	}

	div.map_sections div[class*="map_"] img {
		width: 100%;
		height: 100%;
	}

	div.map_sections div[class*="map_"] a {
		width: 100%;
		height: 100%;
		display: block;
	}

	div.map_sections div[class*="map_"] span {
		font-size: 0.8em;
		position: absolute;
		bottom: 5px;
		right: 0;
		margin: 0;
		background-color: #000000;
		font-family: var(--display-font);
		white-space: nowrap;
		pointer-events: none;
	}

	div.map_sections>div[class*="map_"]:hover {
		transform: translate(1px, 1px);
		box-shadow: 2px 2px 2px rgb(62 47 48 / 0);
		background-color: #f0ed4eea;
	}

	.menus {
		margin: 0.5em auto;
		padding: 0 1em;
		width: 100%;

		display: flex;
		justify-content: space-between;
		align-items: center;
	}

	div.tub {
		display: flex;
		word-break: keep-all;
	}

	div.map div.tub {
		position: absolute;
		top: -2.5em;
		left: 0.5em;
	}

	div.tub p {
		margin: 0 0.5em 0 0;
		padding: 0.25em 1em;

		border: 2px solid #efefef;
		border-radius: 3px;

		cursor: pointer;
		user-select: none;
		transition: 0.15s;
	}

	div.tub p.selected {
		background-color: var(--font-dark-color)40;
	}

	div.map>div.tub p {
		border-top: 2px solid #efefef;
		border-left: 2px solid #efefef;
		border-right: 2px solid #efefef;
		border-bottom: 2px solid #efefef;
	}

	div.map>div.tub p.north {
		border-top: 3px solid #ff9292;
	}

	div.map>div.tub p.south {
		border-bottom: 3px solid #ff9292;
	}

	div.map>div.tub p.east {
		border-right: 3px solid #ff9292;
	}

	div.map>div.tub p.west {
		border-left: 3px solid #ff9292;
	}

	div.button.area_filter {
		position: relative;
	}

	.enemy-filter {
		position: absolute;
		background: var(--sub-color);
		border-radius: 4px;
		padding: 10px;
		display: none;
		z-index: 10;
		width: fit-content;
	}

	.enemy-filter .menus {
		width: 100%;
		margin: 0.5em 0;
		gap: 3px;
		justify-content: space-around;
	}

	.enemy-filter div.button {
		padding: 7px 1em;
		background-color: rgba(0, 0, 0, 0);
		border: 2px solid #b7b4c9;
		border-radius: 3px;
		color: var(--font-dark-color);
		cursor: pointer;
		transition: 0.25s;
		white-space: nowrap;
		flex: 1;
		text-align: center;
	}

	.enemy-filter div.button.active,
	.enemy-filter div.button:hover {
		color: #404040;
		background-color: var(--font-dark-color);
	}

	.enemy-filter div.spacer {
		padding: 7px 1em;
		background-color: rgba(0, 0, 0, 0);
		border: 2px solid #b7b4c9;
		flex: 1;
		text-align: center;
		opacity: 0;
	}

	div.map>img {
		width: 100%;
		filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 0.75));
		border-radius: 2px;
		user-select: none;
		/* border: solid 2px #efefef; */
		/* box-shadow: rgba(0, 0, 0, 0.75) 0px 0px 10px 0px; */
	}

	section.explore>form {
		margin: 1em;
	}


	.pb_container {
		max-width: 700px;
		margin: 0 auto;
		display: flex;
		flex-flow: column;
		gap: 1em;
	}
	.pb {
		position: relative;
		border: 1px solid #CCCCCC50;
	}
	.pb:before{
		content: "AD";
		position: absolute;
		top: -0;
		right: 0;
		border: solid 1px #5673f580;
		background-color: #00000020;
		color: white;
		font-size: 0.75em;
		padding: 0.1em 0.3em;
		border-radius: 3px;
	}
	.pb a{
		display: flex;
		justify-content: flex-start;
		align-items: center;
		text-decoration: none;
	}
	.pb_content p{
		margin: 0;
		padding: 0 2em 0 1em;
		font-size: 0.9em;
	}
	.pb .pb_image {
		max-height: 200px;
		max-height: 40px;
		object-fit: cover;
		border-radius: 2px;
	}

	div.section_info {
		margin: 0;

		display: flex;
		align-content: center;
		align-items: center;
	}

	div.section_info>img {
		width: 100px;
		height: 100px;
		object-fit: cover;
		border-radius: 3px;
	}

	div.section_info>img.otherside,
	div[class*="map_"]>img.otherside {
		filter: contrast(1.2) hue-rotate(120deg);
	}

	div.section_info>p {
		margin: 0.5em;
		font-size: 0.9em;
	}

	div.section_info>p>b {
		font-size: 1.4em;
	}

	section.explore {
		min-height: auto;
	}

	div.section_areas {
		margin: 1em 0;
		padding: 0 0.5em;
		max-height: 800px;
		overflow-y: auto;
		box-shadow: inset 0px 0px 5px 0px rgba(0, 0, 0, 0.75);
		background-color: rgba(0, 0, 0, 0.2);
		border-radius: 2px;
	}

	div.section_areas.places div.arealist {
		border: #b6b6b6a0 2px solid;
		background-color: #cccccc20;
	}

	div.arealist {
		width: 100%;
		margin: 1em 0;
		padding: 0.5em;
		display: flex;
		flex-flow: column;
		align-items: flex-start;
		justify-content: flex-start;

		border: #c9c9c9a0 2px solid;
		font-size: 0.8em;
		border-radius: 3px;
		cursor: pointer;
		transition: 0.15s;
		box-shadow: 2px 2px 2px #000000a0;
	}

	div.arealist.overside {
		border: #6793d2a0 2px solid;
		background-color: #6793d220;
	}

	div.arealist.otherside {
		border: #ff9898a0 2px solid;
		background-color: #d2676720;
	}

	div.arealist:hover {
		transform: translate(2px, 2px);
		box-shadow: 2px 2px 2px #00000000;
	}

	div.arealist>a {
		display: block;
		width: 100%;
		height: 100%;
		text-decoration: none;
	}

	.area_name {
		margin: 0.5em 0 0 0;
		font-size: 1.25em;
		display: flex;
		align-items: flex-start;
	}

	.area_name img {
		width: 60px;
	}

	.area_name p {
		margin: 0 0.5em;
	}

	.area_name span {
		font-size: 0.8em;
	}

	.description {
		font-size: 1em;
	}

	.area_status {
		width: 100%;
		margin: -0.25em 0.5em 0 0.5em;
	}

	.area_status>small {
		margin: 0 0.5em 0 0;
	}

	.area_status ul.area_charalist {
		display: flex;
		flex-flow: wrap;
	}

	.area_status ul.area_charalist li {
		width: 30px;
		height: 30px;
		margin: 0 0.5em 0 0;
	}

	.area_status ul.area_charalist li img {
		width: 100%;
		height: 100%;
	}
	.member_list{
		display: flex;
		gap: 5px;
		flex-flow: wrap;
		align-items: center;
		justify-content: flex-start;
		overflow-x: auto;	
	}
	.member_list img{
		width: 30px;
		height: 30px;
	}
	.member_list img.character{
		border: 1px solid #efefef;
	}
	.member_list img.npc{
		border: 1px solid #9af39a;
	}
	.member_list div img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		border-radius: 50%;
	}
	.tags {
		margin: 0.5em 0;
		display: flex;
		flex-flow: wrap;
		justify-content: flex-start;
		align-items: center;
	}

	.tag {
		margin: 0 5px 0 0;
		padding: 0 0.5em 0.1em 0.5em;
		border: 1px solid #efefef;
		border-radius: 2px;
		font-size: 0.7em;
	}

	.tag.red {
		color: var(--font-dark-color);
		border-color: #f39a9a;
	}

	.tag.orange {
		color: var(--font-dark-color);
		border-color: #f3cf9a;
	}

	.tag.blue {
		color: var(--font-dark-color);
		border-color: #9ac8f3;
	}

	.tag.yellow {
		color: var(--font-dark-color);
		border-color: #dad873;
	}

	.tag.green {
		color: var(--font-dark-color);
		border-color: #9af39a;
	}

	.tag.purple {
		color: var(--font-dark-color);
		border-color: #d29af3;
	}

	.tag.gray {
		color: var(--font-dark-color);
		border-color: #838383;
	}

	.tag.lightgray {
		color: var(--font-dark-color);
		border-color: #b4b4b4;
	}

	div.move_command {
		margin: 1em 0;
		padding: 1em 1em 0 1em;
		/* max-height: 800px; */
		overflow-y: auto;
		box-shadow: inset 0px 0px 5px 0px rgba(0, 0, 0, 0.75);
		background-color: rgba(0, 0, 0, 0.2);
		border-radius: 2px;
	}

	.chara_list {
		display: flex;
		flex-direction: column;
	}

	.chara_list_item {
		display: flex;
		align-items: center;
		padding: 0 1em;
	}

	.chara_icon img {
		width: 30px;
		height: 30px;
		object-fit: cover;
	}

	.chara_name {
		margin-left: 0.5em;
	}

	.chara_action {
		margin-left: 2em;
	}

	.chara_action>form {
		margin: 0;
	}

	@media only screen and (max-width: 800px) {
		div.map_sections div[class*="map_"] {
			clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
		}

		div.map_sections div[class*="map_"]>div {
			clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
		}

		.menus {
			flex-flow: wrap;
		}

		section.field div.menus {
			flex-flow: row;
		}

		.area_filter {
			font-size: 0.5em;
		}

		section.field div.menus input {
			min-width: auto;
			max-width: none;
		}

		.description {
			font-size: 1em;
		}
	}

	/* エリア画面 */

	div.area_data {
		margin: 2em auto;
		width: calc(100% - 2em);
		display: flex;
		flex-flow: row;
		gap: 2em;
	}

	div.area_data>section {
		margin: 0;
	}

	section.container.area_info>.content_box {
		background-position-x: center, 100%, center, center;
		background-position-y: center, 10%, center, center;
		background-repeat: repeat, no-repeat, repeat, no-repeat;
		background-size: cover, 50%, auto, cover;
		background-attachment: local, scroll, fixed, local;
	}

	section.container.profile_image {
		max-width: 30%;
	}

	div.container_label {
		position: absolute;
		top: 1.5em;
		right: -2px;
		padding: 0.25em 0.5em;

		line-height: 1.1;
		font-family: var(--sub-font);
		font-size: 1.2em;
		color: #efefef;

		background-color: #000000;
	}

	section.profile_image>div.content_box {
		padding: 0;
	}

	div.profile_image_box {
		padding: 1em;
		display: flex;
		justify-content: center;
		align-items: center;

		background-size: auto, auto, cover;
		background-repeat: repeat, repeat, no-repeat;
		background-attachment: fixed, fixed, local;
		background-position: 50% 50%;
		font-family: var(--main-font);
		color: var(--font-dark-color);
		transition: opacity 0.2s;

		min-height: 300px;
	}

	div.profile_image_box>img {
		max-width: 300px;
		width: 100%;
		max-height: 500px;
		height: auto;
		object-fit: contain;
	}

	.status_area {
		padding: 0.5em;

		display: flex;
		flex-flow: column;
		align-items: flex-start;
		justify-content: flex-start;

		box-shadow: inset 0px 0px 5px 0px rgba(0, 0, 0, 0.75);
		background-color: var(--sub-color);
		border-radius: 2px;
		font-family: "Jura", "Noto Sans JP", sans-serif;
	}

	.status_area>h5 {
		margin: 0;
		color: #aaaaaa;
	}

	.status_box {
		display: flex;
		flex-flow: wrap;
		justify-content: flex-start;
		align-items: center;
	}

	.status_box p {
		margin: 0 0.25em 0.25em 0.25em;
		font-size: 1.5em;
		/* white-space: nowrap; */
	}

	.status_box p small {
		font-size: 0.6em;
		font-weight: bold;
	}

	.status_box p span.state {
		font-size: 0.8em;
	}

	div.area_info {
		display: flex;
		align-items: center;
	}

	div.area_info>img {
		width: 60px;
		height: 60px;
		object-fit: cover;
		border-radius: 3px;
	}

	ul.area_charalist {
		max-height: 500px;
		overflow-y: auto;
		display: flex;
		flex-flow: column;
	}

	ul.area_charalist>li {
		width: 100%;
		margin: 0.5em 0;
		display: flex;
		flex-flow: column;
		justify-content: flex-start;
		align-items: flex-start;
	}

	ul.area_charalist>li>span {
		flex-shrink: 0;
	}

	ul.area_charalist>li img {
		width: 30px;
		height: 30px;
		object-fit: contain;
	}

	#npc_form ul.area_charalist>li {
		width: auto;
	}

	div.stats {
		margin: 0 0 0 0.25em;
		display: flex;
		flex-flow: row;
		justify-content: space-between;
		align-items: center;
		gap: 0.5em;
		/* width: 100%; */
	}

	div.stats p {
		width: 12em;
		margin: 0 auto 0 0;
		padding: 0;
	}

	div.stats div.guage {
		content: "";
		width: 120px;
		height: 6px;

		display: flex;
		justify-content: flex-start;

		background-color: #35211f;
		z-index: 0;
		border-radius: 1px;
		transform: skewX(15deg);
	}

	div.stats div.guage>div {
		content: "";
		max-width: 100%;
		height: 6px;
		z-index: 1;
		border-radius: 1px;
		transform: skewX(15deg);
	}

	div.stats div.guage>div.hp {
		background-color: #4ea05c;
	}

	div.stats div.guage>div.sp {
		background-color: #4e77a0;
	}

	div.stats div.guage>div.ep {
		background-color: #a04ea0;
	}

	div.stats div.guage>div.gp {
		background-color: #a04e4e;
	}

	div.stats div.bar {
		display: flex;
		flex-direction: column;
		font-family: "Jura", "Noto Sans JP", sans-serif;
	}

	div.state_list {
		margin: 0 0 0 calc(30px + 1em);
	}

	div#action_form {
		display: none;
		margin: 0;
		padding: 0.5em;
		font-size: 1em;
	}

	div#action_form.appear {
		margin: 0 0.5em 0.5em 0.5em;
	}

	div#action_form>select {
		width: 32em;
		max-width: 100%;
		margin: 0.25em 0;
	}

	div#action_form>form {
		margin: 0 0.5em;
	}

	div#action_form>form>label>input[type="text"] {
		margin: 0 0.5em 0 0;
	}

	div#action_form>form>label>input[type="submit"] {
		margin: 0.5em 0;
	}

	input[name="title"] {
		width: 100%;
		max-width: 24em;

	}

	textarea[name="content"] {
		width: 100%;
		max-width: 600px;
		height: 18em;
	}

	.action_command {
		max-width: 100%;
		margin: 1em 0;
		padding: 0.5em 1em;

		display: flex;
		flex-direction: row;
		flex-flow: nowrap;
		justify-content: flex-start;
		align-items: center;


		border: #c9c9c9a0 2px solid;
		background-color: var(--sub-color);
		box-shadow: 2px 2px 2px #000000a0;
		border-radius: 3px;
		font-size: 0.9em;
	}

	.modal .action_command {
		flex-direction: row;
	}

	.action_command.tier_1 {
		position: relative;
		background-color: rgba(87, 87, 87, 0.2);
	}

	.action_command.tier_1::after {
		content: "Tier.1";
		position: absolute;
		bottom: 0.25em;
		right: 0.5em;
		font-size: 1.5em;
		font-family: var(--main-font);
		opacity: 0.5;
	}

	.action_command.tier_2 {
		position: relative;
		background-color: rgba(30, 60, 90, 0.2);
	}

	.action_command.tier_2::after {
		content: "Tier.2";
		position: absolute;
		bottom: 0.25em;
		right: 0.5em;
		font-size: 1.5em;
		font-family: var(--main-font);
		opacity: 0.3;
	}

	.action_command.tier_3 {
		position: relative;
		background-color: rgba(90, 30, 30, 0.2);
	}

	.action_command.tier_3::after {
		content: "Tier.3";
		position: absolute;
		bottom: 0.25em;
		right: 0.5em;
		font-size: 1.5em;
		font-family: var(--main-font);
		opacity: 0.3;
	}

	.action_command>img {
		width: 60px;
		height: 60px;
		margin: 0 0.25em 0 0;
	}

	div.skill_content>p,
	div.skill_content>label {
		margin: 0.5em;
	}

	div.skill_content>label>input,
	div.skill_content>label>select {
		margin: 0;
	}

	div.skill_content>b {
		display: inline-flex;
		align-items: flex-end;
	}

	div.skill_content>b>img {
		margin: 0 0.25em 0 0;
	}

	div.skill_content>b>small {
		margin: 0 0 0 0.25em;
	}

	.skill-level-2 {
		border: 2px solid #5bc0de;
	}

	.skill-level-3 {
		border: 2px solid #f0ad4e;
		/* box-shadow: 0 0 5px #f0ad4e; */
	}

	div.skill_content small.costs {
		font-weight: bold;
	}

	span.lv_2 {
		color: #cdc577;
	}

	span.lv_3 {
		color: #ff9191;
	}

	div.skill_content small.costs span.fa-solid {
		margin: 0 0.25em;
	}

	div.skill_content img.skill_ic {
		width: 2em;
		height: 2em;
		border-radius: 3px;
	}

	div.skill_content {
		max-width: 100%;
		margin: 0 0.5em;
		display: flex;
		flex-flow: column;
		justify-content: flex-start;
		align-items: flex-start;
	}

	#openTargetModal {
		margin: 1em 0.5em;
	}

	#openTargetModal,
	.direction_selection>button,
	#selection_box button,
	button.targetButton,
	.skill_buttons>button {
		padding: 7px 1em;
		background-color: rgba(0, 0, 0, 0);
		border: 2px solid #b7b4c9;
		border-radius: 3px;
		color: var(--font-dark-color);
		cursor: pointer;
		transition: 0.25s;
	}

	#openTargetModal:hover,
	#openTargetModal.selected,
	#selection_box button:hover,
	#selection_box button.selected,
	button.targetButton:hover,
	button.targetButton.selected,
	.skill_buttons>button:hover,
	.skill_buttons>button.selected {
		color: #404040;
		background-color: var(--font-dark-color);
		border: 2px solid #b7b4c9;
	}

	.use_skill_button[disabled]:hover {
		background-color: rgba(0, 0, 0, 0);
		border: 2px solid #b7b4c9;
		color: var(--font-dark-color);
	}

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

		div.area_data {
			position: relative;
			margin: 2em auto;
			width: calc(100% - 2em);
			display: flex;
			flex-flow: column;
			gap: 2em;
		}

		section.container.area_info {
			max-width: none;
		}

		section.container.profile_image {
			position: absolute;
			top: 1em;
			right: 1em;
			width: 80px;
			height: 80px;

			max-width: none;
		}

		.action_command {
			width: auto;
		}

		div.chara_info {
			padding: 0;
		}

		.chara_info>.serif_comment,
		.chara_info>.status_area {
			width: 100%;
		}

		div.stats div.guage {
			width: 60px;
		}
	}

/* エリアマップ */
	div.move_box {
		padding: 0.5em;
	}

	div.move_box>div.current_member>ul {
		padding: 0 1em;
		display: flex;
		flex-flow: wrap;
	}

	div.map_area {
		margin: 0 auto;
		padding: 2.5em 1em 0.5em 1em;
		width: 100%;

		position: relative;
		font-family: var(--main-font);
		font-weight: bold;
		transition: 0.15s;
		border-radius: 3px;
		overflow: hidden;

		background-image: url('../imgs/p4.png');
		background-size: auto;
		background-repeat: repeat;
		background-attachment: fixed;
	}

	div.areamap {
		max-width: 100%;
		margin: 0 auto;
		padding: 1em;
		position: relative;

		display: grid;
		grid-template-columns: repeat(21, 35px);
		/* grid-template-rows   : repeat(1, 35px); */
		grid-column-gap: 10px;
		justify-content: space-between;
		align-items: center;

		border-radius: 3px;
		overflow-x: auto;
		z-index: 1;
	}

	div.areamap_bg {
		position: absolute;
		top: 0;
		left: 0;
		width: 100%;
		height: 100%;
		z-index: 0;
		background-size: 100% 500%;
		background-repeat: repeat, no-repeat;
		background-position: 50% 65%;
		filter: blur(3px);
		opacity: 0.8;
	}

	div.map_chip {
		position: relative;
		display: flex;
		justify-content: center;
		align-items: center;

		/* background-color: #c5c5c5; */
		width: calc(1em + 30px);
		height: calc(1em + 30px);
		padding: 0.25em;
		border-bottom: 3px solid #cfcfcfe0;
		cursor: pointer;
		transition: 0.15s;
	}

	div.map_chip:hover {
		background-color: #ffffff50;
	}

	div.map_chip>.fa-solid {
		font-size: 1.3em;
	}

	div.map_chara {
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		display: flex;
		align-items: center;
		justify-content: center;
		width: 100%;
		height: 100%;
		pointer-events: none;
	}

	div.map_chara>img {
		width: 30px;
		height: 30px;
	}

	div.map_chara.enemy>img {
		filter: drop-shadow(0px 5px 5px #eb4747);
	}

	div.map_chara.enemy.defeated {
		opacity: 0.25;
	}

	div.map_chara.boss {
		top: 25%;
	}

	div.map_chara.enemy.boss>img {
		max-width: none;
		width: 60px;
		height: 60px;
	}

	div.map_chara>div.hp_guege {
		content: "";
		width: 90%;
		height: 4px;

		position: absolute;
		top: -3px;
		left: 50%;
		transform: translateX(-50%);

		display: flex;
		justify-content: flex-start;

		background-color: #35211f;
		z-index: 10;
	}

	div.map_chara div.hp_guege>div.hp {
		content: "";
		height: 4px;
		background-color: #4ea05c;
		z-index: 0;
	}

	div.map_chara.enemy>div.hp_guege {
		top: -7px;
	}

	div.map_chara.enemy.boss>div.hp_guege {
		width: 180%;
		height: 8px;
		top: -7px;
	}

	div.map_chara.enemy div.hp_guege>div.hp {
		background-color: #da431d;
	}

	div.map_chara.enemy.boss div.hp_guege>div.hp {
		height: 8px;
		background-color: #b42544;
	}

	div.map_chip.in_range {
		border-bottom: 3px solid #fdff76e0 !important;
	}

	div.map_chip.selected {
		border-bottom: 3px solid #ff7f76e0 !important;
	}

	div.map_chip.sub_range {
		border-bottom: 3px solid #ffb476e0 !important;
	}

	div.map_chip.outer {
		border-bottom: 3px solid #3f3f3fe0;
	}

	div.map_chip.is_wall {
		background-color: #00000050;
		border-bottom: 3px solid #8b8b8be0;
	}

	div.mapchip_info,
	form#selected_mapchip ul.area_charalist {
		margin: 0 0 0.5em 0;
	}

	form#selected_mapchip p {
		margin: 0;
	}

	div.character_selection>ul {
		margin: 1em 0;
		display: flex;
		flex-flow: wrap;
	}

	div.character_selection>ul>li {
		border-radius: 3px;
		border: 2px solid transparent;
	}

	div.character_selection>ul>li img {
		width: 40px;
	}

	div.character_selection>ul>li.selected {
		border: 2px solid #f0ed4e;
	}

	div.map_area {
		padding-top: 1em;
	}

	div.areamap {
		padding-top: 2.5em;
	}

	div.next_at {
		position: absolute;
		top: -1.7em;
		transform: scale(0.52);
	}

	div.map_chara:nth-child(2n) div.next_at {
		top: -2.4em;
	}

/* アイテム画面 */

div.item_list {
	margin: 1em auto;
	padding: 0 1em;
}

ul.item_box {
	padding: 0.5em;
	min-height: 2em;
	max-height: 800px;
	overflow-y: auto;

	box-shadow: inset 0px 0px 5px 0px rgba(0, 0, 0, 0.75);
	background-color: rgba(0, 0, 0, 0.2);
	border-radius: 2px;
}

ul.item_box>li {
	margin: 0 0 0.1em 0;
	padding: 0.5em 0.75em;
	background-color: rgba(0, 0, 0, 0.5);
	border-radius: 3px;
	display: flex;
}

div li.material>div.item_card {
	padding: 0.5em 0.75em 0.5em calc(0.25em + 29px);
}

ul.item_box>li>details>p,
ul.item_box>li>details>form {
	margin: 0 0 0.25em 0;
	padding: 0 1em;
}

ul.item_box>li>details[open]>p {
	height: fit-content;
	animation: fadeinDetail 0.1s ease;
}

ul.item_box>li summary {
	margin: 0 0 0 0.5em;
}

ul.item_box>li form,
ul.item_box>li label {
	display: flex;
	flex-flow: wrap;
	align-items: center;
}

ul.item_box>li label>span {
	cursor: pointer;
	color: #ababab;
}

ul.item_box>li input[type="checkbox"] {
	cursor: pointer;
}

input[type="checkbox"]:checked~span {
	color: var(--font-dark-color);
}

ul.item_box>li summary {
	color: #bebebe;
}

ul.item_box>li.equip summary {
	color: #e68585;
	/* 赤 */
}

ul.item_box>li.food summary {
	color: #e6b485;
	/* 紫 */
}

ul.item_box>li.consume summary {
	color: #85d4e6;
	/* 水色 */
}

ul.item_box>li.ex summary {
	color: #ff6daf;
	/* 赤 */
}

form.item_usage input[type="submit"] {
	margin: 0;
}

@keyframes fadeinDetail {
	0% {
		opacity: 0;
		transform: translateY(-10px);
	}

	100% {
		opacity: 1;
		transform: none;
	}
}

div.item-content {
	padding: 0.5em 1em;
}

div.item_card summary>span.fa-solid {
	color: #efefef;
	width: 25px;
	text-align: center;
}

/* アイテムスタック表示のスタイル - 既存CSSとの統合版 */

/* スタック数の表示 */
.stack-count {
	display: inline-block;
	background-color: rgba(100, 100, 100, 0.6);
	color: var(--font-dark-color);
	border-radius: 10px;
	padding: 0.1em 0.5em;
	font-size: 0.85em;
	margin-left: 0.5em;
	text-shadow: 0 1px 1px rgba(0, 0, 0, 0.5);
}

/* スタックされたアイテムのコンテナ */
.stacked-items {
	margin: 0.5em 0 0.5em 1.5em;
	padding: 0.3em 0 0.3em 0.5em;
	border-left: 2px solid rgba(255, 255, 255, 0.2);
	background-color: rgba(0, 0, 0, 0.2);
	border-radius: 0 3px 3px 0;
	animation: fadeinDetail 0.15s ease;
}

/* 各スタックアイテム */
.stacked-item {
	margin: 0.3em 0;
	padding: 0.2em 0.5em;
	font-size: 0.9em;
	display: flex;
	align-items: center;
	color: #bebebe;
	background-color: rgba(255, 255, 255, 0.1);
	border-radius: 2px;
	transition: background-color 0.2s ease;
}

.stacked-item:hover {
	background-color: rgba(255, 255, 255, 0.15);
}

/* スタック内チェックボックス */
.stacked-item input[type="checkbox"] {
	margin-right: 0.5em;
	cursor: pointer;
}

/* 装備中ラベル */
.equipped {
	display: inline-block;
	background-color: rgba(76, 175, 80, 0.8);
	color: white;
	padding: 0.1em 0.4em;
	border-radius: 3px;
	font-size: 0.8em;
	margin-right: 0.5em;
	text-shadow: 0 1px 1px rgba(0, 0, 0, 0.4);
}

/* メインチェックボックスラベル */
.stack-checkbox-label {
	display: inline-flex;
	align-items: center;
	margin-right: 0.5em;
}

/* 選択中アイテム表示エリア */
.multi_select {
	margin: 0.5em 0;
	padding: 0.5em;
	background-color: rgba(0, 0, 0, 0.2);
	border-radius: 3px;
	color: var(--font-dark-color);
}

/* 選択中アイテムリスト */
ul.selectedItems {
	margin-top: 0.5em;
	padding: 0.5em;
	min-height: 2em;
	max-height: 200px;
	overflow-y: auto;
	background-color: rgba(0, 0, 0, 0.3);
	border-radius: 2px;
	box-shadow: inset 0px 0px 3px 0px rgba(0, 0, 0, 0.5);
}

ul.selectedItems li {
	margin: 0.2em 0;
	padding: 0.3em 0.5em;
	background-color: rgba(255, 255, 255, 0.1);
	border-radius: 3px;
	display: flex;
	align-items: center;
}

/* 選択中アイテムのタイプ別カラー */
ul.selectedItems li.weapon .selected-item-info {
	color: #e68585;
	/* 赤 */
}

ul.selectedItems li.armor .selected-item-info {
	color: #85a8e6;
	/* 青 */
}

ul.selectedItems li.support .selected-item-info {
	color: #7fcf96;
	/* 緑 */
}

ul.selectedItems li.food .selected-item-info {
	color: #c285e6;
	/* 紫 */
}

ul.selectedItems li.consume .selected-item-info {
	color: #85d4e6;
	/* 水色 */
}

ul.selectedItems li.stuff .selected-item-info {
	color: #86c2ac;
	/* 青緑 */
}

/* スタックアイテムの展開アニメーション */
@keyframes stackExpand {
	0% {
		opacity: 0;
		transform: translateY(-5px);
	}

	100% {
		opacity: 1;
		transform: none;
	}
}

.stacked-items {
	animation: stackExpand 0.2s ease;
}

/* アイテム詳細を見やすく調整 */
ul.item_box>li>details>p {
	margin-top: 0.5em;
}

/* 選択項目ハイライト効果 */
ul.item_box input[type="checkbox"]:checked+summary,
.stacked-item input[type="checkbox"]:checked+span {
	text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

/* アイテム検索入力欄のスタイル */
div.item_list>input {
	width: 100%;
	padding: 0.5em;
	margin-bottom: 0.5em;
	background-color: rgba(0, 0, 0, 0.2);
	border: 1px solid rgba(255, 255, 255, 0.2);
	border-radius: 3px;
	color: var(--font-dark-color);
	transition: all 0.2s ease;
}

div.item_list>input:focus {
	background-color: rgba(0, 0, 0, 0.4);
	border-color: rgba(255, 255, 255, 0.4);
	outline: none;
	box-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
}

/* プロフ */

body.prof {
	background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)),
		url("../imgs/dark-mosaic.png"),
		url("../imgs/bg_img02.webp");
}

main.prof {
	padding: 0 0 1em 0;
}

.view_box {
	margin: 0 auto;
	position: relative;
	width: 100%;
	max-width: 1300px;
	height: calc(100vh - 60px);
	display: flex;
	flex-flow: row;
	justify-content: center;
	align-items: flex-end;
	overflow: hidden;
}

.heading {
	position: absolute;
	top: -40px;
	left: 0;
	padding: 0;

	font-family: var(--sub-font);
	font-size: clamp(3em, 15vw, 10em);
	color: #efefef80;
}

.chara_prof {
	max-width: 90%;
	height: 100%;
	padding: 0 25vw 0 0;
	z-index: 10;

	display: flex;
	flex-flow: row;
	justify-content: center;
	align-items: flex-end;
}

#prof_img {
	max-height: 90vh;
	object-fit: contain;
}

.chara {
	max-width: 100%;
	height: calc(100vh - 60px);
	position: absolute;
	top: 0;
	right: 0;
	padding: 0.25em;
	z-index: 10;

	line-height: 1.1;
	font-family: var(--serif-font);
	font-size: 2em;
	color: #efefef;

	display: flex;
	flex-flow: column;
	justify-content: flex-end;
	align-items: flex-end;
}

.chara .chara_title {
	margin: 0;
	font-size: 0.8em;
}

.chara .chara_name {
	margin: 0;
	font-size: 3em;
	font-weight: bold;

	display: flex;
	flex-flow: column;
	justify-content: flex-end;
	align-items: flex-end;
}

.chara .fa-solid {
	margin: 0 0.25em 0 0;
}

.chara .summary {
	max-width: 50vw;
	font-size: 0.6em;
}

.follow {
	padding: 0.25em 0;

	display: flex;
	flex-flow: row;
	justify-content: center;
	align-items: center;

	font-family: var(--sub-font);
	font-size: 0.7em;
	color: #efefef;
}

.follow>div {
	margin: 0 0 0 0.25em;
}

div.fav_spots {
	margin: 0.5em 1em;
	font-size: 1em;
}

div.fav_spots a {
	display: inline-block;
	text-decoration: none;
}

ul.icons {
	margin: 1em;
	width: 100%;
	display: flex;
	flex-flow: wrap;
}

ul.diary_headline {
	margin: 1em 0;
	padding: 1em;
}

ul.diary_headline li p {
	margin: 0;
}

ul.diary_headline li p a {
	text-decoration: underline;
}

@media only screen and (max-width: 800px) {
	div.follow {
		top: -1.5em;
		right: auto;
		left: 0.5em;
	}

	.heading {
		top: -15px;
		left: 0;
	}

	.chara {
		top: auto;
		bottom: 1em;
		text-shadow: -3px 2px #000000;
		z-index: 15;
	}

	.chara_prof {
		padding: 0 2.5em 0 0;
	}

	.chara .chara_name {
		font-size: 2em;
	}

	.chara .summary {
		max-width: 80vw;
	}

	section.status div.content_box {
		flex-wrap: wrap;
	}

	div.charalist_img {
		max-width: none;
		width: 100%;
		height: 200px;
		display: flex;
		justify-content: center;
	}

	div.chara_status.stuts p {
		font-size: 0.8em;
		width: calc((100% / 3) - 0.5em);
	}

	ul.icons img {
		width: 40px;
	}
}

/* ステータス画面 */
div.status_table p {
	margin: 0 0.5em;
}

div.chara_status_box>div.build div.chara_status.stuts p {
	width: calc((100% / 6) - 0.5em);
}

div.chara_status_box div.tub {
	margin: 1em;
	box-shadow: none;
	background-color: transparent;
}

div.chara_status input[type="number"] {
	width: 5em;
	height: 2em;
	min-width: auto;
	background-color: #00000040;
	border: 2px solid #DDDDDD;
	color: #FFFF;
	text-align: center;
	font-family: var(--main-font);
	font-size: 1.25em;
}

div.chara_status input[type="number"]:disabled {
	background-color: #58585880;
	color: #ffffffb7;
	cursor: not-allowed;
}

div.state_lv input[type="number"] {
	min-width: auto;
	width: 12em;
	font-family: 'Jura', 'メイリオ', sans-serif;
	border: 2px solid #DDDDDD;
}

div.class_item h4>.cap {
	width: 1.5em;
	margin-left: -0.25em;
	display: inline-block;
	text-align: center;
}

.interact_box {
	display: flex;
	margin: 0 1em;
	padding: 0.5em;
	height: 700px;

	box-shadow: rgba(0, 0, 0, 0.75) 0px 0px 5px 0px inset;
	background-color: rgba(0, 0, 0, 0.2);
	border-radius: 2px;
	font-family: var(--main-font);

}

.listbox {
	width: 20%;
	height: 100%;
	overflow: auto;
	border-right: 1px solid #ccc;
}

.listbox li {
	margin: 0 0.5em;
	padding: 0.5em 0;
	display: flex;
	align-items: center;

	border-bottom: 1px solid #999999;
	font-size: 1.1em;
	cursor: pointer;
	transition: 0.15s;
}

.listbox li:hover,
.listbox li.selected,
.listbox li.is_active {
	background-color: #cccccc20;
}

.listbox li:last-of-type {
	border-bottom: none;
}

.listbox li span {
	width: 1em;
	margin: 0 0.25em;
	font-size: 1em;
	text-align: center;
}

.list_content {
	flex: 1;
	height: 100%;
	padding: 0 0.5em;
}

.content_summary {
	padding: 0.5em;
	display: flex;
	align-items: center;
	border-bottom: solid 1px #999999;
}

.content_summary>span {
	width: 1em;
	font-size: 3em;
	margin: 0 0.25em;
}

.content_summary>p {
	font-size: 1.2em;
	margin: 0;
	/* word-break: keep-all; */
}

div.content_detail {
	margin: 0.5em 0;
	padding: 0 0.5em;
	font-size: 0.8em;
	height: calc(100% - 120px);
	overflow: auto;
}

div.content_detail .action_command {
	width: 100%;
	display: flex !important;
}

/* .list_content .skill_content small.gray{
		display: none;
	} */
.class-setting-box,
.skill-level-setting,
.skill-message-setting {
	margin: 1em;
	padding: 1em;
	background-color: rgba(0, 0, 0, 0.2);
	border-radius: 2px;
	box-shadow: inset 0px 0px 5px 0px rgba(0, 0, 0, 0.75);
}

.class-slots {
	display: flex;
	flex-wrap: wrap;
	gap: 1em;
	margin-bottom: 1em;
}

.class-slot {
	min-width: 300px;
}

.class-slot select,
.skill-level-selector input[type="radio"] {
	margin: 0.5em 0;
}

.skill-level-selector>button {
	margin: 0 auto;
}

.skill-level-container,
.skill-message-container {
	display: flex;
	flex-direction: column;
	/* gap: 2em; */
	margin-bottom: 2em;
}

.class-skills,
.class-skill-messages {
	padding: 1em;
	background-color: rgba(0, 0, 0, 0.2);
	border-radius: 2px;
}

.class-skills>h4 {
	margin: 0;
}

.skills-list,
.messages-list {
	margin: 1em;
	display: flex;
	flex-direction: column;
	gap: 0.25em;
}

.skill-item {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0.5em;
	background-color: rgba(0, 0, 0, 0.2);
	border-radius: 2px;
}

.skill-item.tier-2 {
	background-color: rgba(30, 60, 90, 0.2);
}

.skill-item.tier-3 {
	background-color: rgba(90, 30, 30, 0.2);
}

.skill-item.disabled {
	opacity: 0.5;
}

.skill-level-selector {
	display: flex;
	flex-flow: column;
	justify-content: center;
	align-items: center;
}

.skill-info {
	display: flex;
	flex-direction: column;
}

.skill-tier {
	font-size: 0.8em;
	color: #ababab;
}

.skills-list div.action_command {
	margin: 0 0.5em;
}

input.skill-level-input {
	margin: 0 auto;
	width: 3em;
	min-width: auto;
	text-align: center;
	font-family: var(--main-font);
}

input.skill-level-input {
	font-weight: bold;
}

input.skill-level-2 {
	color: #fff491;
	/* レベル2の黄色 */
}

input.skill-level-3 {
	color: #ff9191;
	/* レベル3の赤色 */
}

.disabled-reason {
	font-size: 0.8em;
	color: #ff9191;
}

.points-info {
	display: flex;
	justify-content: space-around;
	margin: 1em;
	padding: 0.5em;
	background-color: rgba(0, 0, 0, 0.2);
	border-radius: 2px;
}

.points-info p {
	margin: 0;
}

.message-item {
	padding: 1em;
	background-color: rgba(0, 0, 0, 0.2);
	border-radius: 2px;
}

.message-fields {
	display: flex;
	flex-direction: column;
	gap: 0;
	margin-top: 0.5em;
}

.act-name-field input,
.message-content-field textarea {
	margin: 0.25em 0;
}

.message-help {
	font-size: 0.8em;
	color: #ababab;
	margin: 0.25em 0 0 0;
}

.class-level-up {
	margin-top: 0.5em;
}

/* タブUIのCSS部分 */
.class-tabs {
	display: flex;
	flex-wrap: wrap;
	/* border-bottom: 2px solid #ddd; */
}

.class-tab {
	padding: 0.5em 1em;
	margin-right: 0.5em;
	margin-bottom: -2px;
	cursor: pointer;
	box-shadow: inset 0px 0px 5px 0px rgba(0, 0, 0, 0.75);
	border-radius: 5px 5px 0 0;
	background-color: #00000040;
	transition: all 0.3s;
	border-top: #000000 solid 1px;
	border-left: #000000 solid 1px;
	border-right: #000000 solid 1px;
	border-bottom: #000000 solid 1px;
}

.class-tab.active {
	/* font-weight: bold; */
	background-color: #444f59;
	border-bottom: #00000000 solid 1px;
}

.class-tab:hover:not(.active) {
	background-color: #444f59;
	border-bottom: #00000000 solid 1px;
}

.class-content {
	display: none;
	border-top: none;
	margin-bottom: 1em;
}

.class-content.active {
	display: block;
}

div.place_url {
	margin: 1em 0;
	padding: 0.5em;
	font-size: 0.9em;
	background-color: rgba(0, 0, 0, 0.4);
	display: flex;
	align-items: center;
}

.place_url div {
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
	flex: 1 1;
}

.place_url button.copy_button {
	background: var(--main-color);
	margin: 0;
	flex: 0 0 0;
}

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

	.content_summary>span.fa-solid {
		display: none;
	}

	div.chara_status_box {
		max-width: none;
	}

	div.chara_status_box>div.build div.chara_status.stuts p {
		width: calc((100% / 3) - 0.5em);
	}

	.interact_box {
		flex-flow: column;
		height: auto;
	}

	.listbox {
		width: 100%;
		height: auto;
		max-height: 400px;
		border-right: none;
		border-bottom: 1px solid #ccc;
	}

	.listbox li {
		border-top: none;
		border-bottom: 1px solid #999999;
	}

	.list_content {
		width: 100%;
		height: auto;
		padding: 0;
	}

	.content_summary {
		flex-flow: column;
		padding: 0.5em 1em;
	}

	div.skill_content>b {
		flex-flow: wrap;
	}

	.skills-list,
	.messages-list {
		margin: 0;
	}

	.skill-item {
		flex-direction: column;
		align-items: flex-start;
	}

	.skill-info {
		font-size: 1.2em;
	}

	.skill-level-selector {
		display: flex;
		gap: 1em;
		margin: 0.5em auto;
	}

	.message-fields label {
		width: 100%;
	}

	.act-name-field input,
	.message-content-field textarea {
		max-width: none;
		min-width: auto;
		width: 100%;
	}

	.points-info {
		flex-direction: column;
	}

}

/* クエスト */

div.interact_box {
	height: 550px;
}

ul.listbox {
	width: 30%;
}

.listbox li {
	flex-flow: column;
	align-items: flex-start;
}

div.content_detail {
	font-size: 1em;
}

div.content_detail p {
	margin: 1em 0;
}

li.quest-item.cleared {
	color: #e6f39a
}

p.summary_disc b.big img {
	width: 1em;
	padding: 0 0 0.3em 0;
	margin: 0 0.1em 0 0;
}

.mn-log .log_list {
	margin: 0.5em;
	padding: 0.5em;
	min-height: 100px;
	max-height: 400px;
	overflow-y: auto;
	display: flex;
	flex-flow: column;
	align-items: flex-start;
	justify-content: flex-start;
	background-color: var(--sub-color);
	border-radius: 2px;
	box-shadow: inset 0px 0px 5px 0px rgba(0, 0, 0, 0.75);
}

.mn-log .log_list li {
	padding: 0.5em 0;
	font-size: 0.9em;
}

.mn-log .log_list li:last-child {
	border-bottom: none;
}

.mn-log .mnlog_time {
	color: #888;
	margin-right: 1em;
}

@media only screen and (max-width: 800px) {
	div.interact_box {
		height: auto;
	}

	ul.listbox {
		width: 100%;
		height: 210px;
	}

	.content_summary {
		flex-flow: row;
		align-items: center;
	}
}

/* お問い合わせ */

section.container.odaibako {
	height: calc(100dvh - (100px + 1em));
}

section.odaibako>form {
	padding: 1em;
	margin: 2em 0;
	text-align: center;
}

section.odaibako p {
	margin: 0.25em 0;
}

@media only screen and (max-width: 800px) {
	section.odaibako form p {
		font-size: 1.5em;
	}
}

/* 初期登録画面 */

section.register form {
	padding: 1em;
}

section.register form label {
	margin: 1em 0;
	display: inline-block;
}

/* プロフ編集 */
.icon_setting label,
.prof_iconlist label {
	width: 100%;
	display: flex;
	align-items: center;
	flex-flow: row;
}

.icon_setting label input,
.prof_iconlist label input {
	width: 100%;
}

.icon_setting label img,
.prof_iconlist label img {
	width: 30px;
	height: 30px;
	margin: 0 0.25em 0 0;
}

/* マイページ */
div.settings {
	margin: auto 0 1em 0;
	padding: 0 1em;
}

section.config>form {
	padding: 1em;
}

section.config>form p {
	margin: 1em 0;
}

/* チャット関連 */

.appear {
	height: auto !important;
	opacity: 1 !important;
	pointer-events: unset !important;
}

div.talk {
	padding: 0 1em 1em 1em;
}

#chat_display_mode {
	display: flex;
	margin: 0.5em 0.25em;
	border-radius: 4px;
	overflow: hidden;
	width: fit-content;
}

#chat_display_mode .mode {
	margin: 0 0.5em 0 0;
	padding: 0.25em 0.75em;
	cursor: pointer;
	background: var(--main-color);
	font-size: 0.85em;
}

#chat_display_mode .mode:last-child {
	border-right: none;
}

#chat_display_mode .mode.active {
	background: var(--main-under-color);
	color: white;
}

/* トランジション効果 */
.talk_list .chat_shout,
.talk_list .bt-log,
.talk_list div[class*="system"] {
	transition: opacity 0.2s ease-in-out, max-height 0.3s ease-in-out;
}

.talk_list .filtered {
	display: none;
	opacity: 0 !important;
}

ul.talk_category {
	margin: 0.5em 0 1em 0;
	display: flex;
	justify-content: flex-start;
	flex-wrap: wrap;
}

div.view_chats {
	width: 100%;
	padding: 0.5em 1em;
	display: flex;
	flex-flow: wrap;
	justify-content: flex-end;
	align-items: center;
	font-size: 0.75em;
}

div.view_chats form>div {
	display: flex;
	align-items: center;

	height: 2.5em;
	margin: 0 0.5em;
	padding: 0.25em 0.75em;
	font-family: var(--main-font);
	font-weight: bold;
	font-size: 1em;
	color: var(--font-dark-color);
	text-align: center;
	cursor: pointer;
	user-select: none;
	background-color: var(--main-color);
	border-radius: 2px;
	transition: 0.15s;
}

div.view_chats form>div:hover {
	color: var(--font-dark-color);
	background-color: var(--main-under-color);
	transform: translate(1px, 1px);
	box-shadow: unset;
}

div.view_chats form {
	display: flex;
	align-items: center;
}

.remark_area {
	padding: 0.5em;
	border-radius: 3px;
}

ul.remark_button {
	margin: 0 0 1em 0;
	display: flex;
	flex-flow: wrap;
}

ul.remark_button>li {
	margin: 0 0.25em;
	padding: 0 0.75em;

	font-family: var(--display-font);
	font-size: 1.4em;

	cursor: pointer;
	user-select: none;
	border-radius: 3px;
	border-bottom: 3px solid #efefef00;
	transition: 0.2s;
}

ul.remark_button>li:hover,
ul.remark_button>li.selected {
	border-bottom: 3px solid #efefef;
}

.remark_area>form {
	margin: 0.5em 0;
	padding: 0.1em;

	display: flex;
	flex-flow: wrap;
}

.remark_area>form,
.remark_area>div {
	padding: 0.5em;

	box-shadow: inset 0px 0px 5px 0px rgba(0, 0, 0, 0.75);
	background-color: var(--sub-color);
	border-radius: 2px;
	font-family: "Jura", "Noto Sans JP", sans-serif;
}

.remark_area>form>div.name_icon {
	width: 100%;
	display: flex;
	align-items: flex-end;
	margin: 0 0 5px 0;
}

label.nickname input {
	margin: 0;
	width: 12em;
}

.remark_area>form>div>label.hatugen {
	display: flex;
	align-items: center;
	flex-flow: row;
}

#create_mention {
	margin: 0 0.5em;
	padding: 0;
	cursor: pointer;
}

div.chat_icon {
	position: relative;
	width: 60px;
	height: 60px;
	margin: 0 5px 0 0;

	border-radius: 2px;
	overflow: hidden;
	transition: 0.25s;
	display: inline-block;
}

.ic_choose {
	width: 100%;
	height: 100%;
	cursor: pointer;
	position: relative;
}

div.chat_icon:hover {
	box-shadow: 0px 0px 0px 2px rgb(255 255 255 / 75%);
}

div.chat_icon>b {
	display: block;
	position: absolute;
	bottom: 0;
	right: 0;
	pointer-events: none;

	font-size: 0.75em;
	font-weight: bold;
	color: rgba(0, 0, 0, 0.6);
	z-index: 20;
	transition: 0.25s;
}

div.chat_icon:hover>b {
	color: var(--font-dark-color);
}

.remark_area>form>div>.target {
	display: flex;
	align-items: center;
	align-content: flex-end;
}

.remark_area>form>div>.target>input {
	width: 6em;
}

label.hatugen>textarea {
	margin: 0;
	width: 32em;
	max-width: 100%;
	height: 60px;
	word-break: break-all;
}

.remark_area>form>label.say {

	height: fit-content;
	display: flex;
	justify-content: center;
	align-self: flex-end;
}

label.say>input {
	margin: 0;
	padding: 7px 2em;
}

.remark_area>form>div>label.say>input {
	width: 100%;
}

.chat_tool {
	padding: 0;
	width: 100%;
	display: flex;
	flex-flow: wrap;
	justify-content: flex-start;
	align-items: baseline;
}

.remark_area>form>div>small {
	margin: 0 2.5em 0 1em;
	display: flex;
	font-size: 0.6em;
	pointer-events: none;
	align-items: center;
}

.remark_area>form>div>small .fas {
	margin: 0.25em 0.25em 0 0.25em;
	pointer-events: all;
}

.decoration_area {
	display: flex;
	padding: 5px 0 0 0;
}

form#attack .decoration_area,
form#anti-attack .decoration_area {
	padding: 5px 0 0 calc(60px + 0.25em);
}

.decoration_area>.message-control-icon {
	display: flex;
	position: relative;
	align-items: center;
	justify-content: center;
	box-sizing: content-box;
	width: 16px;
	height: 16px;
	font-size: 16px;
	padding: 5px 5px;
	margin-right: 2px;
	border-radius: 4px;
	background-color: var(--font-dark-color)00;
	transition: linear 0.1s background-color;
	cursor: pointer;
}

.decoration_area>.message-control-icon:last-child {
	margin-right: 0;
}

.decoration_area>.message-control-icon:hover {
	background-color: #57575757;
}

div.chat_tool .decoration_area.emoji {
	padding: 5px 0 0 0;
}

.decoration_area.emoji img {
	width: 20px;
	height: 20px;
}

.decoration_area.emoji.big .message-control-icon {
	background-color: #df848450;
}
div.chat_shout_wrapper.mention_preview{
	max-width: 600px;
}

form#shop_form>div {
	margin: 0.5em 0;
}

form#shop_form>div.foods_menu {
	margin: 2em 0 1em 0;
	padding: 0.5em;
	width: 100%;
	max-width: 700px;

	display: flex;
	flex-direction: column;
	align-items: center;

	box-shadow: inset 0px 0px 5px 0px rgba(0, 0, 0, 0.75);
	background-color: var(--sub-color);
	border-radius: 2px;
}

form#shop_form>div.foods_menu>h4 {
	display: block;
	margin: 0 0 0.5em 0;
	padding: 0 0.5em;
	width: 100%;

	text-align: center;
	font-size: 1.25em;
	font-family: var(--main-font);
	border-bottom: 2px solid #efefef;
	opacity: 0.75;
}

form#shop_form>div.foods_menu>ul {
	width: 100%;
	display: flex;
	flex-direction: column;
	overflow-y: auto;
	max-height: 400px;
}

form#shop_form>div.foods_menu>ul>li {
	width: 100%;
	padding: 0.5em;
	display: flex;
	justify-content: space-between;
	align-items: center;

	cursor: pointer;
	user-select: none;
	transition: 0.2s;
}

form#shop_form>div.foods_menu>ul>li:hover {
	background-color: var(--font-dark-color)30;
}

form#shop_form>div.foods_menu>ul>li.checked {
	background-color: #bec9a230;
}

form#shop_form>div.foods_menu>ul>li>span {
	display: flex;
	align-items: flex-start;

	min-width: 6em;
	text-align: left;
}

ul.act_choice>li,
.action_command>img {
	position: relative;
	padding: 0;
	background-color: #424242;
	border-radius: 2px;
	text-align: center;
}

ul.act_choice>li.mighty,
.action_command>img.mighty {
	background-color: #777777;
}

ul.act_choice>li.tech,
.action_command>img.tech {
	background-color: #a04e4e;
}

ul.act_choice>li.arcane,
.action_command>img.arcane {
	background-color: #504ea0;
}

ul.act_choice>li.general-act,
.action_command>img.general-act {
	background-color: #424242;
}

ul.act_choice>li[data-skilltarget="passive"],
.action_command>img.passive {
	background-color: #517151;
}

ul.act_choice>li[data-skilltarget="passive"] {
	opacity: 0.3;
}

select[name="log_id"] {
	width: 100%;
	max-width: 600px;
	height: 40px;
	cursor: pointer;
}

select[name="log_id"] option.gray {
	color: #707070;
}

#action_form label {
	display: inline-block;
}

@media screen and (max-width: 800px) {
	div.chat_icon {
		width: 40px;
		height: 40px;
	}

	div.chat_tool {
		padding: 0;
	}

	div.chat_tool .decoration_area {
		padding: 5px 0 0 0;
	}

	section.chatlobby div>.status>div>p {
		font-size: 0.8em;
	}

	section.chatlobby div>.status>div>h4 {
		font-size: 1em;
	}

	#shop_form>label>span {
		font-size: 0.8em;
	}

	select[name="log_id"] {
		max-width: 100%;
	}

	.action_command>img {
		width: 40px;
		height: 40px;
	}

	/* アニメーションを削減または簡素化 */
	.talk_list .chat_shout,
	.talk_list .bt-log,
	.talk_list div[class*="system"] {
		transition: opacity 0.1s ease-in-out;
	}

	/* 重い背景画像や効果を簡素化 */
	div.map_area {
		background-image: none;
		background-color: #172027;
	}

	div.areamap_bg {
		opacity: 0.6;
		filter: none;
	}

	/* フレックスボックスの簡素化 */
	div.chara_status {
		flex-flow: wrap;
		justify-content: flex-start;
	}

	/* 不要な装飾やシャドウを削除 */
	.chat_shout,
	.action_command {
		box-shadow: none;
	}

	/* 行間や余白を調整して表示領域を確保 */
	div.chat_shout>.chat_data {
		padding: 0.25em 0 0 0;
	}

	div.chat_shout>.chat_nakami {
		padding: 0.5em 0.25em 0.5em 0.25em;
	}

	/* フォントサイズの調整 */
	div.chat_shout>.chat_data {
		font-size: 0.5em;
	}

	.chat_shout>.chat_nakami>p {
		font-size: 0.9em;
	}

	/* 軽量化のためのハードウェアアクセラレーション */
	.talk_list,
	.chat_shout {
		-webkit-backface-visibility: hidden;
		backface-visibility: hidden;
		transform: translateZ(0);
		will-change: transform;
	}

	/* コラム数をスマホでは1列に統一（既存コードを上書き） */
	.talk_list {
		column-count: 1;
		-webkit-column-count: 1;
		-moz-column-count: 1;
	}
}

@media screen and (max-width: 320px) {
	.decoration_area>.message-control-icon {
		width: 12px;
		height: 12px;
		font-size: 12px;
	}
}

/* --- */

#shop_form {
	display: block;
}

/* --- */

.talk_list {
	margin: 0 0 1em 0;

	column-count: 2;
	-webkit-column-count: 2;
	-moz-column-count: 2;
	column-rule: 2px solid #bbbbbb;
	column-fill: balance;
}

#chat_preview {
	opacity: 0.75;
}

div.chat_shout_wrapper {
	margin: 1em auto;
	padding: 2px;
	background-color: #efefef;
	clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
	box-shadow: 2px 2px 2px #000000f0;
}

div.chat_shout_wrapper:first-of-type {
	margin-top: 0;
}

div.chat_shout {
	width: 100%;
	padding: 0;
	position: relative;

	clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
	background: var(--sub-under-color);

	border-radius: 2px;
	display: inline-flex;
	flex-flow: wrap;
	overflow-y: visible;

	font-family: var(--main-font);
}

img.npc_icon {
	height: 1.5em;
}

.chat_divider {
	display: flex;
	flex-flow: row;
	justify-content: center;
	align-items: center;
	gap: 0.5em;

	margin: 0;
	padding: 0;
}
.chat_divider .divider_box{
	margin: 0 auto;
}
div.chat_shout.npc .chat_name {
	color: #92d79e;
}

div.chat_shout.system {
	display: inline-flex;
	flex-flow: column;

	margin: 0;
	padding: 0;
	position: relative;

	background-color: var(--sub-under-color);
	box-shadow: inset 0px 0px 5px 0px rgba(0, 0, 0, 0.75);
}

div.chat_shout.system.attack {
	color: var(--font-dark-color);
	background-color: #00000040;
}

div.chat_shout.system.anti-attack {
	color: var(--font-dark-color);
	background-color: #433928cc;
}

div.chat_shout.serif.anti-attack {
	color: var(--font-dark-color);
	background-color: #433928cc;
}

div.chat_shout.bt-folder {
	display: flex;
	align-items: center;
	background-color: var(--main-color);
	cursor: pointer;
}

.npc_act div.chat_shout.bt-folder {
	background-color: #633030;
}

div.bt-folder::after {
	content: "";
	font-family: FontAwesome;
	font-size: 2em;
	width: 0.2em;
	height: 1.6em;
	line-height: 1.6em;
	color: var(--font-dark-color);
	text-align: center;
	border-radius: 2px;
}

div.bt-folder::before {
	content: "\2b";
	font-family: FontAwesome;
	color: var(--font-dark-color);
	font-size: 2em;
	width: 1.6em;
	height: 1.6em;
	line-height: 1.6em;
	text-align: center;
	transition: transform 150ms;
	transform: rotate(0deg);
}

div.bt-folder div.bt_wt {
	position: absolute;
	right: 1em;
	top: 2em;
	font-family: var(--main-font);
	opacity: 0.7;
}

div.bt-folder.bt-open::before {
	content: "\f00d";
	transform: rotate(90deg);
}

div.log_box {
	padding: 0.5em;
	display: flex;
	flex-direction: column;
}

div.bt-folder div.chat_nakami {
	line-height: clamp(1em, 1.6em, 21px);
}

div.bt-folder img {
	vertical-align: middle;
	margin: 2px 0.2em;
}


div.system[class*="attack"]>.chat_data>span {
	color: #bdbdbd !important;
}

div.system[class*="attack"]>div.chat_nakami>p>small.gray {
	color: #bdbdbd;
}

div.system[class*="attack"]>div.chat_nakami>p>.large {
	color: var(--font-dark-color);
	font-size: 1.4em;
}

.chat_nakami .state {
	color: #d0ffd2;
	font-weight: bold;
}

.chat_nakami .bonus {
	color: #fffcd0;
	font-weight: bold;
}

.damage,
.heal {
	padding: 0 0.2em;
	font-weight: bold;
	font-family: var(--display-font);
	line-height: 1.1em;
}

.damage {
	color: var(--font-dark-color);
}

.heal {
	color: #b7ffb7;
}

.damage.small,
.heal.small {
	color: #c0c0c0;
	font-size: 1.6em;
}

.damage.normal,
.heal.normal {
	font-size: 1.7em;
}

.damage.medium,
.heal.medium {
	font-size: 1.9em;
}

.damage.big,
.heal.big {
	font-size: 2.2em;
	text-shadow: 0px 0px 3px rgb(255, 102, 0)
}

.damage.xbig,
.heal.xbig {
	font-size: 2.5em;
	text-shadow: 0px 0px 5px rgb(255 225 0)
}

div.chat_shout.image img {
	margin: 0 auto 1em auto;
	max-width: 90%;
	max-height: 500px;
	border-radius: 2px;
}

div.chat_shout.image>.chat_data,
div.chat_shout.system>.chat_data,
div.chat_shout.action>.chat_data {
	margin: 0.5em;
	padding: 0;
	align-self: flex-start;
}

div.system.chat_shout>.chat_nakami {
    padding: 0.25em 0.5em 0.75em 0.5em;
	font-size: 0.9em;
}

.talk_list div.chat_shout.system {
	background-color: #1d2d29;
}

.talk_list div.chat_shout.action {
	background-color: #282833;
}

.talk_list div.chat_shout.private {
	background-color: #2d1d1d;
}

.talk_list div.chat_shout.image {
	background-color: #3d4367;
}

.talk_list div.chat_shout.premium {
	background-color: #99866c80;
}

.talk_list div.chat_shout.message {
	background-color: #10224380;
}

.talk_list div.chat_shout.mychat {
	background-color: #43101080;
}

.talk_list div.chat_shout.kaki {
	background-color: rgba(36, 30, 23, 0.5);
}

.talk_list div.chat_shout.reply {
	animation: show_reply 0.75s ease-out forwards;
	max-height: 0;
	height: 100%;
	width: 100%;
	background-color: #88888810;
	box-shadow: none;
	overflow: visible;
}

span#hide_reply {
	font-size: 1.2em;
	position: absolute;
	top: 0.25em;
	right: 0.5em;
	padding: 0;
	cursor: pointer;
	transition: 0.2s;
	z-index: 200;
}

.talk_list div.preview {
	opacity: 0.9;
}

@keyframes show_reply {
	to {
		max-height: 9999px;
	}
}

.chat_shout div.icon {
	margin: 0.5em 0 0 0.5em;
	align-self: flex-end;
}

.chat_shout div.icon img,
ul.icons li img {
	width: 60px;
	min-height: 60px;

	object-position: top;
}

div.chat_shout>.chat_data {
	margin: 0.25em 0.5em 0 0.5em;
	padding: 0.5em 0 0 0;
	align-self: flex-end;
	width: calc(100% - 3em);

	border-bottom: 2px solid #efefef;
	font-size: 0.75em;
}

div.chat_shout.chat .chat_data {
	width: calc(100% - (60px + 2em));
}

.mention {
	position: absolute;
	right: 6px;
	bottom: 2px;
}

.mention_tools {
	display: flex;
	justify-content: flex-end;
}
.mention > .chat_time{
	font-family: var(--sub-font);
}
.mention span,
.mention a,
.mention_tools span,
.mention_tools a {
	margin: 0 1em;
	color: #cdcdcd;
}

.mention .fa-solid,
.mention_tools .fa-solid {
	margin: 0 0.25em;
	cursor: pointer;
	transition: 0.15s;
}

.mention .fa-solid:hover,
.mention_tools .fa-solid:hover {
	color: #6b6b6b;
}

.chat_state_item {
	margin: 0 0.25em 0 0;
	white-space: nowrap;
}

.chat_state_item:last-child {
	margin-right: 0;
}

div.chat_shout>.chat_data>span.chat_status {
	display: block;
	margin: 0 0 0 0.1em;
	font-family: var(--sub-font);
	color: #cdcdcd;
	line-height: 1.2em;
}

/* 発言時ステータス。最大値は全員一律なので幅を固定し、
   現在値を左揃えで置いて border-bottom をゲージとして使う。 */
span.chat_status_item {
	position: relative;
	display: inline-block;
	width: 5em;
	margin: 0 0.8em 0.4em 0;
	text-align: left;
	white-space: nowrap;
	border-bottom: 3px solid rgb(255 255 255 / 15%);
}

span.chat_status_item>small {
	margin: 0 0.4em 0 0;
	opacity: 0.55;
}

/* 現在値ぶんだけ伸びる下線。--fill は出力時に埋め込む */
span.chat_status_item::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -3px;
	width: var(--fill, 0%);
	max-width: 100%;
	border-bottom: 3px solid #cdcdcd;
}

span.chat_status_item.hp::after {
	border-bottom-color: #4ea05c;
}

span.chat_status_item.mp::after {
	border-bottom-color: #4e77a0;
}

span.chat_status_item.gp::after {
	border-bottom-color: #a04e4e;
}

span.chat_status_item.ep::after {
	border-bottom-color: #a04ea0;
}

div.chat_shout>.chat_data>span.chat_name {
	margin: 0;
	font-size: 1.5em;
	line-height: 1.2em;
}

div.chat_shout>.chat_data>span.chat_name>a {
	margin: 0 5px 0 0;
	text-decoration: none;
}

div.chat_shout>.chat_data>span.chat_loc,
div.chat_shout>.chat_data>span.chat_time,
div.chat_shout>.chat_data>span[class*=anker] {
	margin: 0 0 0 0.1em;
}

div.chat_shout>.chat_data>span.chat_time {
	color: #cdcdcd;
}

div.chat_shout>.chat_nakami {
	margin: 0 auto 0.5em auto;
	padding: 0.75em 0.5em 0.75em 0.5em;
	width: 100%;
	display: flex;
	align-items: center;
	flex-flow: wrap;
}

div.chat_shout.system>.chat_nakami>p,
div.chat_shout.image>.chat_nakami>p,
div.chat_shout.special>.chat_nakami>p,
div.chat_shout.area>.chat_nakami>p,
div.chat_shout.premium>.chat_nakami>p,
div.chat_shout.kaki>.chat_nakami>p,
div.chat_shout.EX>.chat_nakami>p {
	width: 100%;
}

div.chat_shout>.chat_nakami>p>a {
	text-decoration: underline;
}

.chat_shout>.chat_nakami>div {
	align-self: flex-start;
}

.chat_shout>.chat_nakami>p {
	/* width: 32em; */
	margin: 0 0.5em;

	font-size: clamp(0.75em, 1.2vw, 0.93em);
	align-self: center;
	word-break: break-all;
}

span[class*=anker],
#anker_eno {
	color: #cdcdcd;
	cursor: pointer;
	transition: 0.1s;
}

span[class*=anker]:hover,
#anker_eno:hover {
	color: #6b6b6b;
}

span[id*="res"] {
	color: #cdd5f8;
	cursor: pointer;
	transition: 0.2s;
}

span[id*="res"]:hover {
	color: var(--font-dark-color);
}

span.large {
	font-size: 1.8em;
}

span.small {
	font-size: 0.8em;
}

div.pager {
	padding: 0 1em;
	display: flex;
	justify-content: center;
}

div.pager>.pager_right {
	text-align: right;
}

.rainbow {
	padding: 1% 0 0 0;
	background: linear-gradient(to right, #fa9 0%, #fc9 14.28%, #ff9 28.56%, #9f9 42.85%, #9ff 57.14%, #9cf 71.42%, #f9f 85.71%, #f99 100%) 0% center / 200% auto;
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	animation: rainbow 20s linear infinite;
	text-align: center;
	font-size: 1em;
	font-weight: bold;
	margin: 0;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

.light_rainbow {
	padding: 1% 0 0 0;
	background: linear-gradient(to right, #fa9 0%, #fc9 14.28%, #ff9 28.56%, #9f9 42.85%, #9ff 57.14%, #9cf 71.42%, #f9f 85.71%, #f99 100%) 0% center / 200% auto;
	background-clip: text;
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	animation: rainbow 20s linear infinite;
	text-align: center;
	font-size: 1em;
	font-weight: bold;
	margin: 0;
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

.shout {
	margin: 0;
	display: block;
	animation: shake 0.2s infinite;
	font-size: 2em;
	font-weight: bold;
}

@keyframes shake {
	0% {
		transform: translate(0px, 0px) rotateZ(0deg);
	}

	25% {
		transform: translate(2px, 2px) rotateZ(1deg);
	}

	50% {
		transform: translate(0px, 2px) rotateZ(0deg);
	}

	75% {
		transform: translate(2px, 0px) rotateZ(-1deg);
	}

	100% {
		transform: translate(0px, 0px) rotateZ(0deg);
	}
}

div.nakami>p>span.rainbow,
div.nakami>p>span.light_rainbow {
	padding: 100% 0;
}

@keyframes rainbow {
	to {
		background-position-x: 200%;
	}

	0% {
		transform: translate(0px, 0px) rotateZ(0deg)
	}

	25% {
		transform: translate(4px, 4px) rotateZ(3deg)
	}

	50% {
		transform: translate(0px, 4px) rotateZ(0deg)
	}

	75% {
		transform: translate(4px, 0px) rotateZ(-3deg)
	}

	100% {
		transform: translate(0px, 0px) rotateZ(0deg)
	}
}

.image .chat_nakami>p {
	width: 100%;
	align-self: flex-start;
}

div.photo {
	margin: 1em auto;
	padding: 1em 1em 1em 1em;
	max-width: calc(100% - 2em);

	background-color: var(--font-dark-color);
	border-radius: 3px;
	overflow: hidden;
}

div.photo>p {
	width: 100%;
	text-align: center;
	margin: 0.5em 0 0 0;
	font-weight: bold;

	color: #404040;
	font-size: 1em;
}

div.image div.photo>img {
	width: 100%;
	max-width: 400px;
	max-height: 500px;

	margin: 0 auto;
}

div.photo.phone {
	width: 400px;
	max-width: 90%;
	max-height: 280px;
	position: relative;
	padding: 0;

	display: flex;
	align-items: center;
	background-color: transparent;
}

div.photo.phone>p {
	display: none;
}

img.phone {
	position: absolute;
	top: 50%;
	left: 0;
	transform: translateY(-50%);
	z-index: 15;

	width: 400px;
	max-width: 100%;
	height: auto;
	transition: 0.15s;
}

img.phone:hover {
	opacity: 0;
}

div.photo.phone>img.phone+img {
	aspect-ratio: 16 / 9;
}

span.ellipsis {
	position: absolute;
	top: 8px;
	right: 10px;

	padding: 0;
	cursor: pointer;
	transition: 0.2s;
	z-index: 200;
	font-size: 0.9em;
	font-weight: bold;
}

span.ellipsis:hover {
	color: #b2b2b2;
}

form.chat_menu {
	position: absolute;
	top: 0;
	right: 2em;

	padding: 0;
	border-radius: 5px;
	background-color: rgba(77, 82, 87, 1);
	box-shadow: 4px 4px 4px rgb(62 47 48 / 40%);
	opacity: 0;

	pointer-events: none;
	transition: 0.2s;
	z-index: 10;
}

span.ellipsis.show_menu+form.chat_menu {
	opacity: 1;
	pointer-events: all;
}

form.chat_menu label {
	width: 100%;
}

span.hide_reply {
	position: absolute;
	top: 0.25em;
	right: 0.5em;

	padding: 0;
	cursor: pointer;
	transition: 0.2s;
	z-index: 200;

}

div.talk_list div.serif {
	margin: 0.35em 0;
	width: 100%;
}

div.talk_list div.serif.mine {
	background-color: #75303acc;
}

div.talk_list div.serif img {
	width: 60px;
	max-height: 120px;
}

div.cutin {
	margin: 0.35em 0;
	width: 100%;
	display: flex;
	flex-flow: column-reverse;
}

div.cutin img {
	width: 100%;
	max-width: 600px;
	max-height: 150px;
	border-radius: 2px;
}

form.chat_menu>[class*="chat_"],
form.chat_menu>label>input {
	display: block;
	margin: 0;
	padding: 1em;

	width: 100%;
	text-align: left;
	border: none;
	cursor: pointer;
	color: var(--font-dark-color);
	font-size: 0.75em;
	font-family: var(--main-font);
	transform: none;
}

form.chat_menu>[class*="chat_"]:hover,
form.chat_menu>label>input:hover {
	margin: 0;
	padding: 1em;
	color: #202020;
	background-color: #c2c2c2;
	border: none;
}

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

	.talk_list {
		column-count: 1;
		-webkit-column-count: 1;
		-moz-column-count: 1;
	}

	.chat_shout>.chat_nakami>p {
		width: 100%;
		font-size: clamp(0.75em, 1.5vw, 1.25em);

		margin: 0 0.5em;
		word-break: break-all;
	}

}


div.prof_text,
div.diary {
	margin: 0 0.5em 1em 0.5em;
	padding: 0;
	word-break: break-all;
	overflow-wrap: anywhere;
}
div.diary{
	padding: 1em;
}

div.prof_text details,
div.diary details {
	padding: 0.5em 0;
	background-color: #20202020;
	border-top: solid 2px #aaaaaa;
	border-bottom: solid 2px #aaaaaa;
}

div.prof details>p.fold,
div.diary details>p.fold {
	margin: 0 0.25em;
}

form#diary>details>summary {
	margin: 0 0 0.5em 0;
}

form#diary>details>.honbun {
	margin: 0 0 0 0.5em;
}

div.diary>img {
	max-width: 100%;
}

.profile_content {
	padding: 0 0.5em;
}

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

	.status>ul>li,
	.remark_area>ul>li {
		font-size: 1em;
		min-width: auto;
	}

	.status>div>div>p>b,
	.status>div>div.basho>p>b {
		font-size: 1.5em;
	}

	.modal>ul>li>img {
		width: 40px;
		max-height: 80px;
		min-height: 40px;
	}

	div.talk {
		padding: 0 0.5em;
	}

	ul.talk_category {
		font-size: 1em;
	}

	.remark_area {
		margin: 0;
		min-height: auto;
	}

	label.hatugen>textarea {
		width: calc(100% - (40px + 1.5em));
		font-size: 0.9em;
		margin: 0;
	}

	div.chat_input,
	label.hatugen {
		width: 100%;
	}

	label.hatugen>div {
		width: 40px;
		height: 40px;
	}

	div.chat_tool {
		width: 100%;
		justify-content: flex-start;
	}

	label.say>input {
		margin: 0;
		padding: 7px 1.5em;
	}

	.remark_area>form>div>small {
		margin: 0 1em;
		padding: 0.25em;
		font-size: 0.9em;
	}

	.remark_area>form>div>.target {
		margin: 0;
	}

	.remark_area>form>div.name_icon {
		flex-flow: wrap;
	}

	#create_mention {
		margin: 0 0 0 auto;
	}

	.remark_area>form>div.name_icon #target {
		padding: 0;
		min-width: 8em;
		max-width: 100%;
		height: 2em;
		font-size: 0.9em;
	}

	section.chatlobby input[type="submit"],
	section.chat input[type="submit"],
	div.view_chats>form>button {
		font-size: 0.7em;
	}

	div.view_chats>form>label>input[type=number] {
		width: 8em;
		height: 2.5em;
		min-width: auto;
	}

	div.chat_shout_wrapper {
		clip-path: none;
		box-shadow: none;
	}

	div.chat_shout {
		clip-path: none;
	}

	.chat_shout div.icon img {
		width: 40px;
		max-height: 80px;
		min-height: 40px;
	}

	div.chat_shout>.chat_nakami {
		margin: 0 auto 1em auto;
		padding: 0.5em 0.25em 0.5em 0.25em;
	}

	.chat_shout>.chat_nakami>p {
		width: 100%;
		font-size: clamp(0.9em, 2vw, 1.5em);

		margin: 0 0.5em;
		word-break: break-all;
	}

	div.chat_shout>.chat_data {
		font-size: 0.5em;
	}

	div.chat_shout>.chat_data>p {
		margin: 0 0.25em;
		font-size: 1.5em;
	}

	div.chat_shout>.chat_data>span {
		font-size: 1.1em;
	}

	div.chat_shout>.chat_data>span.chat_time {
		font-size: 1em;
	}

	section.home>div>.system_log li p {
		width: 75%;
	}

	.decoration_area {
		grid-column-start: 1;
		grid-column-end: 3;
		grid-row-start: 4;
		grid-row-end: 5;

		align-items: flex-start;
	}

	form#attack .decoration_area {
		padding: 0 0 0 calc(40px + 0.25em);
	}

	ul.talk_category>li>a,
	ul.talk_category>li span,
	div.pager div a,
	div.pager div span,
	#sys_hidden {
		font-size: 1em;
	}

	span.tip {
		width: 100%;
		left: 50%;
		transform: translateX(-50%);
	}

	ul[class*="_choice"]>li {
		width: 40px;
		height: 40px;
	}

	section.chat div>form>p {
		font-size: 1em;
	}

	div.talk_list>div.serif img {
		width: 40px;
		min-height: 40px;
		max-height: 80px;
	}
}

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

	section.chatlobby {
		flex-flow: column-reverse;
		align-content: center;
	}

	section.chatlobby div.chara_container {
		padding: 0 0.5em;
		width: 100%;
		justify-content: space-between;
		flex-direction: column-reverse;
	}

	section.chatlobby>h2 {
		order: 3;
	}

	section.chatlobby .image {
		order: 2;
		margin: 0.5em 0;
		width: 100%;
		background-position: 50%;
	}

	section.chatlobby div.image>div {
		height: auto;
		text-align: center;
	}

	section.chatlobby div.image>div>img {
		max-height: 400px;
	}

	section.chatlobby div.info_space {
		order: 1;
		margin: 0;
		width: 100%;
	}

	section.chatlobby div>.status {
		height: fit-content;
	}
}

/* キャラリスト */
/* 検索フォームとフィルターのスタイル */
.search-filter-container {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 1em;
	padding: 1em;
	background: #2d4051;
	border-radius: 5px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.search-box {
	flex: 1;
	min-width: 250px;
}

.search-box input[type="text"] {
	width: 100%;
	padding: 0.5em;
	border-radius: 4px;
	font-size: 0.9em;
}

.filter-options {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
	align-items: center;
}

.filter-group {
	margin-right: 1em;
}

.filter-group select {
	padding: 0.5em;
	border-radius: 4px;
	font-size: 0.9em;
}

.search-button {
	margin: 0 0 0 auto;
	padding: 0.5em 1.5em;
	background: #2e80cd;
	color: white;
	border: 1px solid transparent;
	border-radius: 4px;
	cursor: pointer;
	font-size: 0.9em;
	transition: background 0.3s;
}

.search-button:hover {
	border: 1px solid transparent;
	color: var(--font-dark-color);
	background: #1c68b3;
}

.reset-button {
	padding: 0.5em 1.5em;
	background: #5d5d5d;
	color: white;
	border: 1px solid transparent;
	border-radius: 4px;
	cursor: pointer;
	font-size: 0.9em;
	transition: background 0.3s;
	margin-left: 0.5em;
	text-decoration: none;
}

.reset-button:hover {
	border: 1px solid transparent;
	color: var(--font-dark-color);
	background: #444;
}

/* ソートオプションのスタイル */
.sort-options {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5em;
	margin-bottom: 1em;
	background: #2d4051;
	padding: 0.75em;
	border-radius: 5px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.sort-option {
	padding: 0.4em 0.8em;
	background: #2d4051;
	color: #eee;
	border-radius: 5px;
	font-size: 0.85em;
	cursor: pointer;
	transition: all 0.2s;
	display: flex;
	align-items: center;
	text-decoration: none;
}

.sort-option:hover {
	background: #1c68b3;
}

.sort-option.active {
	background: #2e80cd;
	font-weight: bold;
}

.sort-option .sort-icon {
	margin-left: 0.3em;
	font-size: 0.7em;
}

/* リスト表示数とページ情報 */
.list-info {
	margin: 0 0 1em 0;
	padding: 0 1em;
	display: flex;
	justify-content: flex-end;
	color: #eee;
	font-size: 0.9em;
}

/* グリッドレイアウト用のコンテナ */
div.list-chara {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
	gap: 1em;
	justify-content: center;
	padding: 1em;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	overflow-x: hidden;
	/* 通常時はhidden */
	transition: 0.15s;
}

/* expandedクラスが付いた時の設定 */
div.list-chara.expanded {
	overflow-x: visible;
	/* 展開時にはみ出しを許可 */
	position: relative;
	/* 位置の基準点となるよう設定 */
}

/* 展開状態のカードスタイル */
div.list-chara .charaCard.expanded {
	width: 300px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
	z-index: 100;
	/* 他のカードより前面に */
	grid-column: span 3;
	/* グリッド内で3カラム分のスペースを取る */
	position: relative;
	/* 位置コンテキストを作成 */
}

/* キャラクターカード基本スタイル */
div.list-chara .charaCard {
	width: 100px;
	height: 350px;
	position: relative;
	display: flex;
	flex-flow: column;
	justify-content: flex-end;
	align-items: center;
	transition: all 0.3s ease-out;
	z-index: 1;
	cursor: pointer;

	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3E%3Cpath fill='%23efefef' fill-opacity='0.09' d='M1 3h1v1H1V3zm2-2h1v1H3V1z'%3E%3C/path%3E%3C/svg%3E");
	background-color: #38485c;
	border-radius: 4px;
	font-family: var(--main-font);
	overflow: hidden;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	list-style: none;
	/* リスト要素のデフォルトスタイルを削除 */
	padding: 0;
	margin: 0;
}

/* 右下の三角形装飾 */
div.list-chara .charaCard::before {
	content: "";
	position: absolute;
	background-color: #157ce730;
	bottom: 0;
	right: 0;
	pointer-events: none;
	clip-path: polygon(100% 100%, 0% 100%, 100% 0);
	z-index: 10;
	width: 30px;
	height: 30px;
}

/* 展開状態のカードスタイル */
div.list-chara .charaCard.expanded {
	width: 300px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
	z-index: 100;
	/* 他のカードより前面に */
	grid-column: span 3;
	/* グリッド内で3カラム分のスペースを取る */
}

/* クリック可能な全体リンク */
div.list-chara .charaCard .eno {
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 90;
}

div.list-chara .charaCard.expanded .eno {
	z-index: 90;
	/* 展開時は下げて、詳細表示がクリック可能に */
}

/* 名前表示部分 */
div.list-chara .charaCard .name {
	width: 100%;
	min-height: 5em;
	padding: 0.5em 0.25em;
	display: flex;
	flex-flow: column;
	align-items: center;
	justify-content: flex-end;
	text-align: center;
	color: #fefefe;
	background-image: linear-gradient(180deg, #ffffff00, #2d4051a8 43%, #2b3a49cf 74%);
	text-shadow: 2px 2px 3px rgb(62 47 48 / 80%);
	z-index: 20;
	transition: padding 0.3s ease;
}

/* 展開時に名前表示の余白を広げる */
div.list-chara .charaCard.expanded .name {
	padding: 0.75em 0.5em;
}

/* 名前とEno表示のスタイル調整 */
div.list-chara .charaCard .name b {
	font-size: 0.8em;
	opacity: 0.8;
	margin-bottom: 0.2em;
}

div.list-chara .charaCard .name span {
	font-weight: bold;
	font-size: 0.9em;
	line-height: 1.2;
	/* 長い名前の省略表示 */
	display: -webkit-box;
	line-clamp: 2;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}

/* 展開時に名前を完全表示 */
div.list-chara .charaCard.expanded .name span {
	line-clamp: 3;
	-webkit-line-clamp: 3;
}

/* 詳細リンクボタン */
div.list-chara .charaCard .details-link {
	position: absolute;
	bottom: 10px;
	right: 10px;
	background: #2e80cd;
	color: white;
	border-radius: 10px;
	width: 60px;
	height: 30px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	opacity: 0;
	transform: scale(0.8);
	transition: all 0.3s ease;
	z-index: 95;
}

div.list-chara .charaCard.expanded .details-link {
	opacity: 1;
	transform: scale(1);
}

/* 画像コンテナ */
div.list-chara .charaCard .image {
	position: absolute;
	width: 100%;
	height: 100%;
	margin: 0 auto;
	box-shadow: inset 0px 0px 25px 5px #334e816e;
	z-index: 5;
	overflow: hidden;
}

/* 画像スタイル */
.charaCard .image img {
	position: absolute;
	top: 0;
	left: 50%;
	transform: translateX(-50%);
	width: auto;
	height: 100%;
	z-index: -5;
	object-fit: cover;
	transition: all 0.3s ease;
}

/* 展開時の画像拡大表示調整 */
div.list-chara .charaCard.expanded .image img {
	object-position: center;
}

div.society {
	position: absolute;
	top: 0.25em;
	right: 0.25em;
	display: flex;
	flex-flow: column;
	z-index: 10;
}

div.society>img {
	width: 30px;
	filter: drop-shadow(1px 1px 1px #000000D0);
}

div.status {
	position: absolute;
	top: 8px;
	left: 8px;
	display: flex;
	flex-flow: column;
	z-index: 10;
}

div.status>.fa-solid {
	width: 1em;
	font-size: 1.5em;
	filter: drop-shadow(1px 1px 1px #000000D0);
}

/* 能力値表示 */
.stats-display {
	position: absolute;
	bottom: 10px;
	left: 10px;
	background: rgba(45, 64, 81, 0.8);
	border-radius: 5px;
	padding: 5px 8px;
	color: white;
	font-size: 0.75em;
	opacity: 0;
	transition: opacity 0.3s;
	z-index: 95;
}

.charaCard.expanded .stats-display {
	opacity: 1;
}

.stats-display div {
	margin: 2px 0;
	display: flex;
	justify-content: space-between;
}

.stats-display span {
	margin-left: 5px;
	font-weight: bold;
}

/* 検索結果なしの表示 */
.no-results {
	grid-column: 1 / -1;
	text-align: center;
	padding: 2em;
	background: rgba(45, 64, 81, 0.3);
	border-radius: 5px;
	color: #eee;
	font-size: 1.1em;
}

/* レスポンシブデザイン */
@media only screen and (max-width: 1200px) {
	div.list-chara {
		grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
	}
}

@media only screen and (max-width: 800px) {
	div.list-chara {
		grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
		gap: 0.75em;
	}

	div.list-chara .charaCard {
		width: auto;
		height: 250px;
	}

	div.list-chara .charaCard.expanded {
		width: 270px;
		grid-column: span 3;
	}

	.search-filter-container {
		flex-direction: column;
	}

	.search-box {
		width: 100%;
	}

	.filter-options {
		width: 100%;
		justify-content: space-between;
	}

	.filter-group {
		margin-right: 0;
		margin-bottom: 0.5em;
	}
}

@media only screen and (max-width: 480px) {
	div.list-chara {
		grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
		gap: 0.5em;
	}

	div.list-chara .charaCard {
		height: 200px;
	}

	div.list-chara .charaCard.expanded {
		width: 160px;
		grid-column: span 2;
		/* スマホでは2カラム分のみ */
	}

	.sort-options {
		overflow-x: auto;
		padding-bottom: 0.5em;
		flex-wrap: nowrap;
	}

	.sort-option {
		white-space: nowrap;
	}
}

/* 個別メッセージ */

#mail .mail_container {
	margin: 1em 0;
	display: flex;
	gap: 10px;
}

#mail .follows {
	width: 300px;
	border: 1px solid #ddd;
	border-radius: 2px;
	padding: 15px;
	overflow-y: auto;
}

#mail .follow_list,
#mail .message_list {
	height: 600px;
	overflow-y: auto;
}

#mail .follows,
#mail .mail_content {
	box-shadow: 2px 2px 2px #000000f0;
}

#mail .follows h3 {
	margin: 0 0 15px 0;
	font-size: 16px;
	border-bottom: 2px solid #333;
	padding-bottom: 8px;
}

#mail .follow_list {
	list-style: none;
	padding: 0;
	margin: 0;
}

#mail .follow_list li {
	margin-bottom: 10px;
}

#mail .follow_list a {
	display: flex;
	align-items: center;
	gap: 0px;
	padding: 0.25em 0.5em;
	border-radius: 2px;
	text-decoration: none;
	transition: background 0.2s;
}

#mail .follow_list a:hover {
	background: #b4b4b4ff;
	color: #202020;
}

#mail .follow_list img {
	margin: 0 0.25em 0 0;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
}

#mail .mail_content {
	flex: 1;
	border: 1px solid #ddd;
	border-radius: 2px;
	padding: 15px;
	display: flex;
	flex-direction: column;
}

#mail .mail_content h3 {
	margin: 0 0 15px 0;
	font-size: 16px;
	border-bottom: 2px solid #333;
	padding-bottom: 8px;
}

#mail .message_list {
	flex: 1;
	overflow-y: auto;
	margin-bottom: 15px;
	padding: 10px;
	border-radius: 2px;
}

#mail .mail_message {
	margin-bottom: 15px;
	display: flex;
}

#mail .mail_message.you {
	justify-content: flex-start;
}

#mail .mail_message.me {
	justify-content: flex-end;
}

#mail .mail_message p {
	max-width: 70%;
	padding: 10px 15px;
	border-radius: 10px;
	margin: 0;
	word-wrap: break-word;
	box-shadow: 2px 2px 2px #000000f0;
}

#mail .mail_message img {
	display: block;
	margin: 0.5em 0;
	max-width: 100%;
	height: auto;
	border-radius: 5px;
}

#mail .mail_message.you p {
	background: #303030;
}

#mail .mail_message.me p {
	background: #40668fff;
	color: #fff;
}

#mail .message_form {
	padding: 5px 0 0 0;
	display: flex;
	gap: 10px;
	justify-content: space-between;
	align-items: center;
	border-top: 2px solid #b9b9b9ff;
}

#mail .message_form label {
	flex: 1;
}

#mail .message_form textarea {
	width: 100%;
	height: 6em;
	min-height: 60px;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 2px;
	resize: vertical;
	font-family: inherit;
}

#mail .message_form .btn {
	padding: 10px 20px;
	white-space: nowrap;
}

@media only screen and (max-width: 800px) {
	#mail .mail_container {
		flex-direction: column;
		gap: 15px;
	}

	#mail .follows {
		width: 100%;
		max-height: 300px;
	}

	#mail .follow_list {
		height: auto;
		max-height: 250px;
	}

	#mail .message_list {
		height: 400px;
	}

	#mail .mail_message p {
		max-width: 85%;
		font-size: 0.9em;
	}

	#mail .message_form {
		flex-direction: column;
		gap: 10px;
	}

	#mail .message_form label {
		width: 100%;
	}

	#mail .message_form .btn {
		width: 100%;
	}
}


/* ページャー */

/* 数字付きページャー用のCSS */
.pager {
	margin: 1em auto;
	width: 100%;
	display: flex;
	flex-flow: wrap;
	justify-content: center;
	align-items: center;
	font-size: 1em;
	font-family: var(--main-font);
}

.pager_left,
.pager_right {
	margin: 0 0.5em;
	padding: 0 0.75em;
	font-family: var(--main-font);
	font-weight: bold;
	font-size: 1em;
	color: var(--font-dark-color);
	text-align: center;
	cursor: pointer;
	user-select: none;
	background-color: var(--main-color);
	border-radius: 2px;
	transition: 0.15s;
}

.pager_numbers {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
}

.pager_numbers a,
.pager_numbers span.current,
.pager_numbers span.omitted {
	margin: 0 0.25em;
	padding: 0.25em 0.5em;
	min-width: 2em;
	text-align: center;
}

.pager_numbers a {
	display: inline-block;
	background-color: var(--main-color);
	color: var(--font-dark-color);
	border-radius: 2px;
	text-decoration: none;
	transition: 0.15s;
}

.pager_numbers span.current {
	display: inline-block;
	background-color: var(--main-under-color);
	color: var(--font-dark-color);
	border-radius: 2px;
	font-weight: bold;
}

.pager_numbers span.omitted {
	color: var(--font-dark-color);
}

.pager_left a,
.pager_right a,
.pager_left span,
.pager_right span {
	display: block;
	width: 100%;
	padding: 0.25em;
	text-align: center;
	text-decoration: none;
}

.pager_left:hover,
.pager_right:hover,
.pager_numbers a:hover {
	color: var(--font-dark-color);
	background-color: var(--main-under-color);
	transform: translate(1px, 1px);
	box-shadow: unset;
}

.pager span.disabled {
	opacity: 0.5;
	cursor: default;
}

/* レスポンシブ対応 */
@media only screen and (max-width: 800px) {

	.pager_numbers a,
	.pager_numbers span.current {
		margin: 0.1em;
		padding: 0.2em 0.4em;
		min-width: 1.8em;
		font-size: 0.9em;
	}
}

/* フッター */

#pageTop {
	position: fixed;
	right: 5%;
	bottom: 5%;

	display: none;
	width: 50px;
	height: 50px;
	background-color: #304253;
	border-radius: 2px;
	opacity: 0.5;
	z-index: 10000;
	cursor: pointer;
	transition: 0.25s;

	color: #EEEEEE;
	font-size: 3rem;
	line-height: 50px;
	text-align: center;
}

#pageTop:hover {
	text-decoration: none;
	opacity: 1;
	transition: 0.25s;
}

#pageTop a {
	display: block;
	width: 100%;
	height: 100%;

	text-decoration: none;
	text-align: center;
	line-height: 50px;
	font-size: 1em;
}

footer {
	font-size: 1.5em;
	text-align: center;
	font-family: var(--sub-font);
	text-shadow: 1px 1px 2px black;

	width: 100%;
	margin: 0;
	padding: 1em;
}

/* ==========================================================================
   スマホ向けスクロール負荷対策
   background-attachment: fixed があると背景を合成レイヤに固定できず、
   スクロールのたびにビューポート全面が再描画される(スクロールがメインスレッド行きになる)。
   iOS Safariでは元々fixedがほぼ効かないので、切っても見た目の差はほとんど出ない。
   ファイル末尾に置いて後勝ちさせている。
   ========================================================================== */
@media only screen and (max-width: 800px),
(hover: none) {

	body,
	div.title,
	div.teaserbox,
	div.teaserbox.prologue,
	div.teaserbox.about,
	div.teaserbox.world,
	div.teaserbox.term,
	div.teaserbox.other,
	div.areamap {
		background-attachment: scroll;
	}

	/* localを指定していたレイヤーはそのまま残す(要素内スクロール時の挙動が変わるため) */
	div.profile_image_box {
		background-attachment: scroll, scroll, local;
	}

	section.container.area_info>.content_box {
		background-attachment: local, scroll, scroll, local;
	}
}

/* 背景写真をスマホ用の軽い版に差し替える (1536px/1.1MB → 1024px/63KB)
   image-set()はデバイスピクセル比で選ぶため、高DPRのスマホほど重い方を掴んでしまう。
   ここで欲しいのはビューポート幅による出し分けなのでメディアクエリで行う。
   タッチ操作の大画面まで巻き込まないよう、幅の条件だけにしている。 */
@media only screen and (max-width: 800px) {
	body {
		background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.4)),
			url("../imgs/dark-mosaic.png"),
			url("../imgs/bg_img01_sp.webp");
	}

	body.home {
		background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
			url("../imgs/dark-mosaic.png"),
			url("../imgs/bg_img02_sp.webp");
	}
}
/* --- アクティビティ引用(<act>) --- */
/* 発言内に埋め込まれたアクティビティ。効果は適用されない表示専用の引用。 */
.act_quote {
	display: inline-block;
	margin: 0.15em 0;
	padding: 0.1em 0.5em;
	border-left: 3px solid var(--font-gray-color, #999);
	background: rgba(128, 128, 128, 0.12);
	font-size: 0.9em;
	line-height: 1.5;
}

.act_quote>.fa-solid {
	margin-right: 0.3em;
	opacity: 0.7;
}

/* 引用対象を選ぶモーダルの一覧 */
.modal ul.activity_quote_list {
	margin: 0.5em 0 0 0;
	padding: 0;
	list-style: none;
	flex-flow: column;
}

.activity_quote_item {
	margin: 0 0 0.3em 0;
	padding: 0.4em 0.6em;
	border: 1px solid rgba(128, 128, 128, 0.4);
	font-size: 0.8em;
	line-height: 1.4;
	cursor: pointer;
	transition: 0.15s;
}

.activity_quote_item:hover {
	background: rgba(128, 128, 128, 0.15);
}

.activity_quote_item>small {
	display: block;
	font-size: 0.85em;
}
