.ms-container {
	width: 100% !important;
}
.ck-editor__editable_inline {
	min-height: 400px;
}
#header-in h1 img,
#footer .logo img {
	width: auto;
	height: 80px;
}
#container.sub #nav {
	margin-top: 100px;
}
#container.top #nav {
	margin-top: 0;
}
.radar-box canvas {
	max-width: 100%;
}
#main main {
	max-width: 1280px;
	margin: auto;
	width: 100%;
}
.pager-static {
	text-align: right;
}
.pager-static ul.pager {
	display: flex;
	justify-content: center;
	gap: 1em;
}
.pager-static ul.pager li {
	width: 2em;
	height: 2em;
}
.pager-static ul.pager li a {
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	background: #fff;
	color: #000;
	border: #333 1px solid;
	margin: 0;
	padding: 0;
	font-family: 'aktiv-grotesk', sans-serif;
	font-size: 16px;
}
.pager-static ul.pager li.next {
	width: 3em;
}
.pager-static ul.pager li.is-current span,
.pager-static ul.pager li.is-current a,
.pager-static ul.pager li.paginate_button.active span,
.pager-static ul.pager li.paginate_button.active a {
	color: #fff;
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	margin: 0;
	padding: 0;
	background: #000;
	border: #333 1px solid;
	font-family: 'aktiv-grotesk', sans-serif;
	font-size: 16px;
}
.pager-static ul.pager li.active {
	background: #333;
	color: #fff;
}
.user-table th,
.user-table td {
	padding: 1em 1.5em;
	vertical-align: top;
	border: none;
}
.error {
	color: #c00;
	font-weight: bold;
	background: #fff0f0;
	padding: 1em;
	margin-bottom: 1em;
}
#_mypage .sidebar ul.nav_mypage {
	display: flex;
	row-gap: 5px;
	flex-wrap: wrap;
}
#_mypage .sidebar ul.nav_mypage li {
	display: block;
	width: 100%;
	border-left: 5px solid #f67571;
}
#_mypage .sidebar ul.nav_mypage li a {
	display: block;
	padding: 0.8em;
	color: #000;
	transition: 0.2s;
	position: relative;
}
#_mypage .sidebar ul.nav_mypage li a i {
	padding-right: 0.8em;
}
#_mypage .sidebar ul.nav_mypage li a:hover {
	opacity: 0.7;
}
#_mypage span.notice {
	position: absolute;
	display: flex;
	width: auto;
	justify-content: center;
	align-items: center;
	top: 50%;
	right: 10px;
	color: #fff;
	font-weight: normal;
	line-height: 20px;
	text-align: center;
	background: red;
	border-radius: 10px;
	min-width: 20px;
	height: 20px;
	padding: 0 3px 1px 3px;
	box-sizing: border-box;
	transform: translate(-50%, -50%);
	-webkit-transform: translate(-50%, -50%);
	-ms-transform: translate(-50%, -50%);
	font-size: 11px;
}
#_mypage .item-msg h3 {
	font-weight: bold;
	margin-bottom: 1em;
}
#_mypage .item-msg h5 {
	color: #999;
	font-style: italic;
	text-align: right;
	margin-top: 1em;
	width: fit-content;
	margin-left: auto;
}
.modal {
	display: none;
	height: 100vh;
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 9999;
}
.modal__bg {
	background: rgba(0, 0, 0, 0.5);
	height: 100vh;
	position: absolute;
	width: 100%;
}
.modal__content {
	background: #fff;
	left: 50%;
	padding: 40px;
	position: absolute;
	top: 50%;
	transform: translate(-50%, -50%);
	width: 60%;
	background-size: 100% auto;
}
.modal__content .joinbox {
	background: #fff;
}
.modal__content .modal_img {
	text-align: center;
	margin-bottom: 1em;
}
.modal__content p {
	color: #333;
	font-weight: bold;
	font-size: 1.2rem;
	text-align: center;
}
.modal__content p strong {
	text-decoration: underline;
}
.modal__content p.preview_message {
	border: #999 1px solid;
	font-weight: normal;
	text-align: left;
	padding: 1em;
	font-size: 0.9rem;
}
.modal__content .button {
	text-align: center;
}
.modal__content .button a,
.modal__content .button button {
	color: #fff;
	background: #f67571;
	display: inline-block;
	font-size: 1.4rem;
	padding: 0.4em 1em;
	margin: 0 auto;
	font-weight: bold;
	border-radius: 0;
}
.shopify-buy__product__actual-price,
.shopify-buy__product__price {
	font-family: 'aktiv-grotesk', sans-serif;
	text-align: left;
}
.item_detail {
	margin: auto;
	margin-bottom: 40px;
	padding: 25px;
	background-color: #efefef;
	border-radius: 25px;
}
.item_detail figure {
	text-align: center;
	margin-bottom: 30px;
}
.item_detail .item_name {
	font-size: 20px;
	font-weight: bold;
}
.item_detail .item_conditions {
	padding: 15px;
	margin: auto;
	background-color: #fff;
}
.text-muted {
	display: block;
}
#_mypage form.suggest_detail button {
	margin-top: 30px;
	cursor: pointer;
}
.flex.center {
	justify-content: center;
	gap: 30px;
}
.loop.messages {
	flex-wrap: wrap;
}
.item-card.loop.messages .item {
	width: 100%;
}
.message_block {
	width: 100%;
}
.message_block h3 {
	background: #dcdcdc;
}
#_mypage .btn-box.message_btn {
	width: 35%;
}
@media (max-width: 787px) {
	.modal__content {
		width: 90%;
	}
	.modal__content p {
		color: #333;
		font-weight: bold;
		font-size: 1.2rem;
		text-align: center;
	}
}
.item-card.loop {
	display: flex;
	flex-wrap: wrap;
	gap: 2em 1em;
}
.item-card.loop .item {
	width: calc((100% - 3em) / 4);
	position: relative;
	display: flex;
	flex-wrap: wrap;
	flex-direction: column;
	justify-content: space-between;
}
.item-card.loop .item .flex {
	display: block;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}
