/**
 * 占い師検索データベース フロントスタイル。
 *
 * すべてのクラスに seec-psychic- 接頭辞を付け、テーマCSSとの衝突を避ける。
 * 変数を上書きすれば配色だけ差し替えられる。
 */

.seec-psychic-search,
.seec-psychic-modal,
.seec-psychic-detail {
	--seec-psychic-accent: #6b4ea8;
	--seec-psychic-accent-dark: #543c86;
	--seec-psychic-cta: #d6446f;
	--seec-psychic-border: #e3e0ea;
	--seec-psychic-bg: #faf9fc;
	--seec-psychic-text: #2f2b39;
	--seec-psychic-muted: #6d6880;
	--seec-psychic-radius: 10px;

	color: var(--seec-psychic-text);
	font-size: 15px;
	line-height: 1.7;
}

.seec-psychic-search {
	position: relative;
}

/* テーマの ul/ol 余白・箇条書きを打ち消す。 */
.seec-psychic-search ul,
.seec-psychic-search ol,
.seec-psychic-search li,
.seec-psychic-modal ul,
.seec-psychic-modal ol,
.seec-psychic-modal li {
	margin: 0 !important;
	padding: 0 !important;
	padding-inline-start: 0 !important;
	list-style: none !important;
	list-style-type: none !important;
}

.seec-psychic-search li::marker,
.seec-psychic-search li::before,
.seec-psychic-modal li::marker,
.seec-psychic-modal li::before {
	content: none !important;
	display: none !important;
}

.seec-psychic-search *,
.seec-psychic-search *::before,
.seec-psychic-search *::after,
.seec-psychic-modal *,
.seec-psychic-modal *::before,
.seec-psychic-modal *::after {
	box-sizing: border-box;
}

/* モーダル表示中は背面をスクロールさせない。 */
.seec-psychic-scroll-lock,
.seec-psychic-scroll-lock body {
	overflow: hidden;
}

.seec-psychic-search--loading {
	opacity: 0.55;
	transition: opacity 0.2s ease;
}

/* ---------------- 検索フォーム ---------------- */

.seec-psychic-filter {
	margin: 0 0 24px;
	padding: 16px;
	background: var(--seec-psychic-bg);
	border: 1px solid var(--seec-psychic-border);
	border-radius: var(--seec-psychic-radius);
}

.seec-psychic-filter__rows {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
}

.seec-psychic-filter__field {
	margin: 0;
}

.seec-psychic-filter__label {
	display: block;
	margin-bottom: 4px;
	font-size: 13px;
	font-weight: 700;
	color: var(--seec-psychic-muted);
}

.seec-psychic-filter__input,
.seec-psychic-filter__select {
	width: 100%;
	min-height: 44px;
	padding: 8px 10px;
	background: #fff;
	border: 1px solid var(--seec-psychic-border);
	border-radius: 6px;
	font-size: 15px;
	color: inherit;
}

.seec-psychic-filter__group {
	margin-top: 12px;
	background: #fff;
	border: 1px solid var(--seec-psychic-border);
	border-radius: 6px;
}

.seec-psychic-filter__summary {
	padding: 12px 14px;
	font-size: 14px;
	font-weight: 700;
	cursor: pointer;
	list-style: none;
}

.seec-psychic-filter__summary::-webkit-details-marker {
	display: none;
}

.seec-psychic-filter__summary::after {
	content: "＋";
	float: right;
	color: var(--seec-psychic-accent);
	font-weight: 700;
}

.seec-psychic-filter__group[open] .seec-psychic-filter__summary::after {
	content: "−";
}

.seec-psychic-filter__badge {
	display: inline-block;
	min-width: 20px;
	margin-left: 6px;
	padding: 0 6px;
	background: var(--seec-psychic-accent);
	border-radius: 10px;
	color: #fff;
	font-size: 12px;
	text-align: center;
}

.seec-psychic-filter__options {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 4px 10px;
	max-height: 260px;
	padding: 0 14px 14px;
	overflow-y: auto;
}

.seec-psychic-filter__option {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 6px 2px;
	font-size: 14px;
	cursor: pointer;
}

