/**
 * 新規会員登録ページ スタイル
 * Figmaデザイン仕様に基づく
 * 
 * カラーパレット：
 * - Primary Black: #2F2B29
 * - Primary Gray: #D5D5D5
 * - Background Beige: #F6F5F3
 * - Primary White: #FFFFFF
 * - Required Red: #FF1616
 * - Button Background: #444444
 * - Button Text: #FFFEFB
 */

/* ===========================
   コンテナ・レイアウト
   =========================== */

.sh-register-page {
	width: 100%;
	min-height: 100vh;
	background: #F6F5F3; /* Figma: Background/beige */
	padding: 60px 20px 80px;
	font-family: 'M PLUS 1', sans-serif;
}

.sh-register-container {
	max-width: 390px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 52px;
}

/* ===========================
   背景色の干渉防止
   =========================== */

/* Astra テーマの背景色をオーバーライド */
.page-template-page-register .site-content {
	background: #F6F5F3 !important;
}

/* WooCommerce の背景色をオーバーライド */
.sh-register-page .woocommerce,
.sh-register-page .woocommerce-page {
	background: transparent !important;
}

/* ===========================
   ヘッダー部分
   =========================== */

.sh-register-header {
	width: 100%;
	max-width: 350px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 26px;
}

.sh-register-title {
	width: 100%;
	font-family: 'M PLUS 1', sans-serif;
	font-style: normal;
	font-weight: 400;
	font-size: 24px;
	line-height: 100%;
	text-align: center;
	letter-spacing: 0.06em;
	color: #2F2B29;
	margin: 0;
	padding: 0;
}

.sh-register-notice {
	width: 100%;
	font-family: 'M PLUS 1', sans-serif;
	font-style: normal;
	font-weight: 400;
	font-size: 12px;
	line-height: 130%;
	letter-spacing: 0.02em;
	color: #2F2B29;
	margin: 0;
	text-align: left;
}

/* ===========================
   エラーメッセージ
   =========================== */

.sh-register-errors {
	width: 100%;
	max-width: 350px;
	background: #FFF4F4;
	border: 1px solid #FF1616;
	border-radius: 4px;
	padding: 16px;
	margin-bottom: 20px;
}

.sh-register-errors ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sh-register-errors li {
	font-family: 'M PLUS 1', sans-serif;
	font-size: 12px;
	line-height: 150%;
	letter-spacing: 0.02em;
	color: #FF1616;
	padding-left: 16px;
	position: relative;
}

.sh-register-errors li::before {
	content: '●';
	position: absolute;
	left: 0;
	color: #FF1616;
}

/* ===========================
   フォーム全体
   =========================== */

.sh-register-form {
	width: 100%;
	max-width: 350px;
	display: flex;
	flex-direction: column;
	gap: 52px;
}

