/* ヘッダーから開くお客さまログインモーダル（ログインページのフォーム雰囲気に合わせる） */
#customer-login-modal-overlay {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 100001;
	background: rgba(51, 51, 51, 0.5);
	align-items: center;
	justify-content: center;
	padding: 16px;
	box-sizing: border-box;
}

#customer-login-modal-overlay.customer-login-modal-visible {
	display: flex;
}

#customer-login-modal-box {
	background: #e8e8e8;
	border-radius: 1em;
	max-width: 440px;
	width: 100%;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
	position: relative;
	font-family: inherit;
	color: var(--fontcolor-main, #333);
	text-align: center;
	padding: 0 0 0.5rem;
	overflow: hidden;
}

#customer-login-modal-close {
	position: absolute;
	top: 10px;
	right: 12px;
	border: none;
	background: rgba(255, 255, 255, 0.65);
	border-radius: 50%;
	width: 2.25rem;
	height: 2.25rem;
	font-size: 1.35rem;
	line-height: 1;
	cursor: pointer;
	color: var(--fontcolor-main, #333);
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s ease, color 0.2s ease;
}

#customer-login-modal-close:hover {
	background: #fff;
	color: var(--maincolor-d, #ee9800);
}

/* viewDefault の h2.cpLogin に近い見出し */
#customer-login-modal-title {
	margin: 0;
	padding: 1.75rem 2.75rem 1.25rem 1.5rem;
	font-size: clamp(1.35rem, 4.2vw, 2.1rem);
	font-weight: bold;
	text-align: center;
	color: var(--fontcolor-main, #333);
	border-bottom: 1px solid #d6d6d6;
}

#customer-login-modal-form {
	padding: 1.5rem 1.75rem 2rem;
	box-sizing: border-box;
}

#customer-login-modal-message {
	min-height: 1.3em;
	margin: 0 0 12px;
	font-size: 1rem;
	font-weight: bold;
	color: red;
	text-align: center;
}

.customer-login-modal-field {
	margin-bottom: 1.1em;
	text-align: left;
}

/* ログインページ .login-label 相当 */
#customer-login-modal-box .customer-login-modal-field label {
	display: block;
	color: var(--fontcolor-main, #333);
	font-size: 1.2rem;
	margin-bottom: 0.5rem;
	text-align: left;
	font-weight: normal;
}

#customer-login-modal-box .customer-login-modal-field label .fa-regular,
#customer-login-modal-box .customer-login-modal-field label .fa-solid {
	margin-right: 0.35em;
	color: var(--fontcolor-main, #333);
	opacity: 0.9;
}

/* ログインページ .cpform-input 相当 */
#customer-login-modal-box .customer-login-modal-field input[type="text"],
#customer-login-modal-box .customer-login-modal-field input[type="email"],
#customer-login-modal-box .customer-login-modal-field input[type="password"] {
	color: var(--fontcolor-main, #333);
	font-family: Helvetica, Arial, sans-serif;
	font-weight: 500;
	font-size: 18px;
	border-radius: 5px;
	line-height: 22px;
	background: #ffffce;
	border: 2px solid var(--maincolor, #f2cb19);
	transition: all 0.3s;
	padding: 15px;
	width: 100%;
	box-sizing: border-box;
	outline: 0;
}

#customer-login-modal-box .customer-login-modal-field input:focus {
	border: 2px solid #15ca00;
}

/* ログインページ .submit 相当（2ボタン縦並び・先頭が Enter 既定） */
.customer-login-modal-actions {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	margin-top: 0.35rem;
}

.customer-login-modal-submit {
	display: inline-block;
	border-radius: 5em;
	font-size: 1.05em;
	width: 100%;
	max-width: 300px;
	text-align: center;
	cursor: pointer;
	padding: 18px 28px;
	background: #f3cf2f;
	color: #ffffff;
	line-height: 1.2;
	transition: 0.3s;
	box-shadow: none;
	border: none;
	font-weight: 900;
	margin: 0;
}

.customer-login-modal-submit:hover:not(:disabled) {
	background-color: var(--hover-color, #ffaf36);
	transition: background-color 0.5s ease;
}

.customer-login-modal-submit:disabled {
	opacity: 0.65;
	cursor: not-allowed;
}

/* .form .reminder 周りに近いフッターリンク */
#customer-login-modal-footer {
	padding-top: 2rem;
	font-size: 1.2rem;
	text-align: center;
	line-height: 1.5;
}

#customer-login-modal-footer a {
	color: var(--maincolor-link, #2ec86e);
	text-decoration: underline;
}

#customer-login-modal-footer a:hover {
	opacity: 0.85;
}

@media screen and (max-width: 480px) {
	#customer-login-modal-form {
		padding: 1.25rem 1.25rem 1.75rem;
	}
	#customer-login-modal-title {
		padding: 1.5rem 2.5rem 1rem 1rem;
	}
}

/* SP ハンバーガー内：ログイン／新規（トップの黄色・メインカラーに寄せる） */
.mobile-guest-login-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	padding: 10px 16px 0;
	border-bottom: 1px solid #eee;
	margin-bottom: 8px;
}

.mobile-login-btn {
	flex: 1;
	min-width: 100px;
	padding: 12px 14px;
	font-size: 0.95rem;
	font-weight: 700;
	cursor: pointer;
	border: none;
	border-radius: 5em;
	background: #f3cf2f;
	color: #fff;
	box-shadow: none;
	transition: background-color 0.3s ease;
}

.mobile-login-btn:hover {
	background-color: var(--hover-color, #ffaf36);
}

.mobile-regist-btn {
	flex: 1;
	min-width: 100px;
	text-align: center;
	padding: 12px 14px;
	font-size: 0.95rem;
	font-weight: 700;
	border-radius: 5em;
	border: 2px solid var(--maincolor, #f2cb19);
	color: var(--fontcolor-main, #333);
	background: #fff;
	text-decoration: none;
	box-sizing: border-box;
	transition: background 0.2s ease;
}

.mobile-regist-btn:hover {
	background: #ffffce;
}