.seec-psychic-filter__option input {
	width: 18px;
	height: 18px;
	margin: 0;
	flex: 0 0 auto;
}

.seec-psychic-filter__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-top: 16px;
}

.seec-psychic-filter__submit {
	flex: 1 1 auto;
	min-height: 48px;
	padding: 12px 20px;
	background: var(--seec-psychic-accent);
	border: none;
	border-radius: 999px;
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
}

.seec-psychic-filter__submit:hover,
.seec-psychic-filter__submit:focus {
	background: var(--seec-psychic-accent-dark);
}

.seec-psychic-filter__reset {
	color: var(--seec-psychic-muted);
	font-size: 13px;
	text-decoration: underline;
}

/* ---------------- 結果ヘッダー ---------------- */

.seec-psychic-results__head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 12px;
}

.seec-psychic-results__count {
	margin: 0;
	font-size: 14px;
}

.seec-psychic-results__count strong {
	font-size: 18px;
	color: var(--seec-psychic-accent);
}

.seec-psychic-results__range {
	color: var(--seec-psychic-muted);
	font-size: 12px;
}

.seec-psychic-sort {
	display: flex;
	align-items: center;
	gap: 6px;
}

.seec-psychic-sort__label {
	font-size: 13px;
	color: var(--seec-psychic-muted);
}

.seec-psychic-sort__select {
	min-height: 40px;
	padding: 6px 8px;
	background: #fff;
	border: 1px solid var(--seec-psychic-border);
	border-radius: 6px;
	font-size: 14px;
}

.seec-psychic-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 16px;
	padding: 0;
	list-style: none;
}

.seec-psychic-chips__item {
	margin: 0;
}

.seec-psychic-chips__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	background: #fff;
	border: 1px solid var(--seec-psychic-accent);
	border-radius: 999px;
	color: var(--seec-psychic-accent);
	font-size: 13px;
	text-decoration: none;
}

.seec-psychic-chips__remove {
	font-weight: 700;
}

/* ---------------- カード ---------------- */

.seec-psychic-list {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.seec-psychic-card {
	margin: 0;
	padding: 0;
	list-style: none;
}

.seec-psychic-card__inner {
	display: flex;
	flex-direction: column;
	height: 100%;
	padding: 12px;
	background: #faf7f4;
	border: 1px solid #efe7e0;
	border-radius: 14px;
}

.seec-psychic-card__site {
	display: inline-flex;
	align-items: center;
	align-self: flex-start;
	margin: 0 0 10px;
	padding: 2px 8px;
	background: #fff;
	border: 1px solid #e6ddd5;
	border-radius: 6px;
	color: #6d635c;
	font-size: 11px;
	line-height: 1.5;
}

.seec-psychic-card__body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	align-items: stretch;
	flex: 1 1 auto;
}

.seec-psychic-card__portrait {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 12px;
	width: auto;
	text-align: left;
}

.seec-psychic-card__figure {
	flex: 0 0 auto;
	margin: 0;
}

.seec-psychic-card__image {
	display: block;
	width: 72px;
	height: 72px;
	margin: 0;
	border-radius: 50%;
	object-fit: cover;
	background: #efe8e2;
}

.seec-psychic-card__image--empty {
	box-shadow: inset 0 0 0 1px #e6ddd5;
}

/* 見出しタグを使わないため、見出しに見える体裁はここで作る。 */
.seec-psychic-card__name {
	margin: 0;
	color: #2b241f;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.35;
	word-break: break-word;
}

.seec-psychic-card__name-link,
.seec-psychic-card__name-text {
	color: inherit;
	font: inherit;
	text-decoration: none;
}

.seec-psychic-card__name-link:hover,
.seec-psychic-card__name-link:focus {
	color: #e11d6a;
	text-decoration: underline;
}

.seec-psychic-card__meta {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
}

.seec-psychic-card__row {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 8px;
	align-items: flex-start;
	padding: 2px 0;
	font-size: 13px;
}

.seec-psychic-card__row--price {
	margin-top: 6px;
	padding-top: 8px;
	border-top: 1px dashed #e2d8d0;
}

.seec-psychic-card__row dt {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 5px;
	margin: 0;
	color: #7a6d64;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.5;
	white-space: nowrap;
}

