/**
 * Contact Form 7 日報フォーム用スタイル
 * CF7 が生成する HTML（p ラップ、.wpcf7-checkbox / .wpcf7-radio の入れ子）に合わせたセレクタ
 * レイアウト・カード等は Tailwind に依存せず直接定義（watch:css で消えないように）
 */

/* ===== 日報フォームラッパー（Tailwind クラスを直接定義） ===== */
.max-w-2xl {
  max-width: 42rem;
  box-sizing: border-box;
}
.mx-auto {
  margin-left: auto;
  margin-right: auto;
}
.p-4 {
  padding: 1rem;
}
.space-y-5 > * + * {
  margin-top: 1.25rem;
}
.mt-2 {
  margin-top: 0.5rem;
}

/* セクションカード（.max-w-2xl 内で使用） */
.max-w-2xl .bg-white {
  background-color: #fff;
}
.max-w-2xl .rounded-3xl {
  border-radius: 1.5rem;
}
.max-w-2xl .p-5 {
  padding: 1.25rem;
}
.max-w-2xl .shadow-sm {
  box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05);
}
.max-w-2xl .border {
  border-width: 1px;
  border-style: solid;
}
.max-w-2xl .border-slate-200 {
  border-color: #e2e8f0;
}

/* セクション見出し行 */
.max-w-2xl .flex {
  display: flex;
}
.max-w-2xl .items-center {
  align-items: center;
}
.max-w-2xl .gap-2 {
  gap: 0.5rem;
}
.max-w-2xl .gap-3 {
  gap: 0.75rem;
}
.max-w-2xl .gap-1 {
  gap: 0.25rem;
}
.max-w-2xl .mb-5 {
  margin-bottom: 1.25rem;
}
.max-w-2xl .mb-2 {
  margin-bottom: 0.5rem;
}
.max-w-2xl .mb-3 {
  margin-bottom: 0.75rem;
}
.max-w-2xl .mb-1\.5 {
  margin-bottom: 0.375rem;
}
.max-w-2xl .ml-1 {
  margin-left: 0.25rem;
}
.max-w-2xl .text-slate-700 {
  color: #334155;
}
.max-w-2xl .border-b {
  border-bottom-width: 1px;
  border-bottom-style: solid;
}
.max-w-2xl .border-slate-100 {
  border-color: #f1f5f9;
}
.max-w-2xl .pb-3 {
  padding-bottom: 0.75rem;
}
.max-w-2xl .font-bold {
  font-weight: 700;
}
.max-w-2xl .text-base {
  font-size: 1rem;
  line-height: 1.5rem;
}
.max-w-2xl .text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}
.max-w-2xl .text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}
.max-w-2xl .text-red-500 {
  color: #ef4444;
}
.max-w-2xl .text-blue-500 {
  color: #3b82f6;
}
.max-w-2xl .text-amber-500 {
  color: #f59e0b;
}
.max-w-2xl .text-indigo-500 {
  color: #6366f1;
}
.max-w-2xl .text-emerald-500 {
  color: #10b981;
}
.max-w-2xl .text-slate-500 {
  color: #64748b;
}
.max-w-2xl .text-slate-400 {
  color: #94a3b8;
}
.max-w-2xl .font-normal {
  font-weight: 400;
}

/* ラベル・ブロック */
.max-w-2xl .block {
  display: block;
}
.max-w-2xl .text-center {
  text-align: center;
}
.max-w-2xl .space-y-5 > * + * {
  margin-top: 1.25rem;
}
.max-w-2xl .space-y-6 > * + * {
  margin-top: 1.5rem;
}
.max-w-2xl .space-y-1\.5 > * + * {
  margin-top: 0.375rem;
}
.max-w-2xl .space-y-4 > * + * {
  margin-top: 1rem;
}