#_mypage .item-card.loop .item a.btn-box {
	width: 100%;
	display: block;
	background: #000;
	color: #fff;
	text-align: center;
	margin: 1em auto 0;
	box-sizing: border-box;
}

.item-card.loop .item .head-area span {
	font-size: 0.8em;
	display: inline-block;
}

.item-card.loop .item .bl_stats {
	color: #fff;
	margin: 1em auto;
	background: #900;
	padding: 0.5em;
	font-size: 0.6em;
	text-align: center;
	width: 100%;
	box-sizing: border-box;
}
.item-card.loop .item .img-box {
	position: relative;
	aspect-ratio: 22/29;
	margin-block: 0.5em;
}

.item-card.loop .item .img-box img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.item-card.loop .item.new .img-box::before {
	content: 'NEW';
	background-color: #e67e22; /* 黒→オレンジ */
	color: #fff;
	padding: 4px 10px; /* 5px 15px → 4px 10px */
	position: absolute;
	top: 0;
	left: 0;
	z-index: 2;
	font-size: 11px; /* 追加 */
	font-weight: bold; /* 追加 */
	white-space: nowrap; /* 追加 */
	letter-spacing: 0.05em; /* 追加 */
}
@media (max-width: 787px) {
	.item-card.loop .item {
		width: calc((100% - 1em) / 2);
		position: relative;
	}
}
.item-card.loop .item .flex .thumb {
	width: 100%;
	max-width: 100%;
}
.item-card.loop .item .flex .thumb .img-box {
	width: 100%;
	aspect-ratio: 3/4;
}
.item-card.loop .item .flex .thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
}
#_mypage .flex-end {
	position: relative;
	display: flex;
	margin-top: 1em;
	justify-content: flex-end;
	align-items: flex-end;
	gap: 0.5em;
}
#_mypage .btn-box {
	/*width: 30%;*/
	border: #000 1px solid;
	padding: 0.5em;
	line-height: 1;
	color: #000;
	margin: 0;
	font-weight: normal;
	min-width: auto;
	letter-spacing: 0;
	text-align: center;
	color: #fff;
	background-color: #000;
	white-space: nowrap;
	font-size: 0.6em;
}
#_mypage .btn-box:first-of-type {
	border-right: none;
}
#_mypage .stat-box {
	background: #999;
	color: #fff;
	padding: 0.5em 0.8em;
	font-size: 80%;
	position: absolute;
	top: 0;
	right: 0;
}
#_mypage .flex-end._full .btn-box:first-of-type {
	width: 100%;
	border: #000 1px solid;
}
.item-card.loop .item .content-area {
	width: 100%;
	flex: 1;
}
.item-card.loop .item .content-area .category {
	border: solid 1px #ccc;
	padding: 0.25em 0.5em;
	width: auto;
	width: fit-content;
	display: inline-block;
	font-size: 0.8em;
}
.item-card.loop .item .content-area .tag-list li {
	font-size: 0.8em;
	color: #999;
}
.item-card.loop .item .content-area p {
	width: 100%;
}
.item-card.loop .item .item_name {
	margin-bottom: 0;
	font-weight: bold;
	margin-bottom: 0.5em;
}

