@charset "UTF-8";
/*
 Theme Name: SWELL CHILD
*/

/* ==================================================
 * 共通リセット（SWELL非破壊）
 * ================================================== */
details summary {
	list-style: none;
	cursor: pointer;
}
details summary::-webkit-details-marker {
	display: none;
}

/* ==================================================
 * 市区町村フィルター（タグUI）
 * ================================================== */
.city-filter-accordion {
	margin: 32px 0;
	border: 2px solid #1a2a6c;
	border-radius: 18px;
	background: #f7f7f7;
	overflow: hidden;
}

.city-filter-accordion > summary {
	padding: 18px 22px;
	font-size: 18px;
	font-weight: 700;
	position: relative;
}

.city-filter-accordion > summary::after {
	content: "＋";
	position: absolute;
	right: 22px;
	top: 50%;
	transform: translateY(-50%);
}

.city-filter-accordion[open] > summary::after {
	content: "－";
}

.city-filter {
	padding: 22px;
	background: #fff;
	border-top: 1px solid #1a2a6c;
}

.city-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 12px;
}

.city-tag {
	position: relative;
}

.city-tag input {
	position: absolute;
	inset: 0;
	opacity: 0;
}

.city-tag span {
	padding: 8px 18px;
	border-radius: 999px;
	border: 2px solid #1a2a6c;
	font-size: 14px;
	font-weight: 600;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.city-tag input:checked + span {
	background: #1a2a6c;
	color: #fff;
}

.filter-actions {
	margin-top: 20px;
	display: flex;
	gap: 16px;
}

.filter-btn {
	padding: 10px 28px;
	border-radius: 999px;
	background: #1a2a6c;
	color: #fff;
	border: none;
	font-weight: 700;
}

.filter-reset {
	font-weight: 700;
	color: #1a2a6c;
	text-decoration: underline;
}

/* ==================================================
 * 都道府県別 店舗アコーディオン
 * ================================================== */
details.swell-accordion {
	margin-bottom: 20px;
	border: 1px solid #ccc;
	border-radius: 14px;
	background: #f3f3f3;
}

details.swell-accordion > summary {
	padding: 16px 20px;
	font-weight: 700;
	position: relative;
}

details.swell-accordion > summary::after {
	content: "▼";
	position: absolute;
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
}

details.swell-accordion[open] > summary::after {
	content: "▲";
}

.swell-accordion__body {
	padding: 22px;
	background: #fff;
}

/* ==================================================
 * 店舗カード（一覧）
 * ================================================== */
.store-card {
	display: flex;
	gap: 22px;
	padding: 22px;
	border: 2px solid #1a2a6c;
	border-radius: 18px;
	background: #fff;
}

.store-card + .store-card {
	margin-top: 20px;
}

.store-card__image {
	width: 220px;
	flex-shrink: 0;
}

.store-card__image img {
	width: 100%;
	height: 100%;
	max-height: 160px;
	object-fit: cover;
	border-radius: 14px;
}

.store-card__row {
	display: grid;
	grid-template-columns: 100px 1fr;
	gap: 14px;
	margin-bottom: 12px;
}

.store-card__row .label {
	font-weight: 700;
	color: #1a2a6c;
}

.store-card__row .value {
	padding: 12px 16px;
	border: 2px solid #1a2a6c;
	border-radius: 12px;
	min-height: 52px;
	display: flex;
	align-items: center;
}

/* ==================================================
 * 店舗詳細ページ
 * ================================================== */
.store-detail-page {
	max-width: 960px;
	margin: 0 auto;
	padding: 40px 20px;
}

.store-title {
	font-size: 28px;
	font-weight: 800;
	margin-bottom: 24px;
}

.store-main-image {
	width: 100%;
	border-radius: 20px;
	margin-bottom: 32px;
}

.store-info {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.store-info-row {
	display: grid;
	grid-template-columns: 140px 1fr;
	gap: 18px;
}

.store-info-label {
	font-weight: 700;
	color: #1a2a6c;
}

.store-info-value {
	padding: 14px 18px;
	border: 2px solid #1a2a6c;
	border-radius: 14px;
	background: #fff;
	min-height: 60px;
	display: flex;
	align-items: center;
}

.store-info-time-list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

/* メッセージ枠（値が空でも高さ維持） */
.store-message-box {
	padding: 22px;
	border: 2px solid #1a2a6c;
	border-radius: 18px;
	min-height: 140px;
	background: #fff;
}

.acf-map {
	width: 100%;
	height: 360px;
	border-radius: 8px;
	overflow: hidden;
}


/* ==================================================
 * Ultimate Member：店舗管理
 * ================================================== */
.um-store-card {
	display: flex;
	gap: 24px;
	padding: 24px;
	border: 2px solid #1a2a6c;
	border-radius: 20px;
	background: #fff;
}

.um-store-image {
	width: 160px;
	height: 160px;
	border-radius: 16px;
	overflow: hidden;
	background: #f5f5f5;
}

.um-store-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.um-store-edit-btn {
	display: block;
	width: 100%;
	padding: 22px;
	text-align: center;
	background: #4a73b8;
	color: #fff;
	font-size: 20px;
	font-weight: 700;
	border-radius: 18px;
	text-decoration: none;
}

/* ==================================================
 * 店舗編集画面（タブUI & ACF）
 * ================================================== */
.store-edit-page {
	max-width: 1100px;
	margin: 0 auto;
	padding: 40px 20px;
}

.store-edit-title {
	font-size: 28px;
	font-weight: 800;
	margin-bottom: 28px;
}

/* タブ */
.store-edit-tabs {
	display: flex;
	gap: 10px;
	margin-bottom: 32px;
}

.tab-button {
	padding: 12px 32px;
	border-radius: 999px;
	border: 2px solid #ccc;
	background: #f5f5f5;
	font-weight: 700;
	cursor: pointer;
}

.tab-button.is-active {
	background: #1a2a6c;
	color: #fff;
	border-color: #1a2a6c;
}

/* パネル */
.tab-panel {
	display: none;
}

.tab-panel.is-active {
	display: block;
}

/* 2カラム */
.store-edit-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 28px 32px;
}

/* ACFフィールド微調整 */
.store-edit-page .acf-field {
	margin-bottom: 0;
}

.store-edit-page .acf-label label {
	font-weight: 700;
}

/* 送信ボタン */
.store-edit-submit {
	margin-top: 40px;
	text-align: center;
}

/* ==================================================
 * レスポンシブ
 * ================================================== */
@media (max-width: 768px) {

	.store-card,
	.um-store-card {
		flex-direction: column;
	}

	.store-card__image,
	.um-store-image {
		width: 100%;
		height: 200px;
	}

	.store-card__row,
	.store-info-row {
		grid-template-columns: 1fr;
	}

	.store-edit-grid {
		grid-template-columns: 1fr;
	}
}

/* ==================================================
 * 店舗編集画面：タブ外に表示されているフィールドを非表示
 * ================================================== */

/* すべてのACFフィールドを一旦隠す */
.store-edit-page .acf-field {
	display: none;
}

/* タブで表示させたいパネル内だけ表示 */
.store-edit-page .tab-panel.is-active .acf-field {
	display: block;
}

/* ==================================================
 * 店舗更新ポップアップ
 * ================================================== */
.store-update-popup {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.store-update-popup__bg {
	position: absolute;
	inset: 0;
	background: rgba(0,0,0,0.4);
}

.store-update-popup__box {
	position: relative;
	background: #fff;
	border-radius: 18px;
	padding: 32px 40px;
	min-width: 280px;
	text-align: center;
	box-shadow: 0 10px 30px rgba(0,0,0,0.25);
	animation: popupFade .25s ease-out;
}

.store-update-popup__box p {
	font-size: 18px;
	font-weight: 700;
	margin-bottom: 20px;
}

.store-update-popup__btn {
	padding: 10px 28px;
	border-radius: 999px;
	border: none;
	background: #1a2a6c;
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

@keyframes popupFade {
	from {
		opacity: 0;
		transform: scale(.95);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

/* ======================================
 * 店舗編集：標準の更新メッセージを非表示
 * ====================================== */

/* WordPress 標準 */
.updated,
.notice-success,
.notice.notice-success,
.notice.updated {
	display: none !important;
}

/* Ultimate Member */
.um-notice,
.um-notice.success,
.um-notice.um-success {
	display: none !important;
}

/* ACF フロントフォーム */
.acf-notice,
.acf-notice.-success {
	display: none !important;
}