/* テキスト入力・テキストエリア（Tailwind 由来のクラスを直接定義） */
.max-w-2xl .w-full {
  width: 100%;
  box-sizing: border-box;
}
.max-w-2xl input.w-full,
.max-w-2xl textarea.w-full,
.max-w-2xl select.w-full {
  padding: 1rem;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  outline: none;
  transition: all 0.15s;
  font-size: 1rem;
  line-height: 1.5rem;
}
.max-w-2xl input.w-full:focus,
.max-w-2xl textarea.w-full:focus,
.max-w-2xl select.w-full:focus {
  box-shadow: 0 0 0 4px #dbeafe;
  border-color: #3b82f6;
  background-color: #fff;
}
.max-w-2xl .outline-none {
  outline: none;
}
.max-w-2xl .focus\:ring-4:focus {
  box-shadow: 0 0 0 4px #dbeafe;
}
.max-w-2xl .focus\:ring-blue-100:focus {
  box-shadow: 0 0 0 4px #dbeafe;
}
.max-w-2xl .focus\:border-blue-500:focus {
  border-color: #3b82f6;
}
.max-w-2xl .focus\:bg-white:focus {
  background-color: #fff;
}
.max-w-2xl .focus\:ring-amber-200:focus {
  box-shadow: 0 0 0 4px #fde68a;
}
.max-w-2xl textarea.w-full {
  resize: none;
}

/* 時間セレクト用ラッパー */
.max-w-2xl .relative {
  position: relative;
}
.max-w-2xl .flex-1 {
  flex: 1 1 0%;
  min-width: 0;
}
.max-w-2xl .text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}
.max-w-2xl select.appearance-none {
  appearance: none;
  -webkit-appearance: none;
}
.max-w-2xl .absolute {
  position: absolute;
}
.max-w-2xl .right-3 {
  right: 0.75rem;
}
.max-w-2xl .right-4 {
  right: 1rem;
}
.max-w-2xl .top-1\/2 {
  top: 50%;
}
.max-w-2xl .-translate-y-1\/2 {
  transform: translateY(-50%);
}
.max-w-2xl .pointer-events-none {
  pointer-events: none;
}

/* 残業ブロック */
.max-w-2xl .bg-amber-50 {
  background-color: #fffbeb;
}
.max-w-2xl .rounded-2xl {
  border-radius: 1rem;
}
.max-w-2xl .border-amber-100 {
  border-color: #fef3c7;
}
.max-w-2xl .text-amber-700 {
  color: #b45309;
}
.max-w-2xl .border-amber-200 {
  border-color: #fde68a;
}
.max-w-2xl .rounded-xl {
  border-radius: 0.75rem;
}
.max-w-2xl .font-black {
  font-weight: 900;
}
.max-w-2xl .text-amber-900 {
  color: #78350f;
}
.max-w-2xl .p-3 {
  padding: 0.75rem;
}
.max-w-2xl .text-amber-400 {
  color: #fbbf24;
}
.max-w-2xl select:focus {
  outline: none;
}

/* 作業員・工事内容グリッド */
.max-w-2xl .grid {
  display: grid;
}
.max-w-2xl .grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}
.max-w-2xl .gap-2\.5 {
  gap: 0.625rem;
}
@media (min-width: 640px) {
  .max-w-2xl .sm\:grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .max-w-2xl .sm\:pb-10 {
    padding-bottom: 2.5rem;
  }
}

/* ボタン風（作業員・工事内容・明日の予定） */
.max-w-2xl button.p-4,
.max-w-2xl .p-4 {
  padding: 1rem;
}
.max-w-2xl .text-slate-600 {
  color: #475569;
}
.max-w-2xl .transition-all {
  transition: all 0.15s;
}
.max-w-2xl .text-left {
  text-align: left;
}
.max-w-2xl .touch-manipulation {
  touch-action: manipulation;
}
.max-w-2xl .active\:scale-95:active {
  transform: scale(0.95);
}
.max-w-2xl .hover\:border-blue-200:hover {
  border-color: #bfdbfe;
}
.max-w-2xl .hover\:border-emerald-200:hover {
  border-color: #a7f3d0;
}