.item-card.loop .item .brand_name {
	margin-bottom: 0;
	font-size: 80%;
}
.item-card.loop .item .price {
	font-size: 80%;
	margin-top: 0.5em;
}
.item-card.loop .item .item_description {
	font-size: 80%;
	margin-bottom: 0;
	margin-top: 0.5em;
}
.fitimage img {
	object-fit: contain;
	width: 100%;
	height: 100%;
}
.table-detail .fitimage {
	width: 200px;
	height: 200px;
	border: #eee 1px solid;
	background: #f5f5f5;
	padding: 20px;
}
.table-detail td span {
	color: #ccc;
}
.table td {
	vertical-align: top;
}
.text-center {
	text-align: center;
}
.form-signup a.btn {
	margin: 40px auto 20px;
	display: inline-block;
	background: #000;
	color: #fff;
	padding: 10px 15px;
	font-size: 14px;
	cursor: pointer;
	border: none;
}
#header-in h1 img,
#footer .logo img {
	height: 60px;
}
.form-signup .form-header {
	font-weight: bold;
	font-size: 110%;
	margin: 1em 0;
	text-align: center;
}

.msg-table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed; /* 幅制御に有効 */
}

.msg-table th,
.msg-table td {
	padding: 8px;
	border-bottom: 1px solid #ddd;
	text-align: left;
	vertical-align: middle;
	word-wrap: break-word; /* 長文が折り返されるように */
}

/* PC: タイトルを広く */
.msg-table th:nth-child(1) {
	width: 20%;
}

.msg-table th:nth-child(2) {
	width: 40%;
}

.msg-table th:nth-child(3) {
	width: 20%;
}

.msg-table th:nth-child(4) {
	width: 20%;
}

/* ★ 未読ドット */
.msg-unread-dot {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: #ef4444;
	box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.25);
	animation: msg-pulse 2s infinite;
	vertical-align: middle;
	margin-left: 5px;
	flex-shrink: 0;
}

@keyframes msg-pulse {
	0%,
	100% {
		box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.25);
	}

	50% {
		box-shadow: 0 0 0 5px rgba(239, 68, 68, 0.08);
	}
}

/* ★ 未読行のハイライト */
tr.msg-row-unread td {
	background: #fffbeb;
	font-weight: 600;
}

tr.msg-row-unread .col-title a {
	color: #111;
}

/* ★ 商品バッジ */
.msg-product-badge {
	display: inline-block;
	font-size: 10px;
	background: #6366f1;
	color: #fff;
	border-radius: 3px;
	padding: 1px 5px;
	font-weight: 700;
	white-space: nowrap;
	flex-shrink: 0;
}

/* ★ テーブル基本 */
.msg-table {
	width: 100%;
	border-collapse: collapse;
}

.msg-table thead th {
	font-size: 12px;
	color: #888;
	font-weight: 600;
	padding: 8px 10px;
	border-bottom: 2px solid #e5e7eb;
	white-space: nowrap;
}

.msg-table tbody tr td {
	padding: 10px;
	border-bottom: 1px solid #f0f0f0;
	vertical-align: middle;
	font-size: 13px;
}

/* ★ スマホ：カード型 */
@media (max-width: 768px) {
	.msg-table thead {
		display: none;
	}
	.msg-table th:nth-child(1) {
		width: 100%;
	}

	.msg-table th:nth-child(2) {
		width: 100%;
	}

	.msg-table th:nth-child(3) {
		width: 100%;
	}

	.msg-table th:nth-child(4) {
		width: 100%;
	}
	.msg-table tbody tr {
		display: block;
		background: #fff;
		border-radius: 10px;
		box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
		margin-bottom: 12px;
		padding: 14px;
		width: 100%;
		box-sizing: border-box;
	}

	.msg-table tbody tr td {
		display: block;
		border: none;
		padding: 4px 0;
	}

	/* ラベル */
	.msg-table tbody tr td[data-label]::before {
		content: attr(data-label);
		display: block;
		font-size: 10px;
		color: #aaa;
		font-weight: 600;
		margin-bottom: 2px;
		letter-spacing: 0.04em;
	}

	.msg-table tbody tr td.col-action {
		margin-top: 8px;
	}

	.msg-table tbody tr td.col-action a.btn-detail {
		display: inline-block;
		padding: 6px 18px;
		background: #111;
		color: #fff;
		border-radius: 6px;
		font-size: 13px;
		text-decoration: none;
	}

	.msg-table tbody tr td.col-date time {
		font-size: 11px;
		color: #888;
	}

	tr.msg-row-unread {
		border-left: 3px solid #ef4444;
	}
}

