/* ==============================
   育児記録共通スタイル（record系）
   ============================== */

/* --- ページタイトル共通 --- */
.responsive-title {
  font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: #1f2937;
  margin-bottom: 1.5rem;
  position: relative;
  display: inline-block;
  padding-bottom: 0.3rem;
}

/* 下線アクセント */
.responsive-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 50px;
  background: linear-gradient(90deg, #81c784, #66bb6a);
}

.form-title {
  font-size: 24px;
  margin-bottom: 1rem;
  text-align: center;
}

/* ==============================
   indexビュー共通
   ============================== */
.responsive-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
}

.responsive-table th,
.responsive-table td {
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  padding: 8px;
  text-align: left;
  word-break: break-word;
}

.responsive-table th {
  display: none;
}

.responsive-table tr:hover {
  background-color: #f3f4f6;
  transition: background-color 0.2s ease;
  cursor: pointer;
}

.col-date { width: 25%; }
.col-item1 { width: 25%; }
.col-item2 { width: 25%; }
.col-memo { width: 25%; }

.col-item1-feed,
.col-item2-feed,
.col-item1-diaper,
.col-item2-diaper,
.col-date-sleep,
.col-item1-sleep,
.col-item2-sleep,
.col-item1-vaccination,
.col-item2-vaccination {
  width: 25%
}

.index-btn {
  display: inline-block;
  padding: 6px 12px;
  margin-right: 8px;
  background-color: #eee;
  border: 1px solid #ccc;
  border-radius: 4px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
  text-align: center;
  cursor: pointer;
}

.index-btn:hover {
  background-color: #ddd;
}

.record-edit-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 28px;
  height: 28px;
  color: #4b5563;
  text-decoration: none;
}

.record-edit-btn i {
  font-size: 14px;
}

/* ==============================
   日ごとの区切り・見出し
   ============================== */
.date-section {
  margin-bottom: 2rem;
  border-top: 2px solid #e5e7eb;
  padding-top: 1rem;
}

.date-heading {
  font-size: 18px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.date-heading::before {
  content: "🗓️";
  font-size: 18px;
  opacity: 0.8;
}

.no-record {
  color: #777;
}

/* ==============================
   new,editフォーム共通
   ============================== */
.form-container {
  max-width: 500px;
  margin: 0 auto;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
  font-size: 15px;
}

.form-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 15px;
}

.form-input:focus {
  box-shadow: none;
  outline: none;
  border-color: #6fcf97;
}

.form-actions {
  text-align: center;
  margin-top: 1.5rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

/* 通常のボタン・リンク */
.form-actions a,
.form-actions input[type="submit"] {
  padding: 8px 16px;
  font-size: 14px;
  border: none;
  border-radius: 4px;
  background: #4CAF50;
  color: #fff;
  cursor: pointer;
  text-decoration: none; /* aタグの下線を消す */
  display: inline-block;
}

.form-actions button {
  padding: 8px 16px;
  font-size: 14px;
  border: none;
  border-radius: 4px;
  background: #e53935;
  color: #fff;
  cursor: pointer;
  text-decoration: none; /* aタグの下線を消す */
  display: inline-block;
}

.form-actions a:hover,
.form-actions input[type="submit"]:hover {
  background: #45a049;
}

.form-actions button:hover {
  background: #c62828;
}

/* チェックボックス＋テキストを揃えるラベル */
.checkbox-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* カスタムチェックボックス */
.record-form-checkbox {
  width: 20px;
  height: 20px;
  border: 2px solid #ccc;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s;

}

/* チェック時 */
.record-form-checkbox:checked {
  background-color: #4caf50;
  border-color: #4caf50;
}

/* フォーカス時 */
.record-form-checkbox:focus {
  box-shadow: 0 0 0 2px #4caf50;
}

/* 必須項目 */
.required-badge {
  background-color: #f56565;
  color: #fff;
  font-size: 11px;ww
  font-weight: 500;
  padding: 1px 6px;
  border-radius: 12px;
}

/* ==============================
   育児記録共通：新規作成ボタン
   ============================== */
.record-create-btn {
  display: inline-block;
  padding: 10px 20px;
  margin-top: 20px;
  border: 1px solid #6fcf97;
  border-radius: 6px;
  background-color: #fff;
  color: #4caf50;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.record-create-btn:hover {
  background-color: #6fcf97;
  color: #fff;
}

/* クリック時の押し感 */
.record-create-btn:active {
  transform: translateY(1px);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* ==============================
   ユーザープロフィール共通
   ============================== */
.profile-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
}

.profile-image {
  margin-bottom: 1rem;
}

.profile-image img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}
