/* ==========================================
   全体レイアウト
   ========================================== */

body {
	font-feature-settings: "palt";
	font-family: "Noto Sans JP", "BIZ UDPGothic", "ヒラギノ角ゴ Pro W3", "メイリオ", sans-serif;
	color: #666666;
	font-size: 1em;
	font-weight: 400;
	line-height: 1.5em;
	-webkit-text-size-adjust: 100%;
	background-color: #fff;
	height: 100%;
	margin: 0;
	overflow-x: hidden;
}

body * { box-sizing: border-box; }
section { position: relative; }
.site-content { width: 100%; }
.wrapper { width: 90%; max-width: 1120px; margin-left: auto; margin-right: auto; }

img { image-rendering: -webkit-optimize-contrast; }
a { color: #333333; text-decoration: underline; }

h2 {
  margin-bottom: 0;
  font-size: 1.2em;
}

/* ----- スキップリンク -------------------- */

.skip-link,
.screen-reader-text {
	position: absolute;
	left: -9999px;
	top: auto;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.skip-link:focus,
.screen-reader-text:focus {
	position: static;
	width: auto;
	height: auto;
	left: auto;
	background: #000;
	color: #fff;
	padding: 8px;
	z-index: 1000;
}

/* ----- パンくず -------------------- */

.breadcrumbs { font-size: 1em; line-height: 1.5em; }

/* ----- ページトップに戻るボタン -------------------- */

.pagetop { position: fixed; z-index: 999; right: 0; bottom: 0; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
.pagetop img { width: 40px; height: 40px; margin-right: 20px; margin-bottom: 20px; }
.pagetop a img:hover { border: none; }

/* ----- ReCAPCHA v3 -------------------- */

.recaptcha-msg { margin-top: 1em; }
.recaptcha-msg p { font-size: 1em; line-height: 1.5em; }
.grecaptcha-badge { visibility: hidden; }

/* ----- PCで電話のクリック・タップイベントを無効化 -------------------- */

@media (min-width: 769px) { a[href^="tel:"] { pointer-events: none; } }

/* ----- スマホ/PC別表示非表示 -------------------- */

@media all and (min-width: 769px) { .sp-only { display: none !important; } }
@media all and (max-width: 768px) { .pc-only { display: none !important; } }

/* ----- スマホでのみ改行 -------------------- */

@media (min-width: 480px) { .sp_br2 { display: none; } }
@media (min-width: 768px) { .sp_br  { display: none; } }

/* ----- TABLE スマホで横スクロール -------------------- */

table {
	display: block;
	overflow-x: scroll;
	white-space: nowrap;
	-webkit-overflow-scrolling: touch;
}


/* ==========================================
   ヘッダー・フッター
   ========================================== */

/* ----- ヘッダー -------------------- */

.site-header {
	background: url(../img/bg_gray_02.jpg) repeat center top;
	width: 100%;
	padding: 1em 0;
}
.site-header .wrapper {
	display: flex;
	flex-direction: column;
}
.site-branding {
	display: flex;
	align-items: center;
	gap: 0.5em;
}
.site-branding-link {
	display: flex;
	align-items: center;
	gap: 0.5em;
	text-decoration: none;
	color: inherit;
}
.site-logo {
	height: 3em;
	width: auto;
}
@media screen and (max-width: 768px) {
	html { font-size: 1.1em; }
	.site-branding h1 { font-size: 1.4em; }
}

.header-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: 0;
}
.header-meta p {
	margin-top: 0;
	margin-bottom: 0;
}
.site-greeting {
	font-size: 1.1em;
	font-weight: bold;
}
.header-links {
	display: flex;
	align-items: center;
	gap: 0.5em;
	margin: 0;
}
.header-links a {
	display: flex;
	align-items: center;
	gap: 0.4em;
	background: #223138;
	color: #fff;
	border-radius: 10px;
	padding: 0.45em 0.9em;
	text-decoration: none;
	white-space: nowrap;
}
.header-links a:hover {
	background: #000;
	color: #fff;
}
@media screen and (max-width: 768px) {
	.header-links .btn-label { display: none; }
	.header-links a {
		width: 2.4em;
		height: 2.4em;
		padding: 0;
		justify-content: center;
		border-radius: 50%;
	}
}

/* ----- フッター -------------------- */

.f1 {
	background: url(../img/bg_gray_02.jpg) repeat center top;
	width: 100%;
	padding: 1em 0;
}
.site-footer {
	margin: 0;
}
.footer-icons {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 10px;
	padding: 16px 0 8px;
}
.footer-icons a {
	display: inline-flex;
}
.footer-icons img {
	width: 40px;
	height: 40px;
	object-fit: contain;
}
.site-info {
	padding: 1em;
	text-align: center;
	font-size: .9em;
  line-height: 1.5em;
}

/* ----- ナビ -------------------- */


/* ==========================================
   ログイン
   ========================================== */

.loginform {
	display: grid;
	place-items: center;
	width: 50%;
	margin: 30px auto 50px;
	border: none;
	background-color: #f2f2f2;
	padding: 20px 20px 50px;
	border-radius: 10px;
}
.login-error-text {
	color: red;
	margin-bottom: 1em;
	text-align: center;
}
.login-button {
	margin-top: 30px !important;
}
.login-footer {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-top: 16px;
	width: 100%;
	gap: 0.8em;
}
.rememberme-label {
	display: flex;
	align-items: center;
	gap: 0.4em;
	cursor: pointer;
	font-size: 1em;
}
.rememberme-label input[type="checkbox"] {
	cursor: pointer;
	width: auto;
	margin: 0;
}
.lostpassword-link {
	font-size: 1em;
	color: #888;
	text-decoration: underline;
	white-space: nowrap;
}
@media screen and (max-width: 768px) {
	.loginform {
		width: 100%;
		padding-left: 0;
		padding-right: 0;
	}
	.member-login {
		width: 90%;
	}
}


/* ==========================================
   カードグリッド共通
   ========================================== */

.works-card-grid,
.news-card-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	list-style: none;
	padding: 0;
	margin-top: 16px;
}
@media (min-width: 769px) and (max-width: 1000px) {
	.works-card-grid,
	.news-card-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}
@media (max-width: 768px) {
	.works-card-grid,
	.news-card-grid {
		grid-template-columns: 1fr;
	}
}

/* ----- 作品カード -------------------- */

.works-card {
	border: 1px solid #d3d3d3;
	border-radius: 6px;
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	display: flex;
	flex-direction: column;
}
.works-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.works-card > a {
	display: flex;
	align-items: flex-start;
	text-decoration: none;
	color: inherit;
	padding: 10px;
	gap: 10px;
	flex: 1;
}
.works-card-img-wrap {
	flex-shrink: 0;
	position: relative;
	width: 80px;
	height: 80px;
}
.works-card-img {
	width: 100%;
	height: 100%;
	overflow: hidden;
	background: #f5f5f5;
}
.works-card-img img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.works-card-body {
	flex: 1;
	min-width: 0;
	padding: 0;
}
.program-name-heading {
	font-size: 1em;
}
.program-name-link,
.program-name-link:hover {
	text-decoration: none;
	color: #666666;
}
.works-card-date {
	font-weight: normal;
}
.works-card-title-wrap {
	display: flex;
	align-items: flex-start;
	gap: .5em;
	margin-bottom: 2px;
}
.works-card-title {
	font-weight: bold;
	font-size: 1em;
  line-height: 1.5em;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	flex: 1;
}
.works-card-prize-badge {
	position: absolute;
	top: -8px;
	left: -8px;
	width: 24px;
	height: 24px;
	background: #cb171d;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: .9em;
	pointer-events: none;
}
.work-prize {
	color: #cb171d;
	font-size: 1em;
	margin-top: 0.3em;
	margin-bottom: 0;
}
.work-prize .fa-award {
	margin-right: 0.5em;
}
.works-card-meta {
	display: flex;
	align-items: center;
	gap: 1em;
	margin-top: 2px;
}
.works-card-user {
	font-size: 1em;
	color: #888;
}
.works-card-comment-info {
	display: inline-flex;
	align-items: center;
	gap: .5em;
}
.works-card-comments {
	font-size: 1em;
}
.works-card-comments.has-new {
	color: #cb171d;
	font-weight: bold;
}
.works-card-new-badge {
	display: inline-block;
	background: #cb171d;
	color: #fff;
	font-size: 0.7em;
	font-weight: bold;
	padding: 2px 6px;
	border-radius: 3px;
	line-height: 1.4;
	vertical-align: middle;
}

/* ----- お知らせカード -------------------- */

.news-card {
	border: 1px solid #d3d3d3;
	border-radius: 6px;
	overflow: hidden;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	height: 108px;
}
.news-card.is-unread {
	background-color: #ffe9f5;
}
.news-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.news-card > a {
	display: flex;
	flex-direction: column;
	justify-content: flex-start;
	text-decoration: none;
	color: inherit;
	height: 100%;
	padding: 10px 12px;
	box-sizing: border-box;
}
.news-card-date {
	font-size: 1em;
	color: #888;
	margin-bottom: 4px;
}
.news-card-title {
	font-weight: bold;
	font-size: 1em;
	margin-bottom: 2px;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
}
.news-card-subtitle {
	font-size: .85em;
	color: #888;
	margin-top: 2px;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	-webkit-box-orient: vertical;
}


/* ==========================================
   アーカイブページ
   ========================================== */

.archive-header h1 { font-size: 1em; line-height: 1.6em; }
.place-list { list-style: none; padding-left: 0; padding-bottom: 1em; }
.place-list h2 { font-size: 1em; line-height: 1.4em; }
.place-list p { margin-bottom: 0; margin-top: 0; }
.place-list li { border-top: 1px solid #000; padding-bottom: 1em; }
.place-list li:last-child { border-bottom: 1px solid #000; }
.place-works-list li { border-top: none; padding-bottom: 0; }
.place-works-list li:last-child { border-bottom: none; }
@media screen and (max-width: 768px) {
	.archive-header h1 { font-size: 1em; line-height: 1.4em; }
	.place-list h2 { font-size: 1em; line-height: 1.4em; margin-top: 2em; margin-bottom: 1em; }
}

/* ----- グリッド：PCで2カラム -------------------- */

.grid-container {
	display: grid;
	grid-template-columns: 49% 49%;
	padding-left: 0;
	margin-top: 0;
	column-gap: 2%;
}
.grid-container li {
	display: flex;
	padding-top: 10px;
	padding-bottom: 10px;
}
@media (max-width: 768px) {
	.grid-container { display: block; }
}

.archive-img-works {}
.archive-img-works img { width: 260px; float: left; object-fit: cover; border: 1px solid #d3d3d3; aspect-ratio: 1/1; }
.archive-info-work { width: 100%; margin-left: 15px; word-break: break-all; line-height: 1.5em; }
.archive-title-works { margin-top: 0; margin-bottom: .5em; }

@media (max-width: 1024px) {
	.card-img img { width: 100px; height: 100px; }
}
@media (max-width: 768px) {
	.archive-img-works img { width: 120px; height: 120px !important; }
	.archive-info-work { margin-left: 10px; }
}

.work-item:hover img {
	transform: scale(1.05);
	transition: transform 0.3s ease;
}
.work-item:hover h2 {
	color: #c00;
	text-decoration: underline;
	transition: color 0.3s ease;
}

/* ----- お知らせアーカイブ -------------------- */

.news-archive-link {
	text-align: right;
	margin-top: 10px;
}
.news-archive-link a {
	text-decoration: none;
}
.news-pagination {
	margin-top: 30px;
	text-align: center;
}
.news-pagination .page-numbers {
	display: inline-block;
	padding: 6px 12px;
	margin: 0 3px;
	border: 1px solid #ccc;
	border-radius: 4px;
	text-decoration: none;
	color: inherit;
}
.news-pagination .page-numbers.current {
	background: #333;
	color: #fff;
	border-color: #333;
}
.news-pagination .page-numbers:hover {
	background: #f0f0f0;
}


/* ==========================================
   ブロックエディターで登録したコンテンツ
   ========================================== */

.entry-title { font-size: 1em; line-height: 1.6em; }
.entry-content { margin-bottom: 60px; }
.entry-content h2 { font-size: 1em; line-height: 1.4em; margin-top: 3em; margin-bottom: 2em; }
.entry-content h3 { font-size: 1em; margin-bottom: .5em; }
.wp-block-media-text.has-media-on-the-right > .wp-block-media-text__content { margin-right: 2em !important; }
.wp-block-media-text > .wp-block-media-text__content { padding-top: 0; padding-left: 0; padding-right: 0; }
.wp-block-media-text > .wp-block-media-text__content p { margin-top: 0; }

.wp-block-list.sales-caution {
	border: 1px solid #000;
	padding-top: 1em;
	padding-bottom: 1em;
}
tbody * {
	width: 100% !important;
}

@media screen and (max-width: 768px) {
	.entry-title { font-size: 1em; line-height: 1.4em; }
	.entry-content h2 { font-size: 1em; line-height: 1.4em; margin-top: 2em; margin-bottom: 1em; }
	.entry-content h3 { font-size: 1em; margin-bottom: .5em; }
	.wp-block-media-text.has-media-on-the-right > .wp-block-media-text__content { margin-right: 0 !important; }
	.wp-block-media-text > .wp-block-media-text__content { padding-top: 1em; }
}


/* ==========================================
   マイページ
   ========================================== */

.l-inner {
	padding-top: 50px;
	padding-bottom: 50px;
}
.works-related-user {
	text-align: center;
	margin-top: 0;
}
.works-related-user a {
	text-decoration: none;
	color: inherit;
}
.works-related-user a:hover {
	text-decoration: none;
}
.comment-count-mypage { font-weight: 700; }
.display-amount { font-size: 1em; }

/* ----- サイトトップのお知らせ -------------------- */

.top-newslist,
.update-list { padding-top: 30px; padding-bottom: 10px; }
.newslist-date { width: 6em !important; }
@media screen and (max-width: 768px) {
	.top-newslist,
	.update-list { padding-top: 25px; }
	.newslist-date { width: 5.5em !important; }
}

.border-list-wrap { list-style: none; margin: 0; padding: 0; padding-left: 0 !important; margin-bottom: 20px; }
.border-list li { display: flex; justify-content: flex-start; border-top: 1px solid #cccccc; padding: .5em; }
.border-list li:last-child { border-bottom: 1px solid #cccccc; }
.item { width: 12em; }
.newslist-title { margin-right: .5em; }

@media screen and (max-width: 768px) {
	.border-list li { padding: .2em 0 .2em .2em; }
	.item { width: 140px; }
	.value { flex-grow: 1; flex-shrink: 1; flex-basis: 0%; }
}

.newmerk-text {
	font-weight: 500;
	color: #cb171d;
	margin-left: 0.5em;
}


/* ==========================================
   作品ページ（single-works）
   ========================================== */

.title-wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin: 0 0 1em 0;
}
.news-archive .title-wrapper,
.member-list .title-wrapper,
.member-works .title-wrapper,
.type-news .title-wrapper {
	margin: 0 0 50px 0;
}
.work-term {
	margin: 0;
}
.work-term a {
	text-decoration: none;
}
.work-title {
	font-size: 1.6em;
	line-height: 1.6em;
	display: inline;
	margin-top: 0;
	margin-bottom: 0;
	text-decoration: underline;
	text-decoration-color: #fabe00;
	text-underline-offset: -.2em;
	text-decoration-thickness: .5em;
	text-decoration-skip-ink: none;
}
.work-info { text-align: center; margin-top: 1em; }
.work-spec { font-size: 1em; }
.work-artist { font-size: 1em; }
.work-commentary { margin-top: .5em; }
.work-img {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
	height: auto;
}
.work-img img {
	width: 600px;
	max-width: 800px;
	height: auto;
}

/* ----- single-works 2カラムレイアウト (PC) -------------------- */

@media (min-width: 769px) {
	.works-body {
		display: flex;
		gap: 4em;
		align-items: stretch;
		margin-top: 50px;
	}
	.works-col-left {
		flex: 0 0 30%;
		max-width: 30%;
	}
	.work-img-sticky {
		position: sticky;
		top: 50px;
	}
	.work-img-sticky .work-img {
		width: 100%;
		height: auto;
		display: block;
		border-radius: 4px;
		cursor: zoom-in;
	}
	.work-img-wrap {
		position: relative;
		display: block;
	}
	.work-img-zoom-btn {
		position: absolute;
		top: calc(100% + 10px);
		right: 0;
		width: 36px;
		height: 36px;
		border-radius: 50%;
		background: #223138;
		color: #fff;
		border: none;
		cursor: pointer;
		display: flex;
		align-items: center;
		justify-content: center;
		font-size: 0.85em;
		transition: background 0.2s ease;
	}
	.work-img-zoom-btn:hover {
		background: #000;
		color: #fff;
	}
}

@media (max-width: 768px) { .work-img-zoom-btn { display: none; } }

/* ライトボックス（PC専用） */
@media (min-width: 769px) {
	#works-lightbox {
		position: fixed;
		inset: 0;
		background: rgba(0, 0, 0, 0.85);
		z-index: 9999;
		display: flex;
		align-items: center;
		justify-content: center;
		opacity: 0;
		visibility: hidden;
		transition: opacity 0.3s ease, visibility 0.3s ease;
	}
	#works-lightbox.is-open {
		opacity: 1;
		visibility: visible;
	}
	#works-lightbox-content {
		display: flex;
		flex-direction: column;
		align-items: center;
		gap: 16px;
	}
	#works-lightbox-img {
		max-width: calc(100vw - 80px);
		max-height: calc(100vh - 120px);
		width: auto;
		height: auto;
		border: 10px solid #fff;
		display: block;
	}
	#works-lightbox-close {
		width: 44px;
		height: 44px;
		border-radius: 50%;
		background: #fff;
		border: none;
		cursor: pointer;
		display: flex;
		align-items: center;
		justify-content: center;
		font-size: 1.1em;
		color: #333;
		flex-shrink: 0;
	}
	#works-lightbox-close {
		transition: background 0.2s ease, color 0.2s ease;
	}
	#works-lightbox-close:hover {
		background: #fabe00;
		color: #fff;
	}
	.works-col-right {
		flex: 1;
		min-width: 0;
	}
	.works-col-right .title-wrapper {
		align-items: flex-start;
	}
	.works-col-right .works-related-user {
		text-align: left;
	}
}