.seec-psychic-card__icon {
	display: inline-flex;
	flex: 0 0 14px;
	color: #8a7266;
}

.seec-psychic-card__icon svg {
	display: block;
}

.seec-psychic-card__row dd {
	flex: 1 1 0;
	min-width: 0;
	margin: 0;
	color: #2b241f;
	line-height: 1.5;
}

.seec-psychic-card__price {
	color: #e11d6a;
	font-size: 18px;
	font-weight: 800;
	letter-spacing: 0.02em;
	line-height: 1.2;
}

.seec-psychic-card__tags,
.seec-psychic-card .seec-psychic-tags {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 4px;
}

.seec-psychic-card .seec-psychic-tag {
	display: inline-block;
	flex: 0 0 auto;
	width: auto;
	padding: 2px 7px;
	background: #fff;
	border: 1px solid #eadfd6;
	border-radius: 5px;
	color: #4a413b;
	font-size: 11px;
	line-height: 1.4;
	text-decoration: none;
	white-space: nowrap;
}

.seec-psychic-card .seec-psychic-tag:hover {
	border-color: #e11d6a;
	color: #e11d6a;
}

.seec-psychic-card .seec-psychic-tag--plain,
.seec-psychic-card .seec-psychic-tag--plain:hover {
	border-color: #eadfd6;
	color: #4a413b;
	cursor: default;
}

.seec-psychic-card__foot {
	display: flex;
	flex-wrap: nowrap;
	gap: 8px;
	margin-top: 12px;
}

.seec-psychic-card__detail,
.seec-psychic-card__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 1 1 0;
	min-height: 44px;
	padding: 10px 12px;
	border-radius: 8px;
	font-size: 13px;
	font-weight: 700;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}

.seec-psychic-card__detail {
	border: 1px solid #3d342e;
	color: #3d342e;
	background: #fff;
}

.seec-psychic-card__detail:hover,
.seec-psychic-card__detail:focus {
	background: #fff;
	border-color: #e11d6a;
	color: #e11d6a;
}

.seec-psychic-card__detail--js {
	display: none;
}

.seec-psychic-search--js .seec-psychic-card__detail--js {
	display: inline-flex;
}

.seec-psychic-card__cta {
	background: #e11d6a;
	border: 1px solid #e11d6a;
	color: #fff;
	box-shadow: 0 0 0 2px #faf7f4, 0 0 0 3px #e11d6a;
}

.seec-psychic-card__cta:hover,
.seec-psychic-card__cta:focus {
	filter: brightness(0.96);
	color: #fff;
}

.seec-psychic-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 6px;
}

.seec-psychic-tag {
	display: inline-block;
	padding: 2px 8px;
	background: var(--seec-psychic-bg);
	border: 1px solid var(--seec-psychic-border);
	border-radius: 4px;
	color: inherit;
	font-size: 12px;
	text-decoration: none;
}

.seec-psychic-tag:hover {
	border-color: var(--seec-psychic-accent);
	color: var(--seec-psychic-accent);
}

.seec-psychic-tag--plain,
.seec-psychic-tag--plain:hover {
	border-color: var(--seec-psychic-border);
	color: var(--seec-psychic-muted);
	cursor: default;
}

.seec-psychic-empty {
	margin: 24px 0;
	padding: 24px 16px;
	background: var(--seec-psychic-bg);
	border: 1px dashed var(--seec-psychic-border);
	border-radius: var(--seec-psychic-radius);
	text-align: center;
}

/* ---------------- ページネーション ---------------- */

.seec-psychic-pagination {
	margin-top: 24px;
}

.seec-psychic-pagination__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.seec-psychic-pagination__item {
	margin: 0;
}

.seec-psychic-pagination__link,
.seec-psychic-pagination__current {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	min-height: 42px;
	padding: 0 10px;
	border: 1px solid var(--seec-psychic-border);
	border-radius: 6px;
	background: #fff;
	color: inherit;
	font-size: 14px;
	text-decoration: none;
}

.seec-psychic-pagination__current {
	background: var(--seec-psychic-accent);
	border-color: var(--seec-psychic-accent);
	color: #fff;
	font-weight: 700;
}

