body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans JP", sans-serif;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 360px;
  text-align: center;
}

h2 {
  margin-bottom: 20px;
  font-size: 20px;
  font-weight: 700;
  color: #111;
}

input {
  width: 100%;
  padding: 12px;
  margin: 8px 0;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  box-sizing: border-box;
}

button {
  width: 100%;
  padding: 12px;
  margin-top: 12px;
  border: none;
  border-radius: 8px;
  background: #0ea5e9;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  box-sizing: border-box;
}

button:hover { background: #0284c7; }

.link {
  margin-top: 16px;
  font-size: 14px;
}

.link a {
  color: #0ea5e9;
  text-decoration: none;
  font-weight: 600;
}

.link a:hover { text-decoration: underline; }

/* 赤ちゃん一覧カード */
.baby-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.baby-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 10px 14px;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
}

.baby-card:hover {
  background: #f0f9ff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* 追加ボタン */
.add-baby-btn {
  background: #0ea5e9;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 10px;
}
.add-baby-btn:hover {
  background: #0284c7;
}


.auto-login {
  margin: 12px 0;
  font-size: 14px;
  display: flex;
  justify-content: center;   /* これで中央寄せ */
  align-items: center;
}

.auto-login label {
  display: inline-flex;      /* 横並びを安定させる */
  align-items: center;
  gap: 6px;                  /* チェックと文字の間隔 */
  white-space: nowrap;       /* 改行させない */
}

.dob-row{ margin:10px 0 8px; }
.dob-label{ display:block; font-size:14px; color:#334155; margin-bottom:6px; }
.dob-grid{
  display:grid; grid-template-columns: 1fr 1fr 1fr; gap:8px;
}
.dob-grid select{
  width:100%; padding:10px 12px; border:1px solid #e5e7eb; border-radius:10px;
  background:#fff; font-size:15px;
}
@media (max-width: 480px){
  .dob-grid{ gap:6px; }
  .dob-grid select{ padding:9px 10px; font-size:14px; }
}