/* Owner Login Modal Styles */
.owner-login-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 999998;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.owner-login-modal__overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(2px);
}

.owner-login-modal__content {
	position: relative;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 90%;
	max-width: 450px;
	max-height: 90vh;
	background-color: #ffffff;
	border-radius: 8px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	z-index: 1;
}

.owner-login-modal__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 24px;
	border-bottom: 1px solid #e0e0e0;
	background: var(--color_htag);
}

.owner-login-modal__title {
	margin: 0;
	font-size: 24px;
	font-weight: 600;
	color: white;
}

.owner-login-modal__close {
	background: none;
	border: none;
	font-size: 32px;
	line-height: 1;
	color: white;
	cursor: pointer;
	padding: 0;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.2s ease;
}

.owner-login-modal__close:hover {
	color: #000;
}

.owner-login-form {
	padding: 24px;
	overflow-y: auto;
	flex: 1;
}

.owner-login-form__error {
	padding: 12px 16px;
	margin-bottom: 16px;
	background-color: #fee;
	color: #c33;
	border: 1px solid #fcc;
	border-radius: 4px;
	font-size: 14px;
}

.owner-login-form__field {
	margin-bottom: 20px;
}

.owner-login-form__label {
	display: block;
	margin-bottom: 8px;
	font-size: 14px;
	font-weight: 500;
	color: #333;
}

.owner-login-form__label .required {
	color: #e74c3c;
	margin-left: 4px;
}

.owner-login-form__input {
	width: 100%;
	padding: 12px 16px;
	font-size: 16px;
	border: 1px solid #ddd;
	border-radius: 4px;
	box-sizing: border-box;
	color: #000;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	background-color: #fff;
}

.owner-login-form__input:focus {
	outline: none;
	border-color: #0073aa;
	box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

/* パスワード表示切替 */
.owner-login-form__password-wrap {
	position: relative;
	display: block;
}

.owner-login-form__password-wrap .owner-login-form__input {
	padding-right: 48px;
}

.owner-login-form__password-toggle {
	position: absolute;
	top: 50%;
	right: 8px;
	transform: translateY(-50%);
	width: 36px;
	height: 36px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: none;
	border: none;
	cursor: pointer;
	font-size: 1.25rem;
	line-height: 1;
	color: #666;
	transition: color 0.2s ease;
	border-radius: 4px;
}

.owner-login-form__password-toggle:hover {
	color: #333;
}

.owner-login-form__password-toggle:focus {
	outline: none;
	color: #0073aa;
}

.owner-login-form__actions {
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid #e0e0e0;
}

.owner-login-form__additional-actions {
	margin-top: 16px;
	display: flex;
	gap: 12px;
	justify-content: center;
	align-items: center;
}

.owner-login-form__button {
	padding: 10px 20px;
	font-size: 14px;
	font-weight: 600;
	border: 1px solid #ddd;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.2s ease;
	background-color: #fff;
	color: #333;
}

.owner-login-form__button:hover {
	background-color: #f5f5f5;
	border-color: #bbb;
}

.owner-login-form__button--secondary {
	background-color: #f8f9fa;
}

.owner-login-form__submit {
	width: 100%;
	padding: 14px 24px;
	font-size: 16px;
	font-weight: 600;
	color: #fff;
	background-color: #0073aa;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.1s ease;
}

.owner-login-form__submit:hover:not(:disabled) {
	background-color: #005a87;
}

.owner-login-form__submit:active:not(:disabled) {
	transform: scale(0.98);
}

.owner-login-form__submit:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.owner-login-form__submit:focus {
	outline: none;
	box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.3);
}

/* Responsive Design */
@media (max-width: 600px) {
	.owner-login-modal__content {
		width: 95%;
		max-height: 95vh;
	}
	
	.owner-login-modal__header {
		padding: 16px 20px;
	}
	
	.owner-login-modal__title {
		font-size: 20px;
	}
	
	.owner-login-form {
		padding: 20px;
	}
	
	.owner-login-form__input {
		font-size: 16px; /* Prevents zoom on iOS */
	}
}

/* Animation for modal appearance */
@keyframes modalFadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes modalSlideUp {
	from {
		opacity: 0;
		transform: translate(-50%, -45%);
	}
	to {
		opacity: 1;
		transform: translate(-50%, -50%);
	}
}

.owner-login-modal__overlay {
	animation: modalFadeIn 0.3s ease;
}

.owner-login-modal__content {
	animation: modalSlideUp 0.3s ease;
}

/* Registration Message Modal Styles */
.registration-message-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 999999;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.registration-message-modal__overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(2px);
	animation: modalFadeIn 0.3s ease;
}