.sh-form-fields {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* ===========================
   フォーム行・フィールド
   =========================== */

.sh-form-row {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 0;
}

.sh-form-row-split {
	display: flex;
	flex-direction: row;
	gap: 4px;
}

.sh-form-row-split .sh-form-field {
	flex: 1;
}

.sh-form-field {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.sh-form-field-postcode {
	max-width: 172px;
}

/* ===========================
   ラベル
   =========================== */

.sh-field-label {
	display: flex;
	flex-direction: row;
	align-items: flex-end;
	gap: 6px;
	min-height: 12px;
}

.sh-field-label-empty {
	visibility: hidden;
}

.sh-label-text {
	font-family: 'M PLUS 1', sans-serif;
	font-style: normal;
	font-weight: 400;
	font-size: 12px;
	line-height: 100%;
	text-align: center;
	letter-spacing: 0.08em;
	color: #444444;
}

.sh-required {
	font-family: 'M PLUS 1', sans-serif;
	font-style: normal;
	font-weight: 400;
	font-size: 10px;
	line-height: 100%;
	text-align: center;
	letter-spacing: 0.08em;
	color: #FF1616;
}

/* ===========================
   入力フィールド
   =========================== */

.sh-input,
.sh-select {
	box-sizing: border-box;
	display: flex;
	flex-direction: row;
	align-items: center;
	padding: 12px 10px 12px 14px;
	width: 100%;
	height: 40px;
	background: #FFFFFF;
	border: 1px solid #D5D5D5;
	border-radius: 4px;
	font-family: 'M PLUS 1', sans-serif;
	font-style: normal;
	font-weight: 400;
	font-size: 14px;
	line-height: 100%;
	letter-spacing: 0.08em;
	color: #2F2B29;
	transition: border-color 0.2s ease;
}

.sh-input::placeholder {
	font-family: 'M PLUS 1', sans-serif;
	font-size: 10px;
	line-height: 100%;
	letter-spacing: 0.08em;
	color: #D5D5D5;
}

.sh-input:focus,
.sh-select:focus {
	outline: none;
	border-color: #444444;
}

.sh-select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%23444444' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 36px;
}

/* ===========================
   電話番号フィールド
   =========================== */

.sh-phone-group {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 4px;
	width: 100%;
	max-width: 230px;
}

.sh-phone-input {
	flex: 1;
	width: auto;
	min-width: 0;
}

.sh-phone-separator {
	font-family: 'M PLUS 1', sans-serif;
	font-style: normal;
	font-weight: 400;
	font-size: 20px;
	line-height: 230%;
	text-align: center;
	letter-spacing: 0.08em;
	color: #D5D5D5;
}

/* ===========================
   パスワードフィールド
   =========================== */

.sh-password-wrapper {
	position: relative;
	width: 100%;
	max-width: 153px;
}

.sh-password-wrapper .sh-input {
	width: 100%;
	padding-right: 40px;
}

.sh-password-toggle {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	cursor: pointer;
	padding: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.2s ease;
}

.sh-password-toggle:hover {
	opacity: 0.7;
}

.sh-password-toggle:focus {
	outline: 2px solid #444444;
	outline-offset: 2px;
	border-radius: 2px;
}

.sh-eye-icon {
	width: 20px;
	height: 20px;
}

.sh-password-toggle.visible .sh-eye-icon path:first-child {
	opacity: 0.3;
}

/* ===========================
   補足テキスト
   =========================== */

.sh-field-note {
	font-family: 'M PLUS 1', sans-serif;
	font-style: normal;
	font-weight: 400;
	font-size: 10px;
	line-height: 100%;
	letter-spacing: 0.08em;
	color: #2F2B29;
	margin: 4px 0 0 0;
}

/* ===========================
   送信ボタン
   =========================== */

.sh-submit-button {
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	padding: 12px 0;
	width: 100%;
	height: 62px;
	background: #444444;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.1s ease;
	font-family: 'M PLUS 1', sans-serif;
	font-style: normal;
	font-weight: 500;
	font-size: 16px;
	line-height: 100%;
	text-align: center;
	letter-spacing: 0.08em;
	color: #FFFEFB;
}

.sh-submit-button:hover {
	background: #2F2B29;
}

.sh-submit-button:active {
	transform: translateY(1px);
}

.sh-submit-button:focus {
	outline: 2px solid #444444;
	outline-offset: 4px;
}

/* ===========================
   フッター（ログインリンク）
   =========================== */

.sh-register-footer {
	width: 100%;
	max-width: 350px;
	text-align: center;
	margin-top: 24px;
}

.sh-register-footer p {
	font-family: 'M PLUS 1', sans-serif;
	font-size: 12px;
	line-height: 150%;
	letter-spacing: 0.02em;
	color: #2F2B29;
	margin: 0;
}

.sh-register-footer a {
	color: #444444;
	text-decoration: underline;
	transition: opacity 0.2s ease;
}

.sh-register-footer a:hover {
	opacity: 0.7;
}

/* ===========================
   レスポンシブ対応（タブレット以上）
   =========================== */

@media (min-width: 769px) {
	.sh-register-page {
		padding: 100px 40px 120px;
	}

	.sh-register-container {
		max-width: 500px;
		gap: 60px;
	}

	.sh-register-header,
	.sh-register-form,
	.sh-register-footer,
	.sh-register-errors {
		max-width: 450px;
	}

	.sh-register-title {
		font-size: 32px;
	}

	.sh-register-notice {
		font-size: 14px;
	}

	.sh-input,
	.sh-select {
		font-size: 16px;
		height: 48px;
		padding: 14px 12px 14px 16px;
	}

	.sh-input::placeholder {
		font-size: 12px;
	}

	.sh-submit-button {
		height: 70px;
		font-size: 18px;
	}

	.sh-field-note {
		font-size: 11px;
	}

	.sh-register-errors li {
		font-size: 13px;
	}
}

/* ===========================
   アクセシビリティ
   =========================== */

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* ===========================
   印刷スタイル
   =========================== */

@media print {
	.sh-register-page {
		background: white;
	}

	.sh-submit-button,
	.sh-register-footer {
		display: none;
	}
}