@media screen and (max-width: 768px) {
	.work-img,
	.work-img img { width: 100%; }
	.work-img-sticky { margin-top: 30px; }
	.works-col-right { margin-top: 30px; }
	h1 { text-align: center; }
	.works-col-right .title-wrapper h1 { text-align: center; }
}

/* ----- 前の記事・次の記事 -------------------- */

.navigation.post-navigation { }
.nav-links { display: flex; margin-top: 30px; margin-bottom: 30px; }
.nav-links div[class^="nav-"] { width: 50%; }
.nav-links .nav-next { margin-left: auto; }
.nav-links .nav-previous + .nav-next { margin-left: -1px; }
.nav-links a {
	display: flex;
	align-items: center;
	width: 100%;
	line-height: 1.5em;
	overflow-wrap: anywhere;
	word-break: break-all;
	text-align: justify;
	text-decoration: none;
}
.nav-links a:hover { }
.nav-previous a { justify-content: left; }
.nav-next a { justify-content: right; }
.nav-previous a::before { content: ""; }
.nav-next a::after { content: ""; }
.nav-previous a .nav-label { margin-left: .5em; }
.nav-next a .nav-label { margin-right: .5em; }

@media all and (max-width: 768px) {
	.nav-links a { line-height: 1.3em; }
	.nav-previous { padding-right: 10px; }
	.nav-next { padding-left: 10px; }
}