/* チェックボックス風の四角 */
.max-w-2xl .flex-shrink-0 {
  flex-shrink: 0;
}
.max-w-2xl .w-5 {
  width: 1.25rem;
}
.max-w-2xl .h-5 {
  height: 1.25rem;
}
.max-w-2xl .rounded-md {
  border-radius: 0.375rem;
}
.max-w-2xl .justify-center {
  justify-content: center;
}
.max-w-2xl .border-slate-300 {
  border-color: #cbd5e1;
}
.max-w-2xl .leading-tight {
  line-height: 1.25;
}

/* 人数セレクトブロック */
.max-w-2xl .bg-blue-50 {
  background-color: #eff6ff;
}
.max-w-2xl .border-blue-100 {
  border-color: #dbeafe;
}
.max-w-2xl .mt-4 {
  margin-top: 1rem;
}
.max-w-2xl .text-blue-800 {
  color: #1e40af;
}
.max-w-2xl .border-blue-200 {
  border-color: #bfdbfe;
}
.max-w-2xl .text-blue-900 {
  color: #1e3a8a;
}
.max-w-2xl .text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}
.max-w-2xl .cursor-pointer {
  cursor: pointer;
}
.max-w-2xl .text-blue-300 {
  color: #93c5fd;
}

/* 工事その他・備考の区切り */
.max-w-2xl .mt-5 {
  margin-top: 1.25rem;
}
.max-w-2xl .pt-4 {
  padding-top: 1rem;
}
.max-w-2xl .border-t {
  border-top-width: 1px;
  border-top-style: solid;
}
.max-w-2xl .border-slate-50 {
  border-color: #f8fafc;
}
.max-w-2xl .border-slate-100 {
  border-color: #f1f5f9;
}

/* 明日の現場予定ボタン */
.max-w-2xl .py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.max-w-2xl .flex-1 {
  flex: 1 1 0%;
}
.max-w-2xl .bg-slate-800 {
  background-color: #1e293b;
}
.max-w-2xl .text-white {
  color: #fff;
}
.max-w-2xl .shadow-md {
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}
.max-w-2xl .ring-2 {
  box-shadow: 0 0 0 2px #e2e8f0;
}
.max-w-2xl .bg-slate-50 {
  background-color: #f8fafc;
}

/* 送信ボタンエリア */
.max-w-2xl .pt-6 {
  padding-top: 1.5rem;
}
.max-w-2xl .pb-20 {
  padding-bottom: 5rem;
}
.max-w-2xl .bg-blue-600 {
  background-color: #2563eb;
}
.max-w-2xl .text-white {
  color: #fff;
}
.max-w-2xl button.bg-blue-600,
.max-w-2xl .bg-blue-600 {
  padding: 1.25rem;
  border-radius: 1.5rem;
  font-weight: 900;
  font-size: 1.125rem;
  border: 0;
  cursor: pointer;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  transition: all 0.15s;
}
.max-w-2xl .shadow-xl {
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}
.max-w-2xl .shadow-blue-100 {
  box-shadow: 0 20px 25px -5px rgba(59, 130, 246, 0.15), 0 8px 10px -6px rgba(59, 130, 246, 0.1);
}
.max-w-2xl .active\:opacity-80:active {
  opacity: 0.8;
}

/* ===== CF7 の p タグ・ラッパー ===== */
.wpcf7-form section p {
  margin: 0 0 0.5rem 0;
}
.wpcf7-form .wpcf7-form-control-wrap {
  display: block;
  width: 100%;
}

/* ===== テキスト入力（size 属性を上書き） ===== */
.wpcf7-form input.nippo-input {
  width: 100% !important;
  max-width: 100%;
  padding: 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  outline: none;
  transition: all 0.15s;
  font-size: 1rem;
  line-height: 1.5rem;
  box-sizing: border-box;
}
.wpcf7-form input.nippo-input:focus {
  box-shadow: 0 0 0 4px #dbeafe;
  border-color: #3b82f6;
  background: #fff;
}
/* 報告者名（作業員名）入力欄：Safari で右寄りになる場合の中央寄せ */
/* .wpcf7-form input.nippo-input[name="workerName"] {
  text-align: center;
} */