.seec-psychic-pagination__item--dots span {
	display: inline-flex;
	align-items: center;
	min-height: 42px;
	padding: 0 4px;
	color: var(--seec-psychic-muted);
}

/* ---------------- 詳細（詳細ページ・モーダル共通） ---------------- */

.seec-psychic-detail {
	line-height: 1.8;
}

.seec-psychic-detail--single {
	max-width: 820px;
	margin: 0 auto;
	padding: 0 16px 40px;
}

.seec-psychic-detail__back {
	max-width: 820px;
	margin: 0 auto 16px;
	padding: 0 16px;
	font-size: 14px;
}

.seec-psychic-detail__site {
	margin: 0 0 4px;
	font-size: 13px;
}

.seec-psychic-detail__name {
	margin: 0 0 20px;
	color: var(--seec-psychic-text);
	font-size: 28px;
	font-weight: 700;
	line-height: 1.4;
}

.seec-psychic-detail--modal .seec-psychic-detail__name {
	margin: 0 0 12px;
	padding-right: 44px;
	font-size: 28px;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1.3;
}

.seec-psychic-detail__kana {
	margin-left: 6px;
	color: #9a94a3;
	font-size: 14px;
	font-weight: 400;
	letter-spacing: 0.04em;
}

.seec-psychic-detail__lead {
	margin: 0 0 20px;
	color: #8a8494;
	font-size: 13px;
	line-height: 1.85;
}

.seec-psychic-detail__body {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.seec-psychic-detail__figure {
	flex: 0 0 160px;
}

.seec-psychic-detail--single .seec-psychic-detail__image {
	width: 160px;
	height: 160px;
	border-radius: 12px;
	object-fit: cover;
	background: var(--seec-psychic-bg);
}

.seec-psychic-detail__meta {
	flex: 1 1 320px;
	margin: 0;
}

.seec-psychic-detail__row {
	display: flex;
	gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid #eee9ee;
}

.seec-psychic-detail__row:first-child {
	border-top: 1px solid #eee9ee;
}

.seec-psychic-detail__row dt {
	flex: 0 0 118px;
	margin: 0;
	color: #8a8494;
	font-size: 13px;
	font-weight: 400;
}

.seec-psychic-detail__row dd {
	flex: 1 1 auto;
	margin: 0;
	color: #2f2b39;
	font-size: 14px;
}

.seec-psychic-detail--modal .seec-psychic-tags {
	gap: 6px 8px;
}

.seec-psychic-detail--modal .seec-psychic-tag {
	padding: 4px 10px;
	background: #f4f1f4;
	border: 0;
	border-radius: 6px;
	color: #4a4556;
	font-size: 12px;
}

.seec-psychic-detail--modal .seec-psychic-tag:hover,
.seec-psychic-detail--modal .seec-psychic-tag--plain,
.seec-psychic-detail--modal .seec-psychic-tag--plain:hover {
	background: #f4f1f4;
	border: 0;
	color: #4a4556;
}

.seec-psychic-detail__section {
	margin-top: 32px;
}

.seec-psychic-detail__subtitle {
	margin: 0 0 8px;
	color: var(--seec-psychic-text);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.5;
}

.seec-psychic-detail__cta-wrap {
	margin: 28px 0 0;
}

.seec-psychic-detail--single .seec-psychic-detail__cta-wrap {
	text-align: center;
}

.seec-psychic-detail__cta {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	min-height: 52px;
	padding: 12px 24px;
	background: #e11d6a;
	border-radius: 10px;
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-decoration: none;
}

.seec-psychic-detail--single .seec-psychic-detail__cta {
	display: inline-flex;
	width: auto;
	min-width: 280px;
	border-radius: 999px;
}

.seec-psychic-detail__cta:hover,
.seec-psychic-detail__cta:focus {
	filter: brightness(0.96);
	color: #fff;
}

.seec-psychic-detail__cta-arrow {
	display: inline-block;
	width: 8px;
	height: 8px;
	border-right: 2px solid #fff;
	border-bottom: 2px solid #fff;
	transform: rotate(-45deg) translateY(-1px);
}

/* モーダル：左に写真、右に情報 */
.seec-psychic-detail--modal {
	display: flex;
	min-height: 0;
	background: #fff;
}

.seec-psychic-detail__media {
	flex: 0 0 38%;
	min-width: 0;
	background: #f3eef3;
}

.seec-psychic-detail--modal .seec-psychic-detail__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 0;
}

