/* CM募集フォーム専用の追補スタイル。
   ベースのレイアウトは /news/styles.css（.container.article-wrap / .page-head / .article）を流用し、
   ここでは本文の読みやすさとフォーム部品に必要な差分だけを定義する。 */

.cmform-info {
  color: rgba(37, 37, 37, 0.9);
  font-size: 1rem;
  line-height: 1.9;
}

.cmform-info h2 {
  margin: 1.6em 0 0.6em;
  padding-bottom: 0.35em;
  border-bottom: 1px solid var(--line);
  color: rgba(10, 42, 68, 0.92);
  font-size: 1.3rem;
  line-height: 1.45;
}

.cmform-info h2:first-of-type {
  margin-top: 0.4em;
}

.cmform-info h3 {
  margin: 1.4em 0 0.6em;
  color: var(--sky-700);
  font-size: 1.08rem;
}

.cmform-info ul {
  margin: 0.4em 0 0.8em;
  padding-left: 1.4em;
}

.cmform-info li {
  margin-bottom: 0.5em;
}

.cmform-info li strong {
  color: var(--sky-700);
}

.cmform-info h3 + ul {
  padding: 16px 20px 16px 36px;
  border-left: 3px solid var(--line-strong);
  border-radius: 12px;
  background: rgba(244, 251, 255, 0.7);
}

.cmform-muryo {
  margin: 24px 0;
  padding: 14px 20px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(137, 216, 255, 0.22), rgba(134, 247, 223, 0.22));
  color: var(--sky-700);
  font-size: 1.2em;
  letter-spacing: 0.06em;
  text-align: center;
}

.cmform-highlight {
  color: var(--berry);
  font-weight: 800;
  font-size: 1.4em;
  letter-spacing: 0.04em;
}

.cmform-jump {
  margin: -8px 0 20px;
}

.cmform-jump a {
  color: var(--sky-700);
  font-weight: 700;
  text-underline-offset: 0.15em;
}

.cmform-hp {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  left: -9999px;
}

.cmform-heading {
  scroll-margin-top: 16px;
  margin: 1.6em 0 14px;
  padding-bottom: 0.35em;
  border-bottom: 1px solid var(--line);
  color: rgba(10, 42, 68, 0.92);
  font-size: 1.3rem;
}

/* Form panel: a tinted card-within-a-card so the fields you fill in are
   visually distinct from the read-only recruitment info above them. */
.cmform-panel {
  padding: clamp(18px, 3.5vw, 32px);
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(244, 251, 255, 0.55);
}

.cmform-group {
  margin-bottom: 26px;
}

.cmform-fieldset {
  border: none;
  padding: 0;
}

.cmform-fieldset legend {
  padding: 0;
  margin-bottom: 10px;
  font-weight: 700;
  font-size: 1.05em;
  color: rgba(10, 42, 68, 0.92);
}

.cmform label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 1.02em;
  color: rgba(10, 42, 68, 0.92);
}

.cmform-required {
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--berry);
  color: #fff;
  font-size: 0.68em;
  font-weight: 600;
  vertical-align: middle;
}

.cmform input[type="text"],
.cmform input[type="email"],
.cmform textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 1em;
  background: rgba(255, 255, 255, 0.9);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cmform input[type="text"]:focus,
.cmform input[type="email"]:focus,
.cmform textarea:focus {
  border-color: var(--sky-500);
  box-shadow: 0 0 0 3px rgba(30, 167, 255, 0.16);
  outline: none;
}

.cmform textarea {
  resize: vertical;
  min-height: 110px;
}

.cmform-file-specs {
  margin: 4px 0 12px;
  color: var(--muted);
  font-size: 0.9em;
}

.cmform-drop-area {
  position: relative;
  padding: 32px 24px;
  border: 2px dashed var(--line-strong);
  border-radius: 16px;
  background: rgba(244, 251, 255, 0.6);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.cmform-drop-area.drag-over {
  border-color: var(--sky-500);
  background: rgba(231, 245, 255, 0.9);
}

.cmform-drop-area p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.95em;
  line-height: 1.8;
}

.cmform-drop-area input[type="file"] {
  display: none;
}

.cmform-file-select-btn {
  padding: 11px 22px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--sky-500), var(--sky-700));
  color: #fff;
  font-size: 0.94em;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cmform-file-select-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(14, 106, 169, 0.24);
}

.cmform-file-name {
  margin-top: 16px;
  color: rgba(10, 42, 68, 0.85);
  font-size: 0.9em;
  font-style: italic;
}

.cmform-date-range {
  display: flex;
  align-items: end;
  gap: 12px;
  margin-top: 10px;
}

.cmform-date-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.cmform-date-group label {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88em;
  font-weight: 500;
}

.cmform-date-group input[type="date"] {
  width: 160px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font-family: inherit;
  font-size: 1em;
}

.cmform-date-separator {
  align-self: center;
  margin: 0 4px;
  color: var(--muted);
}

.cmform-hint {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9em;
  font-style: italic;
}

.cmform-radio-group {
  display: flex;
  gap: 22px;
}

.cmform-radio-group label {
  display: flex;
  align-items: center;
  margin-bottom: 0;
  font-weight: 500;
  cursor: pointer;
}

.cmform-radio-group input {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  accent-color: var(--sky-500);
  cursor: pointer;
}

.cmform-terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.cmform-terms input {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  accent-color: var(--sky-500);
  cursor: pointer;
}

.cmform-terms label {
  margin-bottom: 0;
  font-weight: 500;
}

.cmform-submit {
  display: block;
  width: 100%;
  max-width: 320px;
  margin: 44px auto 0;
  padding: 18px 40px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--sky-500), var(--sky-700));
  color: #fff;
  font-size: 1.12em;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cmform-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 46px rgba(10, 42, 68, 0.22);
}

.cmform-submit:disabled {
  background: rgba(10, 42, 68, 0.16);
  color: rgba(10, 42, 68, 0.5);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.cmform-progress {
  margin: 20px 0;
}

.cmform-progress-track {
  height: 26px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(10, 42, 68, 0.08);
}

#upload-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--sky-500), var(--mint));
  color: #0a2a44;
  font-size: 0.78rem;
  font-weight: 700;
  transition: width 0.3s ease;
}

.cmform-message {
  margin: 20px 0;
  padding: 14px;
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
}

.cmform-message:empty {
  margin: 0;
  padding: 0;
}

.cmform-contact {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  text-align: center;
  color: rgba(37, 37, 37, 0.9);
}

.cmform-contact h2 {
  margin: 0 0 10px;
  color: rgba(10, 42, 68, 0.92);
  font-size: 1.2rem;
}

.cmform-contact a {
  color: var(--sky-700);
  text-underline-offset: 0.15em;
}

@media (max-width: 620px) {
  .cmform-radio-group {
    flex-direction: column;
    gap: 12px;
  }

  .cmform-date-range {
    flex-direction: column;
    align-items: stretch;
  }

  .cmform-date-group input[type="date"] {
    width: 100%;
  }

  .cmform-date-separator {
    align-self: flex-start;
  }

  .cmform-submit {
    font-size: 1.02em;
    padding: 15px 30px;
  }
}