.registration-message-modal__content {
	position: relative;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 90%;
	max-width: 500px;
	background-color: #ffffff;
	border-radius: 8px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
	overflow: hidden;
	z-index: 1;
	animation: modalSlideUp 0.3s ease;
}

.registration-message-modal__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px 24px;
	border-bottom: 1px solid #e0e0e0;
	background-color: #fff3cd;
}

.registration-message-modal__title {
	margin: 0;
	font-size: 20px;
	font-weight: 600;
	color: #856404;
}

.registration-message-modal__close {
	background: none;
	border: none;
	font-size: 32px;
	line-height: 1;
	color: #666;
	cursor: pointer;
	padding: 0;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.2s ease;
}

.registration-message-modal__close:hover {
	color: #000;
}

.registration-message-modal__body {
	padding: 24px;
}

.registration-message-modal__message {
	margin: 0;
	font-size: 16px;
	line-height: 1.6;
	color: #333;
	text-align: center;
}

.registration-message-modal__actions {
	display: flex;
	gap: 12px;
	padding: 20px 24px;
	border-top: 1px solid #e0e0e0;
	background-color: #f8f9fa;
}

.registration-message-modal__button {
	flex: 1;
	padding: 12px 24px;
	font-size: 16px;
	font-weight: 600;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.registration-message-modal__button--primary {
	background-color: #0073aa;
	color: #fff;
}

.registration-message-modal__button--primary:hover {
	background-color: #005a87;
}

.registration-message-modal__button--secondary {
	background-color: #fff;
	color: #333;
	border: 1px solid #ddd;
}

.registration-message-modal__button--secondary:hover {
	background-color: #f5f5f5;
}

@media (max-width: 600px) {
	.registration-message-modal__content {
		width: 95%;
	}
	
	.registration-message-modal__actions {
		flex-direction: column;
	}
	
	.registration-message-modal__button {
		width: 100%;
	}
}

/* Owner auth bar (login status / logout / Register・Login 導線) */
.nowes-owner-auth-bar {
	margin-bottom: 24px;
	padding: 14px 20px;
	background: #f0f4f8;
	border-radius: 8px;
	border: 1px solid #e0e6ed;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ログイン時: 画面上部右に固定 */
.nowes-owner-auth-bar--fixed-top-right {
	position: fixed;
	top: 16px;
	right: 16px;
	z-index: 999997;
	margin-bottom: 0;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}

.nowes-owner-auth-bar__logged-in,
.nowes-owner-auth-bar__logged-out {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.nowes-owner-auth-bar__status {
	font-size: 15px;
	font-weight: 500;
	color: #333;
}

.nowes-owner-auth-bar__logout {
	padding: 8px 16px;
	font-size: 14px;
	color: #fff;
	background: #555;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: background 0.2s ease;
}

.nowes-owner-auth-bar__logout:hover {
	background: #333;
}

.nowes-owner-auth-bar__login,
.nowes-owner-auth-bar__register {
	padding: 8px 16px;
	font-size: 14px;
	color: #0073aa;
	background: transparent;
	border: 1px solid #0073aa;
	border-radius: 4px;
	cursor: pointer;
	transition: all 0.2s ease;
}

.nowes-owner-auth-bar__login:hover,
.nowes-owner-auth-bar__register:hover {
	background: #0073aa;
	color: #fff;
}

.nowes-owner-auth-bar__divider {
	color: #999;
	font-size: 14px;
}

/* Login form: 30日間保持 checkbox */
.owner-login-form__field--checkbox {
	margin-bottom: 16px;
}

.owner-login-form__checkbox-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #555;
	cursor: pointer;
}

.owner-login-form__checkbox {
	width: 18px;
	height: 18px;
}

.owner-login-form__additional-actions .owner-login-form__lead {
	display: inline-block;
	font-size: 14px;
	color: #666;
	margin-right: 8px;
}

/* Nav: two separate items when logged in (ログアウト | 〇〇様 ログイン中) */
.nowes-owner-nav-split {
	display: inline-flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0em;
	font-size: 0.9em;
}
.nowes-owner-nav-split .nowes-nav-logout,
.nowes-owner-nav-split .nowes-nav-mypage {
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
}
.nowes-owner-nav-split .nowes-nav-logout,
a.nowes-owner-logout-link.nowes-nav-logout {
	padding-right: 0 !important;
}
.nowes-owner-nav-split .nowes-nav-mypage,
a.nowes-nav-mypage {
	padding-left: 0 !important;
}
.nowes-owner-nav-split .nowes-nav-sep {
	opacity: 0.7;
	user-select: none;
	white-space: pre;
}

/* 店舗プロフィール未入力メッセージ */
.nowes-store-profile-empty-msg {
	margin: 0 0 1em;
	padding: 12px 14px;
	background: #fff8e6;
	border: 1px solid #e6d9b8;
	border-radius: 6px;
	color: #7a6a3a;
	font-size: 0.95rem;
}

/* 店舗プロフィール編集モーダル */
.nowes-profile-modal {
	position: fixed;
	inset: 0;
	z-index: 999998;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}
.nowes-profile-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
}
.nowes-profile-modal__content {
	position: relative;
	width: 100%;
	max-width: 480px;
	/* max-height: 85vh; */
	/* overflow-y: auto; */
	/* background: #fff; */
	/* border-radius: 10px; */
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
	margin-top: 10vh;
}
.nowes-profile-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 20px;
	border-bottom: 1px solid #e0e0e0;
	background: var(--color_main);
	border-radius: 8px 8px 0px 0px;
}
.nowes-profile-modal__title {
	margin: 0;
	font-size: 1.1rem;
	font-weight: 600;
	color: white;
}
.nowes-profile-modal__close {
	background: none;
	border: none;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	width: 32px;
	height: 32px;
	color: white;
}
#create-new-post-btn:hover{
	cursor:pointer;
}
.nowes-profile-modal__form {
	padding: 20px;
	max-height: 80vh;
	overflow-y: scroll;
    background: white;
}
.nowes-profile-modal__field {
	margin-bottom: 14px;
}
.nowes-profile-modal__field label {
	display: block;
	margin-bottom: 4px;
	font-size: 0.9rem;
	font-weight: 500;
	color: #333;
}
.nowes-profile-modal__form .required {
	color: #c00;
}
.nowes-profile-modal__field input,
.nowes-profile-modal__field select,
.nowes-profile-modal__field textarea {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 4px;
	font-size: 0.95rem;
	box-sizing: border-box;
}
.nowes-profile-modal__field--course-price .nowes-course-price-row {
	display: flex;
	gap: 12px;
	align-items: center;
}
.nowes-profile-modal__field--course-price .nowes-course-price-row select {
	flex: 1;
	min-width: 0;
}
.nowes-profile-modal__field select.nowes-profile-time-select {
	appearance: none;
	-moz-appearance: none;
	-webkit-appearance: none;
	border: 1px solid #ccc !important;
	border-radius: 4px;
	background-color: #fff;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
	padding-right: 32px;
	cursor: pointer;
}
.nowes-profile-modal__field textarea {
	resize: vertical;
	min-height: 80px;
}
.nowes-profile-modal__actions {
	display: flex;
	gap: 10px;
	justify-content: flex-end;
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px solid #eee;
}
.nowes-profile-modal__cancel,
.nowes-profile-modal__submit {
	padding: 10px 20px;
	border-radius: 6px;
	font-size: 0.95rem;
	cursor: pointer;
}
.nowes-profile-modal__cancel {
	background: #f0f0f0;
	border: 1px solid #ccc;
	color: #333;
}
.nowes-profile-modal__submit {
	background: rgba(3, 18, 34, 0.9);
	border: none;
	color: #fff;
}

