/* ===== Notices アーカイブ一覧 ===== */

.notices-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .notices-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.notices-item {
  padding: 20px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  background: #fff;
  transition: box-shadow 0.2s ease;
}

.notices-title a {
  color: #1176d4;
  font-weight: 600;
  font-size: 18px;
  text-decoration: none;
}

.notices-title a:hover {
  text-decoration: underline;
}

.notices-date {
  margin-top: 6px;
  font-size: 14px;
  color: #333;
}

/* ページネーション */
.notices-pagination {
  margin-top: 40px;
  text-align: center;
}

.notices-pagination a,
.notices-pagination span {
  display: inline-block;
  padding: 4px 6px;
  margin: 0 4px;
  border: 1px solid #ddd;
  border-radius: 4px;
  text-decoration: none;
}

.notices-pagination .current {
  background: var(--color_main);
  color: #fff;
  border-color: var(--color_main);
}

/* ===============================
   CF7 ベースデザイン
   =============================== */

.cf7-form {
  max-width: 640px;
  margin: 0 auto;
}

.cf7-label {
  display: block;
  font-weight: 600;
  margin-bottom: 18px;
  font-size: 16px;
  color: #333;
}

.cf7-input,
.cf7-textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* フォーカス時 */
.cf7-input:focus,
.cf7-textarea:focus {
  border-color: var(--color_main);
  box-shadow: 0 0 0 3px rgba(0, 191, 105, 0.2);
  outline: none;
}

/* テキストエリア */
.cf7-textarea {
  height: 160px;
  resize: vertical;
}

/* 送信ボタン */
.cf7-submit-wrap {
  text-align: center;
  margin-top: 30px;
}

.cf7-submit {
  background: var(--color_main);
  color: #fff;
  padding: 12px 40px;
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

.cf7-submit:hover {
  opacity: 0.85;
}

.cf7-submit:active {
  transform: translateY(2px);
}

/* バリデーションエラー */
.wpcf7-not-valid-tip {
  color: #d00;
  font-size: 14px;
  margin-top: 4px;
}

/* 送信後メッセージ */
.wpcf7-response-output {
  padding: 12px 16px;
  margin-top: 20px;
  border-radius: 6px;
  border: 2px solid var(--color_main);
  color: var(--color_main);
}

/* ===============================
   CF7 日付入力（生年月日）
   =============================== */

/* date input を既存の cf7-input と同じ見た目に */
.cf7-date {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none; /* ブラウザのデフォルト装飾を減らす */
}

/* フォーカス時（既存と同じ） */
.cf7-date:focus {
  border-color: var(--color_main);
  box-shadow: 0 0 0 3px rgba(0, 191, 105, 0.2);
  outline: none;
}

/* placeholderの色（iOS対策含む） */
.cf7-date::placeholder {
  color: #999;
}

/* Safariのカレンダーボタンも馴染ませる */
.cf7-date::-webkit-calendar-picker-indicator {
  opacity: 0.5;
  cursor: pointer;
}

/*custom*/

.birthday-wrapper {
  position: relative;
}

.birthday-custom {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
}

.birthday-real {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

/* 生年月日（date）の最低限の統一デザイン */
/* date入力を普通のテキスト入力と同じ高さにそろえる */
.cf7-date {
  width: 100%;
  padding: 12px 14px;
  font-size: 16px;
  height: 48px;
  box-sizing: border-box;

  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;

  /* iOS Safari 特有の小さい表示を防ぐ */
  appearance: none;
  -webkit-appearance: none;
}

.wpcf7-spinner {
  display: block !important;
  margin: 24px auto;
}

/* ラベルを相対位置に */
/* ラッパー */
.cf7-date-wrap {
  position: relative;
  display: block;
}

/* スマホだけ擬似placeholderを表示 */
@media (max-width: 599px) {
  .cf7-date-wrap::before {
    content: '年 / 月 / 日';
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 14px;
    pointer-events: none;
    z-index: 2; /* ← ここ追加！ */
  }

  /* 入力ありなら非表示 */
  .cf7-date-wrap.filled::before {
    display: none;
  }
}

/* 入力欄自体の見た目 */
.cf7-date {
  width: 100%;
  padding: 12px 14px;
  height: 48px;
  font-size: 16px;
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  z-index: 1;
}

.birthday-wrap {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 18px;
}

.cf7-select {
  padding: 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fff;
  font-size: 20px;
}

.birthday-wrap p {
  display: flex;
  flex-direction: row;
  gap: 32px;
  align-items: start;
}

.day-wrap,
.month-wrap,
.year-wrap {
  position: relative;
}

.date-position {
  position: absolute;
  top: 12px;
  right: -24px;
}
