form input[type="checkbox"],
form input[type="radio"] {
	-webkit-appearance: auto;
	appearance: auto;
}

#header header .inner .gnav nav .btn .store {
	width: auto;
	max-width: 100%;
	min-width: 320px;
}

#header header .inner .gnav nav .btn .store a {
	padding-left: 1em;
	padding-right: 2.5em;
}

.post-type-archive-useful .sec01 .inner .swiper a .img {
	aspect-ratio: 370 / 220;
	border: 1px solid var(--color-GrayN);
	box-shadow: .5em .5em 0 var(--color-GrayN);
}
.post-type-archive-useful .sec01 .inner .swiper a .img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.post-type-archive-useful .sec01 .inner .swiper a .cate {
	width: 90%;
	max-width: 210px;
	height: 45px;
	border: 1px solid;
	border-radius: 100vmax;
	place-items: center;
	display: grid;
	place-items: center;
	position: absolute;
	left: -1em;
	bottom: -1.5em;
}
@media screen and (min-width: 769px) {
	.post-type-archive-useful .sec01 .inner .swiper {
		overflow: initial;
	}
	.post-type-archive-useful .sec01 .inner .swiper .swiper-wrapper {
		display: grid;
		gap: 3em;
		grid-template-columns: repeat(3, 1fr);
	}
}
@media screen and (max-width: 768px) {
	.post-type-archive-useful .sec01 .inner .swiper {
		width: 100vw;
		margin: 0 calc(50% - 50vw) 3em;
	}
	.post-type-archive-useful .sec01 .inner .swiper a .cate {
		width: fit-content;
		height: 35px;
		padding: 0 2em;
		left: -.5em;
	}
}

.post-type-archive-event .sec01 .inner .swiper a {
	height: 100%;
	border: 1px solid;
	display: block;
}
@media screen and (min-width: 769px) {
	.post-type-archive-event .sec01 .inner .swiper .swiper-wrapper {
		display: grid;
		gap: 3em;
		grid-template-columns: repeat(3, 1fr);
	}
}
@media screen and (max-width: 768px) {
	.post-type-archive-event .sec01 .inner .swiper {
		width: 100vw;
		margin: 0 calc(50% - 50vw) 3em;
	}
}

.single-section {
	background: #fafafa;
	padding: 4em 0;
}

.single-container {
	max-width: 900px;
	margin: 0 auto;
	padding: 0 5%;
}

.single-box {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	padding: 3em;
}

.single-header {
	margin-bottom: 2em;
}

.single-title {
	font-size: 1.4em;
	font-weight: 700;
	color: var(--color-Mint);
	margin-bottom: 0.5em;
	padding-bottom: 0.5em;
	border-bottom: 3px solid var(--color-Mint);
	display: flex;
	align-items: center;
	gap: 0.5em;
}

.single-info {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-start;
	align-items: center;
	gap: 0.5em 1em;
}

.single-categories {
	display: contents;
}

.single-categories .cate {
	padding: 0 1.5em;
	border: 1px solid;
	border-radius: .3em;
	font-weight: 600;
	flex-shrink: 0;
}

@media screen and (max-width: 768px) {
	.single-section {
		padding: 2em 0;
	}

	.single-box {
		padding: 2em 1.5em;
	}

	.single {
		font-size: 1.2em;
	}
}

/* login */
#member-login #loginform {
	margin-bottom: 24px;
}

#member-login #loginform > p {
	margin-top: 20px;
}

#member-login #loginform label {
	display: block;
	font-size: 1.4rem;
	font-weight: 500;
	color: #33475b;
	margin-bottom: 8px;
}

#member-login #loginform input[type=text],
#member-login #loginform input[type=password] {
	width: 100%;
	max-width: none;
	height: 40px;
	padding: 9px 10px;
	font-size: 1.4rem;
	color: #33475b;
	background: #f5f8fa;
	border: 1px solid #cbd6e2;
	border-radius: 3px;
	transition: all 0.15s ease;
}

#member-login #loginform input[type="checkbox"] {
	appearance: auto;
	-webkit-appearance: auto;
	width: 22px;
	height: 22px;
	accent-color: #7dd3b5;
	cursor: pointer;
}

/* buddypress-member */
/* チャットルーム専用スタイル */
.buddypress-member-section {
	background: #fafafa;
	padding: 4em 0;
}

.buddypress-member-container {
	display: grid;
	grid-template-columns: 300px 1fr;
	gap: 2em;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 5%;
}

/* サイドバー（ユーザー情報） */
.buddypress-member-sidebar {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
	padding: 2em;
	height: fit-content;
	position: sticky;
	top: 2em;
}