/* ボタン */
.btn-detail {
	display: inline-block;
	padding: 4px 10px;
	background: #000;
	color: #fff;
	border-radius: 4px;
	text-decoration: none;
	font-size: 0.9em;
}
.btn-detail:hover {
	background: #444;
}

/* === SP対応 === */
@media (max-width: 768px) {
	.msg-table,
	.msg-table thead,
	.msg-table tbody,
	.msg-table th,
	.msg-table td,
	.msg-table tr {
		display: block;
		width: 100%;
	}

	.msg-table thead {
		display: none; /* ヘッダーを非表示 */
	}

	.msg-table tr {
		margin-bottom: 1rem;
		border-bottom: 2px solid #ddd;
		padding-bottom: 0.5rem;
	}

	.msg-table td {
		border: none;
		display: flex;
		justify-content: space-between;
		padding: 6px 0;
	}

	.msg-table td::before {
		content: attr(data-label);
		font-weight: bold;
		flex: 0 0 40%;
		color: #666;
	}

	.msg-table td:last-child {
		justify-content: flex-start;
	}
}
/* レイアウト骨子 */
.page.msg-detail .inner {
	display: flex;
	gap: 24px;
}
.page.msg-detail .content {
	flex: 1;
	min-width: 0;
}

/* ヘッダー */
.msg-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
	gap: 16px;
	padding: 12px 0 16px;
	border-bottom: 1px solid #e5e7eb;
}
.msg-header .title {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
}
.msg-header .partner {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 6px;
	color: #6b7280;
}
.msg-header .partner .avatar {
	width: 28px;
	height: 28px;
	border-radius: 50%;
	object-fit: cover;
}

/* タイムライン */
.chat {
	display: block;
	padding: 16px 0 100px; /* 下に作成欄の余白 */
}
.bubble {
	display: flex;
	gap: 10px;
	margin: 14px 0;
	max-width: 820px;
}
.bubble .avatar {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	object-fit: cover;
}
.bubble .body {
	max-width: calc(100% - 46px);
}
.bubble .name {
	font-size: 12px;
	color: #6b7280;
	margin-bottom: 4px;
}
.bubble .text {
	background: #f3f4f6;
	border-radius: 14px;
	padding: 10px 12px;
	line-height: 1.7;
	word-break: break-word;
}
.bubble.you .text {
	background: #f3f4f6;
}
.bubble.me {
	flex-direction: row-reverse;
	margin-left: auto;
}
.bubble.me .text {
	background: #2563eb;
	color: #fff;
}
.bubble .meta {
	font-size: 11px;
	color: #9ca3af;
	margin-top: 4px;
	text-align: right;
}

/* 送信欄（画面下に吸着） */
.composer {
	position: sticky;
	bottom: 0;
	background: #fff;
	border-top: 1px solid #e5e7eb;
	padding: 12px;
	display: flex;
	gap: 12px;
	align-items: flex-end;
}
.composer textarea {
	flex: 1;
	resize: vertical;
	min-height: 52px;
	max-height: 200px;
	border: 1px solid #d1d5db;
	border-radius: 10px;
	padding: 10px;
	font-size: 14px;
}
.composer .btn {
	display: inline-block;
	padding: 10px 16px;
	border-radius: 10px;
}
.btn-primary {
	background: #111;
	color: #fff;
	border: none;
	/*width: 100%;*/
	font-size: 0.6em;
}
.btn-light {
	background: #f3f4f6;
	color: #111;
	padding: 8px 12px;
	border-radius: 8px;
}

.form-signup button.btn-light {
	background: #f3f4f6;
	color: #111;
	padding: 8px 12px;
	transition: 0.3s;
	border-radius: 0;
}

.form-signup button.btn-light:hover {
	background: #ccc;
	color: #111;
	padding: 8px 12px;
}

/* スマホ対応 */
@media (max-width: 768px) {
	.page.msg-detail .inner {
		display: block;
	}
	.msg-header {
		align-items: flex-start;
	}
	.chat {
		padding-bottom: 88px;
	}
	.bubble {
		max-width: 100%;
	}
}

.bl_sug-btn ul {
	display: flex;
}

.bl_btn-b {
	display: block;
	width: 100%;
	max-width: 300px;
	text-align: center;
	background: #000;
	color: #fff;
	padding: 0.2em;
	box-sizing: border-box;
	font-size: 0.6em;
}