/* ----- コメント -------------------- */

#comments {
	margin-top: 30px;
	margin-bottom: 30px;
}
.comment-reply-title,
.logged-in-as { display: none; }
.comment-form-comment { margin-top: 0; }
.comments-title { margin-bottom: 10px; }

.comment-list {
	list-style: none;
	padding: 0;
	margin: 0;
}
.comment-list li {
	margin: 0 !important;
	padding: 0 !important;
}
.comment-author-line {
	display: flex;
	gap: 0.3em;
	font-weight: bold;
}
.comment-author-wrap {
	display: flex;
	align-items: center;
	gap: 0.5em;
}
.comment-author-wrap .avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}
.comment-author-name {
	font-size: 1em;
	font-weight: bold;
}
.comment-metadata {
	font-size: 1em;
	margin: 0;
}
.comment-content {
	margin: 0;
}
#comments .comment-content p {
	margin: 0 !important;
	margin-block-start: 0 !important;
	margin-block-end: 0 !important;
}
#comments .reply {
	margin: 0 0 1em 0 !important;
	margin-block-start: 0 !important;
	margin-block-end: 1em !important;
}

.comment-form {
	background-color: #f9f9f9;
	padding: 20px;
	border-radius: 8px;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
	width: 100%;
	padding: 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	margin-bottom: 10px;
}
.comment-form input[type="submit"] {
	background: #223138;
	color: #fff;
	padding: 0.6em 0.9em;
	font-size: 1em;
	line-height: 1.5;
	border: none;
	border-radius: 10px;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	width: auto;
}
.form-submit {
	text-align: left;
}