/* ===== テキストエリア ===== */
.wpcf7-form textarea.nippo-textarea ,.wpcf7-form textarea.nippo-input{
  width: 100% !important;
  max-width: 100%;
  padding: 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  outline: none;
  transition: all 0.15s;
  font-size: 1rem;
  line-height: 1.5rem;
  resize: none;
  box-sizing: border-box;
}
.wpcf7-form textarea.nippo-textarea:focus ,.wpcf7-form textarea.nippo-input:focus {
  box-shadow: 0 0 0 4px #dbeafe;
  border-color: #3b82f6;
  background: #fff;
}

/* ===== 時間セレクト（出勤・実作業） ===== */
.wpcf7-form .nippo-time-row {
  display: flex;
  align-items: center;
  justify-content: center; /* Safari で中央寄せ */
  gap: 0.75rem;
}
.wpcf7-form .nippo-time-row > p {
  margin: 0;
  flex: 0 0 auto;
}
.wpcf7-form .nippo-time-col {
  position: relative;
  flex: 1;
  min-width: 0;
}
.wpcf7-form .nippo-time-col p {
  margin: 0;
}
.wpcf7-form .nippo-time-sep {
  font-weight: 700;
  color: #94a3b8;
}
.wpcf7-form select.nippo-select-time {
  width: 100%;
  padding: 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  text-align: center;
  text-align-last: center; /* Safari で中央寄せ */
  font-weight: 700;
  font-size: 1.125rem;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
}
.wpcf7-form select.nippo-select-time:focus {
  box-shadow: 0 0 0 4px #dbeafe;
  outline: none;
}

/* ===== 残業セレクト ===== */
.wpcf7-form select.nippo-select-overtime {
  width: 100%;
  padding: 0.75rem;
  background: #fff;
  border: 1px solid #fde68a;
  border-radius: 0.75rem;
  text-align: center;
  text-align-last: center; /* Safari で中央寄せ */
  font-weight: 900;
  color: #78350f;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
}
.wpcf7-form select.nippo-select-overtime:focus {
  box-shadow: 0 0 0 4px #fde68a;
  outline: none;
}

/* ===== 人数セレクト ===== */
.wpcf7-form select.nippo-select-staff {
  width: 100%;
  padding: 1rem;
  background: #fff;
  border: 1px solid #bfdbfe;
  border-radius: 0.75rem;
  text-align: center;
  text-align-last: center; /* Safari で中央寄せ */
  font-weight: 900;
  color: #1e3a8a;
  font-size: 1.25rem;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  box-sizing: border-box;
}
.wpcf7-form select.nippo-select-staff:focus {
  box-shadow: 0 0 0 4px #dbeafe;
  outline: none;
}

/* ===== 送信ボタン ===== */
.wpcf7-form .pt-6.pb-20 p,
.wpcf7-form .pt-6.pb-10 p {
  margin: 0;
}
.wpcf7-form input.nippo-submit {
  width: 100%;
  background: #2563eb;
  color: #fff;
  padding: 1.25rem;
  border-radius: 1.5rem;
  font-weight: 900;
  font-size: 1.125rem;
  border: 0;
  cursor: pointer;
  transition: all 0.15s;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  text-align: center;
}
.wpcf7-form input.nippo-submit:active {
  opacity: 0.8;
}

