/**
 * 会員登録フローページ スタイル
 * - 仮登録完了ページ
 * - 本登録完了ページ
 * - メール認証ページ
 * 
 * Figmaデザインに基づく
 */

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

.sh-register-flow-page {
	width: 100%;
	min-height: 100vh;
	background: #F6F5F3; /* Figma: Background/beige */
	padding: 60px 20px 80px;
	font-family: 'M PLUS 1', sans-serif;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 40px;
	position: relative;
}

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

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

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

/* 新規登録ページの背景色 */
.sh-register-page {
	background: #F6F5F3 !important;
}

/* ===========================
   水平線（Vector 5）
   ※ 以前は .sh-register-flow-page::before で描画していたが
      重なり順の問題が出るため無効化
   =========================== */

.sh-register-flow-page::before {
	display: none !important;
}

/* ===========================
   ステップインジケーター
   =========================== */

.sh-step-indicator {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 24px;
	width: 100%;
	max-width: 600px;
	padding: 0 20px;
	position: relative; /* 背面線の基準にする */
	z-index: 10; /* 水平線より上 */
}

/* ステップインジケーター背面の水平線（390px・#D9D9D9・1px） */
.sh-step-indicator::before {
	content: "";
	position: absolute;
	left: 50%;
	transform: translateX(-50%);
	top: 18px;          /* 36pxのアイコンの中心に合わせる */    
        width: 390px !important;   /* 指定どおり固定 */
        max-width: none !important;/* 親の内側幅にキャップしない */
        pointer-events: none;
	height: 1px;
	background: #D9D9D9;
	z-index: 1;         /* ステップの背面 */
}

.sh-step {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	flex: 1;
	position: relative;
	z-index: 10; /* 確実に水平線より上 */
}

/* ステップ間の接続線を削除（個別線は使わない） */
.sh-step::after {
	display: none;
}

.sh-step-icon {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #D5D5D5;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.3s ease;
	position: relative;
	z-index: 10; /* 確実に最前面 */
}

.sh-step-completed .sh-step-icon {
	background: #444444;
}

.sh-step-pending .sh-step-icon {
	background: #fff; /*#D5D5D5を使用することで背景グレーのチェックマークに変更*/
        border: 1px solid #D5D5D5;
}

.sh-step-label {
	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: #2F2B29;
	position: relative;
	z-index: 10;
}

/* ===========================
   メインコンテンツ
   =========================== */

.sh-register-flow-content {
	width: 100%;
	max-width: 390px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 32px;
	position: relative;
	z-index: 15; /* ステップ線より確実に前面 */
}

.sh-register-flow-card {
	width: 100%;
	background: #FFFFFF;
	border-radius: 8px;
	padding: 40px 24px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.sh-flow-message {
	display: flex;
	flex-direction: column;
	gap: 16px;
	width: 100%;
}

.sh-flow-title {
	font-family: 'M PLUS 1', sans-serif;
	font-style: normal;
	font-weight: 500;
	font-size: 20px;
	line-height: 120%;
	text-align: center;
	letter-spacing: 0.06em;
	color: #2F2B29;
	margin: 0;
}

.sh-flow-subtitle {
	font-family: 'M PLUS 1', sans-serif;
	font-style: normal;
	font-weight: 400;
	font-size: 16px;
	line-height: 140%;
	text-align: center;
	letter-spacing: 0.04em;
	color: #2F2B29;
	margin: 0;
}

.sh-flow-text {
	font-family: 'M PLUS 1', sans-serif;
	font-style: normal;
	font-weight: 400;
	font-size: 14px;
	line-height: 150%;
	text-align: center;
	letter-spacing: 0.02em;
	color: #2F2B29;
	margin: 0;
}

.sh-flow-email {
	font-family: 'M PLUS 1', sans-serif;
	font-style: normal;
	font-weight: 400;
	font-size: 12px;
	line-height: 140%;
	text-align: center;
	letter-spacing: 0.02em;
	color: #666666;
	margin: 8px 0 0 0;
	padding: 12px;
	background: #F5F5F5;
	border-radius: 4px;
}

.sh-flow-email strong {
	font-weight: 500;
	color: #2F2B29;
}

/* ===========================
   ボタン
   =========================== */

.sh-flow-button {
	display: flex;
	flex-direction: row;
	justify-content: center;
	align-items: center;
	padding: 14px 0;
	width: 100%;
	max-width: 350px;
	height: 56px;
	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;
	text-decoration: none;
}

.sh-flow-button:hover {
	background: #2F2B29;
	color: #FFFEFB;
}

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

/* ===========================
   次のアクション
   =========================== */

.sh-register-flow-actions {
	width: 100%;
	max-width: 390px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-top: 24px;
}

.sh-flow-action-link {
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px;
	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%;
	text-align: center;
	letter-spacing: 0.06em;
	color: #2F2B29;
	text-decoration: none;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.sh-flow-action-link:hover {
	background: #F5F5F5;
	border-color: #444444;
	color: #2F2B29;
}

.sh-flow-action-link svg {
	flex-shrink: 0;
}

/* ===========================
   補足情報
   =========================== */

.sh-register-flow-note {
	width: 100%;
	max-width: 390px;
	background: #F5F5F5;
	border-radius: 8px;
	padding: 24px;
	margin-top: 16px;
}

.sh-register-flow-note h3 {
	font-family: 'M PLUS 1', sans-serif;
	font-style: normal;
	font-weight: 500;
	font-size: 14px;
	line-height: 140%;
	letter-spacing: 0.04em;
	color: #2F2B29;
	margin: 0 0 12px 0;
}

.sh-register-flow-note ul {
	margin: 0;
	padding: 0 0 0 20px;
	list-style: disc;
}

.sh-register-flow-note li {
	font-family: 'M PLUS 1', sans-serif;
	font-style: normal;
	font-weight: 400;
	font-size: 12px;
	line-height: 160%;
	letter-spacing: 0.02em;
	color: #2F2B29;
	margin-bottom: 8px;
}

.sh-register-flow-note li:last-child {
	margin-bottom: 0;
}

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

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

	/* PC幅では背面線を700pxに拡張 */
	.sh-step-indicator::before{
		width: 700px;
		top: 20px; /* 見た目に合わせ微調整 */
	}

	.sh-step-indicator {
		gap: 32px;
		max-width: 700px;
	}

	.sh-step-label {
		font-size: 12px;
	}

	.sh-register-flow-content {
		max-width: 500px;
		gap: 40px;
	}

	.sh-register-flow-card {
		padding: 60px 40px;
	}

	.sh-flow-title {
		font-size: 24px;
	}

	.sh-flow-subtitle {
		font-size: 18px;
	}

	.sh-flow-text {
		font-size: 15px;
	}

	.sh-flow-email {
		font-size: 13px;
	}

	.sh-flow-button {
		max-width: 450px;
		height: 64px;
		font-size: 18px;
	}

	.sh-register-flow-actions {
		max-width: 500px;
		flex-direction: row;
		gap: 16px;
	}

	.sh-flow-action-link {
		flex: 1;
		font-size: 15px;
	}

	.sh-register-flow-note {
		max-width: 500px;
	}

	.sh-register-flow-note h3 {
		font-size: 16px;
	}

	.sh-register-flow-note 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-flow-page {
		background: white;
	}

	.sh-flow-button,
	.sh-register-flow-actions {
		display: none;
	}
}

/* 補足情報と次アクションを利便性のため実装しているが今は使用しないので非表示 */
.sh-register-flow-page .sh-register-flow-note,
.sh-register-flow-page .sh-register-flow-actions {
  display: none !important;
}