/* ==========================================
   その他
   ========================================== */

.share-btn-container {
	list-style: none;
	padding-left: 0;
}
.place-address { margin-bottom: 0; }
.place-info { margin-top: 0; }
.gmap-wrap iframe {
	width: 100% !important;
	height: 400px !important;
}
@media screen and (max-width: 768px) {
	.stripe-button-wrapper {
		text-align: center;
		max-width: 100%;
	}
	stripe-buy-button {
		display: inline-block;
		max-width: 100%;
	}
}

/* === プロフィール画像 =========================== */
.profile-image-area {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5em;
  margin-bottom: 2em;
}
.profile-image-wrap {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: visible;
  background: #e0e0e0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.profile-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.profile-image-placeholder {
  font-size: 3em;
  color: #aaa;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: #e0e0e0;
}
/* アイコンボタン（正円） */
.profile-icon-btn {
  position: absolute;
  width: 1.8em;
  height: 1.8em;
  border-radius: 50%;
  background: #111;
  color: #fff;
  border: 1.5px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1em;
  line-height: 1;
  padding: 0;
  box-sizing: border-box;
  transition: background .2s;
  transform: translateZ(0);
  -webkit-font-smoothing: antialiased;
}
.profile-icon-btn:hover {
  background: #e87722;
}
.profile-icon-btn--upload {
  bottom: -4px;
  right: -4px;
}
.profile-icon-btn--add {
  bottom: -4px;
  right: 50%;
  transform: translateX(50%) translateZ(0);
}
.profile-icon-btn--delete {
  bottom: -4px;
  left: -4px;
}
.profile-icon-camera,
.profile-icon-trash,
.profile-icon-plus {
  font-style: normal;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.profile-icon-camera::before {
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  content: '\f363';
  font-size: .7em;
}
.profile-icon-trash::before {
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  content: '\f00d';
  font-size: .9em;
}
.profile-icon-plus::before {
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  content: '\2b';
  font-size: 1em;
}
/* モーダルキャンセルボタン */
.profile-btn--cancel {
  display: inline-block;
  background: #999;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: .45em 1.2em;
  font-size: 1em;
  cursor: pointer;
}
/* トリミングモーダル */
.crop-modal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.7);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.crop-modal-inner {
  background: #fff;
  border-radius: 10px;
  padding: 1.5em;
  width: min(90vw, 420px);
}
.crop-modal-body {
  max-height: 60vh;
  overflow: hidden;
  margin-bottom: 1em;
}
.crop-modal-body img {
  max-width: 100%;
  display: block;
}
.crop-modal-footer {
  display: flex;
  gap: 1em;
  justify-content: center;
}