/* ===== 作業員チェックボックス（グリッドは .wpcf7-checkbox に適用） ===== */
.wpcf7-form .nippo-cf7-workers > p {
  margin: 0;
}
.wpcf7-form .nippo-cf7-workers .wpcf7-checkbox {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}
@media (min-width: 640px) {
  .wpcf7-form .nippo-cf7-workers .wpcf7-checkbox {
    grid-template-columns: repeat(3, 1fr);
  }
}
.wpcf7-form .nippo-cf7-workers .wpcf7-list-item {
  margin: 0;
}
.wpcf7-form .nippo-cf7-workers .wpcf7-list-item input[type="checkbox"] {
  display: none; /* Safari でレイアウト崩れ防止、ラベルでクリック可能 */
}
.wpcf7-form .nippo-cf7-workers .wpcf7-list-item label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  border-radius: 1rem;
  font-weight: 700;
  font-size: 0.875rem;
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.15s;
  margin: 0;
  text-align: center; /* Safari で中央寄せ */
}
.wpcf7-form .nippo-cf7-workers .wpcf7-list-item label:hover {
  border-color: #bfdbfe;
}
.wpcf7-form .nippo-cf7-workers .wpcf7-list-item label:has(:checked) {
  border-color: #3b82f6;
  background: #eff6ff;
  box-shadow: 0 0 0 2px #bfdbfe;
}

/* ===== 工事内容チェックボックス（グリッドは .wpcf7-checkbox に適用） ===== */
.wpcf7-form .nippo-cf7-worktype > p {
  margin: 0;
}
.wpcf7-form .nippo-cf7-worktype .wpcf7-checkbox {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.625rem;
}
@media (min-width: 640px) {
  .wpcf7-form .nippo-cf7-worktype .wpcf7-checkbox {
    grid-template-columns: repeat(3, 1fr);
  }
}
.wpcf7-form .nippo-cf7-worktype .wpcf7-list-item {
  margin: 0;
}
.wpcf7-form .nippo-cf7-worktype .wpcf7-list-item input[type="checkbox"] {
  display: none; /* Safari でレイアウト崩れ防止、ラベルでクリック可能 */
}
.wpcf7-form .nippo-cf7-worktype .wpcf7-list-item label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  border-radius: 1rem;
  font-weight: 700;
  font-size: 0.875rem;
  background: #f8fafc;
  color: #475569;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.15s;
  margin: 0;
  text-align: left;
}
.wpcf7-form .nippo-cf7-worktype .wpcf7-list-item label:hover {
  border-color: #a7f3d0;
}
.wpcf7-form .nippo-cf7-worktype .wpcf7-list-item label:has(:checked) {
  border-color: #10b981;
  background: #ecfdf5;
  box-shadow: 0 0 0 2px #a7f3d0;
}

/* ===== 明日の現場予定ラジオ（flex は .wpcf7-radio に適用） ===== */
.wpcf7-form .nippo-cf7-nextday > p {
  margin: 0;
}
.wpcf7-form .nippo-cf7-nextday .wpcf7-radio {
  display: flex;
  gap: 0.5rem;
}
.wpcf7-form .nippo-cf7-nextday .wpcf7-list-item {
  flex: 1;
  margin: 0;
}
.wpcf7-form .nippo-cf7-nextday .wpcf7-list-item label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  border-radius: 1rem;
  font-weight: 700;
  font-size: 0.875rem;
  background: #f8fafc;
  color: #64748b;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  transition: all 0.15s;
  margin: 0;
}
.wpcf7-form .nippo-cf7-nextday .wpcf7-list-item label:has(:checked) {
  background: #1e293b;
  color: #fff;
  border-color: #1e293b;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 0 0 2px #e2e8f0;
}
.wpcf7-form .nippo-cf7-nextday .wpcf7-list-item input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.nippo-form-actions button{
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 1rem 3rem;
  border-radius: 0.25rem;
  border: 1px solid rgb(30 41 59);
  background-color: rgb(30 41 59);
  cursor: pointer;
  border-radius: 30px;
  transition: all 0.3s;
  text-decoration: none;
}
.nippo-form-actions button span{
  display: block;
}

.nippo-form-actions button:hover{
  background-color: #fff;
  color: rgb(30 41 59);
  border: 1px solid rgb(30 41 59);
}