.user-profile {
	text-align: center;
	margin-bottom: 2em;
	padding-bottom: 2em;
	border-bottom: 2px solid #f0f0f0;
}

.user-avatar {
	width: 100px;
	height: 100px;
	background: linear-gradient(135deg, #7dd3b5 0%, #5cb89a 100%);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 1em;
	box-shadow: 0 4px 15px rgba(125, 211, 181, 0.3);
	overflow: hidden;
}

.shop-name {
	font-size: 1.2em;
	font-weight: 700;
	color: #7dd3b5;
	margin-bottom: 0.3em;
}

.user-name {
	font-size: 0.95em;
	color: #666;
	margin-bottom: 0.5em;
}

.member-id {
	font-size: 0.85em;
	color: #999;
	background: #f5f5f5;
	padding: 0.3em 0.8em;
	border-radius: 20px;
	display: inline-block;
}

.user-profile .support-company {
	margin-top: 0.3em;
	color: #ffc371;
	font-size: 0.9em;
}

.sidebar-menu {
	list-style: none;
	padding: 0;
	margin: 0;
}

.sidebar-menu li {
	margin-bottom: 0.5em;
}

.sidebar-menu a {
	display: flex;
	align-items: center;
	gap: 0.8em;
	padding: 0.8em 1em;
	color: #555;
	text-decoration: none;
	border-radius: 10px;
	transition: all 0.3s ease;
	font-size: 0.95em;
}

.sidebar-menu a:hover {
	background: #f0fdf4;
	color: #7dd3b5;
}

.sidebar-menu li.selected a {
	background: #7dd3b5;
	color: #fff;
}

.sidebar-menu .icon {
	width: 20px;
	text-align: center;
}

.sidebar-menu .icon img {
	width: 18px;
	height: auto;
}

.logout-btn {
	margin-top: 2em;
	text-align: center;
}

.logout-btn a {
	display: inline-block;
	padding: 0.6em 2em;
	font-size: 0.9em;
	color: #999;
	text-decoration: none;
	border: 1px solid #ddd;
	border-radius: 25px;
	transition: all 0.3s ease;
}

.logout-btn a:hover {
	color: #dc2626;
	border-color: #dc2626;
	background: #fef2f2;
}

/* メインコンテンツ */
.buddypress-member-main {
	display: flex;
	flex-direction: column;
	gap: 2em;
	background-color: #ffffff;
	border-radius: 16px;
	overflow: hidden;
}

.buddypress-member-main {
	padding: 2em;
}

/* レスポンシブ対応 */
@media screen and (max-width: 1024px) {
	.buddypress-member-sidebar {
		position: static;
	}
}

@media screen and (max-width: 768px) {
	.buddypress-member-container {
		display: flex;
		flex-direction: column;
		align-items: stretch;
	}

	.buddypress-member-section {
		padding: 2em 0;
	}

	.buddypress-member-sidebar {
		padding: 1.5em;
	}
}


/* BuddyPress フォーム */
.buddypress-wrap .standard-form input,
.buddypress-wrap .standard-form textarea {
	max-width: none;
}

.buddypress-wrap .standard-form textarea {
	height: 100px;
	min-height: 0;
}


/* entry-content */
:where(.entry-content) h1,
:where(.entry-content) h2,
:where(.entry-content) h3,
:where(.entry-content) h4,
:where(.entry-content) h5,
:where(.entry-content) h6,
:where(.entry-content) p,
:where(.entry-content) ol,
:where(.entry-content) ul,
.wp-block-image,
.wp-block-gallery,
.wp-block-table {
	margin-top: 28px;
	margin-bottom: 28px;
}

:where(.entry-content) h1,
:where(.entry-content) h2,
:where(.entry-content) h3,
:where(.entry-content) h4,
:where(.entry-content) h5,
:where(.entry-content) h6 {
	font-weight: bold;
}

:where(.entry-content) h1 {
	font-size: 2em;
}

:where(.entry-content) h2 {
	font-size: 1.5em;
}

:where(.entry-content) h3 {
	font-size: 1.17em;
}

:where(.entry-content) h4 {
	font-size: 1em;
}

:where(.entry-content) h5 {
	font-size: .83em;
}

:where(.entry-content) h6 {
	font-size: .67em;
}

:where(.entry-content) ol ol,
:where(.entry-content) ol ul,
:where(.entry-content) ul ol,
:where(.entry-content) ul ul {
	margin-top: 0;
	margin-bottom: 0;
}

:where(.entry-content) ol,
:where(.entry-content) ul {
	padding-left: 40px;
}

:where(.entry-content) ul {
	list-style-type: disc;
}

:where(.entry-content) ul ul {
	list-style-type: circle;
}

:where(.entry-content) ul ul ul {
	list-style-type: square;
}
