/* === 全体 === */
body {
  font-family: 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif;
  background: linear-gradient(135deg, #ece9e6, #ffffff);
  margin: 0;
  min-height: 100vh;
  /* ナビの下にコンテンツが来るよう、上下余白を確保 */
  padding: 32px 16px 40px;
}

/* === ナビゲーション === */
.navbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  background-color: #ffffffcc; /* ほんのり透過で軽やかに */
  backdrop-filter: saturate(180%) blur(10px);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}
.logo {
  height: 28px; /* ← ここを調整 */
  width: auto;
}

.nav-text {
  font-size: 18px;
  font-weight: bold;
  color: #2c3e50;
}

/* === カード === */
.container {
  max-width: 420px;
  width: 100%;
  margin: 56px auto 0; /* ナビ下に余白 */
  background: white;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  text-align: center;
  animation: fadeIn 0.6s ease;
}

h2 {
  margin-bottom: 10px;
  color: #2c3e50;
  font-size: 24px;
}

p {
  font-size: 14px;
  color: #555;
  margin-bottom: 20px;
}

.success {
  color: #27ae60;
  margin-bottom: 15px;
  font-weight: bold;
}

.error {
  color: #e74c3c;
  margin-bottom: 15px;
  font-weight: bold;
}

form {
  margin-top: 15px;
}

label {
  display: block;
  text-align: left;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #2c3e50;
}

/* === 入力・ボタン === */
input[type="email"] {
  width: 100%;
  padding: 10px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-top: 5px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
  background: #fff;
}

input[type="email"]:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

button {
  width: 100%;
  padding: 12px;
  background: linear-gradient(90deg, #007bff, #0056b3);
  color: white;
  border: none;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 10px rgba(0, 123, 255, 0.2);
}

button:hover {
  background: linear-gradient(90deg, #0056b3, #003f88);
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 86, 179, 0.25);
}

/* === 戻るリンク === */
.back-link {
  margin-top: 20px;
  font-size: 14px;
}

.back-link a {
  color: #007bff;
  text-decoration: none;
  position: relative;
}

.back-link a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: #007bff;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.back-link a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* === アニメーション === */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === 小さめ端末の微調整 === */
@media (max-width: 480px) {
  .navbar { padding: 10px 16px; }
  .container { padding: 24px; }
  h2 { font-size: 22px; }
  button { font-size: 15px; }
}