/* === 会員一覧 =========================== */
.member-card-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 999px) and (min-width: 768px) {
  .member-card-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .member-card-grid { grid-template-columns: 1fr; }
}
.member-card {
  border: 1px solid #d3d3d3;
  border-radius: 6px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}
.member-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.member-card > a {
  display: flex;
  align-items: center;
  padding: 10px;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  flex: 1;
}
.member-card-avatar {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  background: #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: center;
}
.member-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.member-card-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6em;
  color: #aaa;
}
.member-card-body {
  flex: 1;
  min-width: 0;
}
.member-card-name {
  font-weight: bold;
  font-size: 1em;
}
.member-card-works-count {
  font-size: 0.85em;
  color: #666;
  margin-top: 4px;
}
.member-works-back-nav {
  display: flex;
  justify-content: center;
  margin-top: 30px;
  margin-bottom: 30px;
}
.member-works-back-nav a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  gap: .5em;
}

/* 渋谷キッズギャラリーバナー */
.gallery-banner-wrap {
  text-align: center;
  margin-bottom: 60px;
}
.gallery-banner-wrap img {
  width: 300px;
  height: auto;
}
@media (max-width: 768px) {
  .gallery-banner-wrap img {
    width: 70%;
  }
}

/* ----- SP用 作品画像スクロール固定バー -------------------- */
#works-sticky-bar {
	display: none;
}
@media screen and (max-width: 768px) {
	#works-sticky-bar {
		display: flex;
		align-items: center;
		justify-content: center;
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100px;
		background: #fff;
		z-index: 1000;
		box-shadow: 0 2px 6px rgba(0,0,0,.12);
		transform: translateY(-100%);
		transition: transform .25s ease;
	}
	#works-sticky-bar.is-visible {
		transform: translateY(0);
	}
	#works-sticky-bar img {
		height: 80px;
		width: auto;
		max-width: 90%;
		object-fit: contain;
	}
}

/* ----- 404ページ -------------------- */
.error-404-wrap {
	text-align: center;
	padding: 60px 0 80px;
}
.error-404-number {
	font-size: 8em;
	font-weight: bold;
	line-height: 1;
	color: #fabe00;
	letter-spacing: -0.02em;
}
.error-404-title {
	font-size: 1.4em;
	margin: 0.3em 0 0.8em;
}
.error-404-message {
	color: #666;
	line-height: 1.8;
	margin-bottom: 2em;
}
.error-404-wrap .member-works-back-nav {
	justify-content: center;
}
