/* ==============================
   form-style.css
   フォーム入力ページ共通スタイル
   対象: index.html, soukai_r8.html, kpi_r8.html, datutansoR8.html
   ============================== */

:root {
  --bg: #f4f5f4;
  --surface: #ffffff;
  --text: #323634;
  --muted: #6a716d;
  --line: #d5dad7;
  --accent: #2f7f4f;
  --accent-dark: #256540;
  --accent-orange: #ea7426;
  --error: #b00020;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Meiryo UI", "Meiryo", "Yu Gothic UI", "Yu Gothic", "Hiragino Sans", sans-serif;
  background: linear-gradient(180deg, #f7f8f7 0%, var(--bg) 100%);
  color: var(--text);
  line-height: 1.6;
  font-size: 14px;
}

.container {
  max-width: 960px;
  margin: 28px auto;
  padding: 0 16px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 22px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

h1 {
  margin: 0 0 8px;
  font-size: 1.3rem;
  font-weight: 700;
  color: #2f3531;
  line-height: 1.5;
}

h2 {
  margin: 24px 0 10px;
  font-size: 1.05rem;
  border-left: 4px solid var(--accent);
  padding-left: 8px;
  color: #313833;
}

p {
  margin: 0 0 8px;
}

.person-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 14px;
  background: #fff;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

label {
  font-size: 0.88rem;
  color: var(--muted);
}

.required {
  color: var(--accent-orange);
  font-weight: 700;
  margin-left: 4px;
  font-size: 0.7rem;
}

small {
  color: var(--muted);
  font-size: 0.8rem;
}

input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 10px;
  font-size: 0.92rem;
  color: #313733;
  background: #fff;
  font-family: inherit;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(47, 127, 79, 0.12);
}

.actions {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

button {
  border: none;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  padding: 10px 35px;
  font-size: 0.92rem;
  cursor: pointer;
  font-family: inherit;
}

button:hover {
  background: var(--accent-dark);
}

button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

#status {
  min-height: 1.2em;
  font-size: 0.88rem;
  color: var(--muted);
}

#status.error {
  color: var(--error);
}

#status.success {
  color: var(--accent-dark);
}

.privacy-note {
  margin-top: 30px;
  padding: 10px 12px;
  background: #f5faf7;
  border: 1px solid #c7ddcf;
  border-radius: 8px;
  color: #3d5a48;
  font-size: 0.8rem;
}

.link-form {
  color: var(--accent);
  text-decoration: none;
  transition: 0.4s;
}

.link-form:hover {
  opacity: 0.7;
}

@media (max-width: 720px) {
  .panel {
    padding: 16px;
  }

  .grid {
    grid-template-columns: 1fr;
  }
}