/* Terapist attribute multi-select (checkboxes) */
.terapist-attribute-options {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 4px 4px;
	margin-top: 8px;
}
.terapist-attribute-option {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	cursor: pointer;
}
.terapist-attribute-option input.terapist-attribute-checkbox {
	width: 12px;
	height: 12px;
	flex-shrink: 0;
	cursor: pointer;
}

/* 在籍セラピスト（抜粋）: row layout so all items look the same; only 3 visible until "show all" */
#nowes-store-therapist-section .nowes-store-therapist-mini-item {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 56px;
}
#nowes-store-therapist-section .nowes-store-therapist-mini-item .nowes-store-post-actions {
	margin-left: auto;
}
#nowes-store-therapist-section .nowes-store-therapist-mini-list .nowes-store-therapist-mini-item:nth-child(n+4) {
	display: none;
}
#nowes-store-therapist-section .nowes-store-therapist-mini-list.nowes-therapist-mini-list-expanded .nowes-store-therapist-mini-item:nth-child(n+4) {
	display: flex;
}
#nowes-store-therapist-section .nowes-store-therapist-mini-list {
	max-height: 200px;
	overflow-y: auto;
	transition: max-height 0.25s ease;
	scrollbar-width: none;
	-ms-overflow-style: none;
}
#nowes-store-therapist-section .nowes-store-therapist-mini-list::-webkit-scrollbar {
	display: none;
}
#nowes-store-therapist-section .nowes-store-therapist-mini-list.nowes-therapist-mini-list-expanded {
	max-height: 200px !important;
	overflow-y: auto;
}

