@charset "UTF-8";

		/* ========================================
		Base Reset & Variables (Light & Elegant Theme)
		========================================
		*/
		:root {
			--accent-color: #eb2f5b;
			--bg-form: #ffffff;
			--bg-image-overlay: rgba(0, 0, 0, 0.2);

			--text-main: #1a1a1a;
			--text-sub: #888888;
			--border-color: #e0e0e0;
			--border-focus: #1a1a1a;

			--font-sans: 'Noto Sans JP', sans-serif;
			--font-serif: 'Shippori Mincho', serif;
			--font-eng: 'Playfair Display', serif;
		}

		* { box-sizing: border-box; margin: 0; padding: 0; }
		body, html { width: 100%; height: 100%; font-family: var(--font-sans); background-color: var(--bg-form); color: var(--text-main); }
		a { text-decoration: none; color: inherit; transition: all 0.3s; }

		/* ========================================
		Split Layout Container
		========================================
		*/
		.split-layout { display: flex; flex-direction: column; min-height: 100vh; }
		@media (min-width: 900px) { .split-layout { flex-direction: row; } }

		/* ========================================
		Left: Image Section
		========================================
		*/
		.image-section { position: relative; width: 100%; height: 35vh; overflow: hidden; }
		@media (min-width: 900px) { .image-section { width: 50%; height: 100vh; } }

		.bg-image { width: 100%; height: 100%; object-fit: cover; filter: grayscale(20%) contrast(1.1); }
		.image-overlay {
			position: absolute; top: 0; left: 0; width: 100%; height: 100%;
			background: var(--bg-image-overlay); display: flex; flex-direction: column;
			justify-content: center; align-items: center; padding: 2rem; text-align: center;
		}

		.brand-quote {
			font-family: var(--font-serif); color: #fff; font-size: clamp(1.5rem, 3vw, 2.5rem);
			font-weight: 700; line-height: 1.4; letter-spacing: 0.1em; text-shadow: 0 4px 15px rgba(0,0,0,0.3);
			opacity: 0; animation: fadeIn 1.5s ease 0.5s forwards;
		}
		@keyframes fadeIn { to { opacity: 1; } }

		/* ========================================
		Right: Form Section
		========================================
		*/
		.form-section { width: 100%; flex: 1; display: flex; justify-content: center; align-items: center; padding: 3rem 2rem; background: var(--bg-form); position: relative; }
		@media (min-width: 900px) { .form-section { width: 50%; padding: 4rem; } }

		.form-wrapper { width: 100%; max-width: 400px; opacity: 0; transform: translateY(20px); animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards; }
		@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

		/* Header Texts */
		.login-header { margin-bottom: 3rem; text-align: center; }
		.logo-text { font-family: var(--font-eng); font-size: 2rem; font-weight: 900; letter-spacing: 0.1em; margin-bottom: 0.5rem; color: var(--text-main); }
		.login-title { font-family: var(--font-eng); font-size: 0.9rem; font-weight: 700; letter-spacing: 0.2em; color: var(--text-sub); text-transform: uppercase; margin-bottom: 1.5rem; }

		.form-desc { font-size: 0.9rem; color: var(--text-sub); line-height: 1.6; text-align: justify; margin-bottom: 2.5rem; }

		/* Form Fields */
		.input-group { margin-bottom: 2.5rem; position: relative; }
		.input-label { display: block; font-family: var(--font-eng); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; color: var(--text-sub); margin-bottom: 0.5rem; text-transform: uppercase; transition: color 0.3s; }
		.input-control { width: 100%; padding: 0.8rem 0; font-family: var(--font-sans); font-size: 1.1rem; color: var(--text-main); background: transparent; border: none; border-bottom: 1px solid var(--border-color); outline: none; transition: border-color 0.3s; }
		.input-control::placeholder { color: #ccc; font-weight: 300; }
		.input-control:focus { border-bottom-color: var(--border-focus); }
		.input-control:focus + .input-border-anim { width: 100%; }
		.input-border-anim { position: absolute; bottom: 0; left: 0; width: 0; height: 1px; background-color: var(--accent-color); transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1); }

		/* Buttons & Links */
		.btn-submit { width: 100%; padding: 1.2rem; background: var(--text-main); color: #fff; font-family: var(--font-eng); font-size: 0.95rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; border: none; cursor: pointer; transition: all 0.3s ease; margin-bottom: 1.5rem; }
		.btn-submit:hover { background: var(--accent-color); box-shadow: 0 10px 20px rgba(235, 47, 91, 0.2); transform: translateY(-2px); }
		.btn-submit:active { transform: translateY(0); box-shadow: none; }

		.back-link { display: block; text-align: center; font-family: var(--font-eng); font-size: 0.85rem; color: var(--text-sub); letter-spacing: 0.1em; text-transform: uppercase; }
		.back-link:hover { color: var(--text-main); text-decoration: underline; }

		/* Footer */
		.login-footer { margin-top: 4rem; text-align: center; font-size: 0.75rem; font-family: var(--font-eng); color: #bbb; letter-spacing: 0.1em; }

		p.er   { width:100%; max-width: 600px; margin:0 auto 10px auto; padding:10px; background: #FD4D4D; color:#fff; text-align: center; font-size:90%; }

		.send_comp {
			width:150px;
			margin:0;
			padding:15px;
			font-size:100%;
			background:#FB26C6;
			color:#fff;
			border:solid 2px #fff;
			position:fixed;
			bottom:20px;
			right:15px;
			z-index:100;
			text-align: center;
		}


		/* 初期状態はエラーメッセージを隠す */
		.error_text {
			display: none;
			color: #ff4d4d;
			font-size: 0.8rem;
			margin-top: 5px;
		}

		/* 無効な入力の時のスタイル */
		.email_field.is-invalid {
			border: 2px solid #ff4d4d;
			outline: none;
		}

		/* 無効な時だけメッセージを表示 */
		.email_field.is-invalid + .error_text {
			display: block;
		}

		/* 有効な入力の時のスタイル（任意） */
		.email_field.is-valid {
			border-bottom: 1px solid #4CAF50;
		}

.hide { display: none; }