.seec-psychic-detail__panel {
	flex: 1 1 62%;
	min-width: 0;
	padding: 36px 40px 28px;
	overflow-y: auto;
	overscroll-behavior: contain;
}

/* ---------------- 詳細モーダル ---------------- */

.seec-psychic-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: flex-end;
	justify-content: center;
}

.seec-psychic-modal[hidden] {
	display: none;
}

.seec-psychic-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(24, 20, 34, 0.5);
}

.seec-psychic-modal__dialog {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 920px;
	max-height: 92vh;
	padding: 0;
	overflow: hidden;
	background: #fff;
	border-radius: 16px 16px 0 0;
	box-shadow: 0 18px 50px rgba(40, 20, 40, 0.28);
	animation: seec-psychic-modal-in 0.2s ease-out;
}

.seec-psychic-modal__dialog:focus {
	outline: none;
}

.seec-psychic-modal__close {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	background: #fff;
	border: 1px solid #eadfe6;
	border-radius: 10px;
	color: #8a8494;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.seec-psychic-modal__close:hover,
.seec-psychic-modal__close:focus {
	color: #2f2b39;
	border-color: #e11d6a;
}

.seec-psychic-modal__content {
	min-height: 0;
	max-height: 92vh;
}

.seec-psychic-modal__message {
	margin: 48px 24px;
	color: var(--seec-psychic-muted);
	text-align: center;
}

@keyframes seec-psychic-modal-in {
	from {
		opacity: 0;
		transform: translateY(16px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.seec-psychic-modal__dialog {
		animation: none;
	}
}

/* ---------------- レスポンシブ ---------------- */

@media screen and (min-width: 600px) {
	.seec-psychic-filter__rows {
		grid-template-columns: repeat(2, 1fr);
	}

	.seec-psychic-filter__field--keyword {
		grid-column: 1 / -1;
	}

	.seec-psychic-filter__submit {
		flex: 0 0 auto;
		min-width: 260px;
	}

	.seec-psychic-list {
		gap: 16px;
	}

	.seec-psychic-card__inner {
		padding: 16px 16px 14px;
	}

	.seec-psychic-card__body {
		flex-direction: row;
		align-items: flex-start;
		gap: 14px;
	}

	.seec-psychic-card__portrait {
		flex-direction: column;
		flex: 0 0 96px;
		width: 96px;
		text-align: center;
	}

	.seec-psychic-card__figure {
		margin: 0 auto 8px;
	}

	.seec-psychic-card__image {
		width: 96px;
		height: 96px;
		margin: 0 auto;
	}

	.seec-psychic-card__name {
		font-size: 17px;
	}

	.seec-psychic-card__price {
		font-size: 20px;
	}
}

@media screen and (max-width: 781px) {
	.seec-psychic-detail--modal {
		flex-direction: column;
		max-height: 92vh;
	}

	.seec-psychic-detail__media {
		flex: 0 0 auto;
		height: 220px;
	}

	.seec-psychic-detail__panel {
		padding: 22px 20px 24px;
	}

	.seec-psychic-detail--modal .seec-psychic-detail__name {
		font-size: 24px;
		padding-right: 40px;
	}
}

@media screen and (min-width: 782px) {
	.seec-psychic-list {
		grid-template-columns: repeat(2, 1fr);
	}

	.seec-psychic-card__portrait {
		flex: 0 0 104px;
		width: 104px;
	}

	.seec-psychic-card__image {
		width: 104px;
		height: 104px;
	}

	.seec-psychic-modal {
		align-items: center;
		padding: 24px 16px;
	}

	.seec-psychic-modal__dialog {
		max-height: 86vh;
		border-radius: 16px;
	}

	.seec-psychic-modal__content,
	.seec-psychic-detail--modal {
		height: min(620px, 86vh);
	}

	.seec-psychic-detail--modal {
		align-items: stretch;
	}

	.seec-psychic-modal__close {
		top: 16px;
		right: 16px;
	}
}
