/* ============================================================
   ケアスタッフィング スタッフポータル — 共通スタイル
   新しいページを追加するときは:
     1. <link rel="stylesheet" href="/static/style.css"> を <head> に追加
     2. ページ固有のスタイルだけ <style> に書く
   ============================================================ */

:root {
  --orange: #e8813a;
  --orange-deep: #c96820;
  --orange-light: #fff4ed;
  --bg: #f5f1ec;
  --white: #ffffff;
  --text: #1c1917;
  --text-mid: #57534e;
  --text-light: #a8a29e;
  --border: #e7e5e4;
  --shadow: 0 4px 32px rgba(0,0,0,0.09);
  --radius: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

body {
  font-family: "M PLUS Rounded 1c", "Noto Sans JP", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  background-image: radial-gradient(circle, rgba(232,129,58,0.13) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* ---- Header ---- */
.header {
  background: var(--white);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: 1px solid var(--border);
}
.header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange-deep), var(--orange), #f5b17a, var(--orange));
}
.header img { height: 52px; }

/* ---- Page title ---- */
.page-header {
  padding: 28px 20px 4px;
  text-align: center;
}
.page-title {
  font-family: "M PLUS Rounded 1c", "Noto Sans JP", sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: 0.1em;
}
.page-subtitle {
  font-size: 11px;
  font-weight: 300;
  color: var(--text-light);
  margin-top: 5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ---- Card ---- */
.card {
  background: var(--white);
  margin: 20px 16px 0;
  border-radius: var(--radius);
  padding: 28px 22px 32px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  animation: slideUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: linear-gradient(90deg, var(--orange-deep), var(--orange), #f5b17a);
}

/* ---- Animations ---- */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes bounce {
  0%, 80%, 100% { transform: translateY(0); }
  40%           { transform: translateY(-6px); }
}

/* ---- Fields ---- */
.field {
  margin-bottom: 26px;
  animation: fadeIn 0.5s ease both;
}

label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-light);
  margin-bottom: 10px;
  letter-spacing: 0.1em;
}
.req {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  background: var(--orange);
  color: white;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

input[type=text], input[type=email] {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 17px;
  font-family: "M PLUS Rounded 1c", "Noto Sans JP", sans-serif;
  font-weight: 400;
  outline: none;
  background: #faf9f8;
  color: var(--text);
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
}
input[type=text]:focus, input[type=email]:focus {
  border-color: var(--orange);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(232,129,58,0.12);
}
input[type=text]::placeholder, input[type=email]::placeholder {
  color: #c8c4c0;
  font-weight: 300;
}

/* ---- Upload ---- */
.upload-box {
  width: 100%;
  padding: 30px 16px;
  border: 2px dashed var(--border);
  border-radius: 16px;
  text-align: center;
  cursor: pointer;
  background: #faf9f8;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.upload-box:active { transform: scale(0.98); }
.upload-box.has-file {
  border-color: var(--orange);
  border-style: solid;
  background: var(--orange-light);
}
.upload-icon {
  width: 54px; height: 54px;
  margin: 0 auto 12px;
  background: var(--orange-light);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  transition: background 0.3s, transform 0.3s;
}
.upload-box.has-file .upload-icon {
  background: var(--orange);
  transform: scale(1.05);
}
.upload-box p { font-size: 15px; font-weight: 500; color: var(--text-mid); }
.upload-box .sub { font-size: 11px; color: var(--text-light); margin-top: 6px; letter-spacing: 0.06em; }
.upload-box .file-name { font-size: 13px; color: var(--orange-deep); font-weight: 700; margin-top: 10px; word-break: break-all; }
#fileInput { display: none; }

/* ---- Divider ---- */
.divider { height: 1px; background: var(--border); margin: 4px 0 24px; }

/* ---- Button ---- */
.btn {
  display: block;
  width: 100%;
  padding: 18px;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-family: "M PLUS Rounded 1c", "Noto Sans JP", sans-serif;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 0.14em;
  position: relative;
  overflow: hidden;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 6px 20px rgba(232,129,58,0.38);
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  pointer-events: none;
}
.btn:active:not(:disabled) { transform: scale(0.98); box-shadow: 0 2px 8px rgba(232,129,58,0.3); }
.btn:disabled { opacity: 0.45; box-shadow: none; cursor: default; }

/* ---- Progress ---- */
.progress {
  display: none;
  text-align: center;
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-light);
  letter-spacing: 0.05em;
}
.progress-dot {
  display: inline-block;
  width: 6px; height: 6px;
  background: var(--orange);
  border-radius: 50%;
  margin: 0 2px;
  vertical-align: middle;
  animation: bounce 1s infinite;
}
.progress-dot:nth-child(2) { animation-delay: 0.2s; }
.progress-dot:nth-child(3) { animation-delay: 0.4s; }

/* ---- Message ---- */
.msg {
  display: none;
  margin-top: 16px;
  padding: 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  line-height: 1.6;
}
.msg.success { display: block; background: var(--orange-light); color: var(--orange-deep); border: 1px solid rgba(232,129,58,0.25); }
.msg.error   { display: block; background: #fce8e6; color: #c5221f; border: 1px solid rgba(197,34,31,0.18); }

/* ---- Hint ---- */
.hint {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 4px;
}

/* ---- Footer ---- */
.footer {
  text-align: center;
  padding: 28px 16px 24px;
  font-size: 11px;
  color: var(--text-light);
  letter-spacing: 0.1em;
}
