/* office/assets/office.css */
/* PC向け（事務所）: 白系ベース + 青アクセント */

:root {
  --bg: #f6f8fb;
  --panel: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;

  --primary: #2563eb;
  --primary-weak: rgba(37, 99, 235, 0.12);

  --danger: #dc2626;
  --danger-weak: rgba(220, 38, 38, 0.12);

  --ok: #16a34a;
  --ok-weak: rgba(22, 163, 74, 0.12);

  --radius: 0px;
  --shadow: 0 10px 26px rgba(15, 23, 42, 0.08);

  --pad: 16px;
  --gap: 12px;

  --font: system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;

  /* 下余白（←ここを50pxに修正） */
  padding-bottom: 50px;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover { text-decoration: underline; }

a:active { opacity: 0.75; }

/* 既存PHPに手を入れなくても整うように「body直下」の要素を整形 */
body > h1 {
  width: min(1100px, 100%);
  margin: 22px auto 10px;
  padding: 0 18px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.2px;
}

body > h2 {
  width: min(1100px, 100%);
  margin: 0 auto 10px;
  padding: 0 18px;
  font-size: 18px;
  font-weight: 800;
}

body > p,
body > form,
body > table,
body > div,
body > hr {
  width: min(1100px, 100%);
  margin-left: auto;
  margin-right: auto;
}

body > p {
  padding: 0 18px;
  color: var(--muted);
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 18px auto;
}

/* パネル風 */
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: var(--pad);
}

label {
  font-weight: 700;
  color: var(--muted);
}

input[type="text"],
input[type="date"],
input[type="number"],
input[type="password"],
select,
textarea {
  width: 100%;
  max-width: 520px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 5px;
  margin-top: 6px;
  font-size: 14px;
  background: #fff;
  color: var(--text);
  outline: none;
}

textarea {
  max-width: 760px;
  min-height: 110px;
  resize: vertical;
}

input:focus, select:focus, textarea:focus {
  border-color: rgba(37, 99, 235, 0.60);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

/* ボタン */
button,
input[type="submit"] {
  appearance: none;
  border: 1px solid rgba(37, 99, 235, 0.35);
  background: var(--primary);
  color: #fff;
  border-radius: 5px;
  padding: 2px 4px;
  font-size: 14px;
  cursor: pointer;
  margin-top: 2px;
  margin-bottom: 2px;
  white-space: nowrap;
}

button:hover, input[type="submit"]:hover { filter: brightness(1.02); }
button:active, input[type="submit"]:active { transform: translateY(1px); }

/* 危険ボタン */
button[style*="#c00"],
button[style*="color:#c00"],
a[style*="#c00"],
a[style*="color:#c00"] {
  color: var(--danger) !important;
}

/* テーブル */
table {
  border-collapse: separate;
  border-spacing: 0;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: visible;
}

th, td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  vertical-align: top;
}

th {
  background: #f1f5f9;
  color: var(--text);
  font-weight: 800;
  position: sticky;
  top: 0;
  z-index: 2;
}

tr:last-child td { border-bottom: 0; }

tr:nth-child(even) td { background: rgba(15, 23, 42, 0.012); }

/* 小リンク */
p a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  text-decoration: none;
  margin-left: 6px;
}

p a:hover {
  border-color: rgba(37, 99, 235, 0.35);
  background: var(--primary-weak);
}

/* メッセージ */
.success { color: var(--ok); font-weight: 800; }
.error { color: var(--danger); font-weight: 800; }

/* レスポンシブ */
@media (max-width: 920px) {
  table { display: block; overflow: auto; }
  body > h1, body > h2, body > p, body > form, body > table, body > div, body > hr {
    width: 100%;
  }
}

.tc { text-align: center; }

/* 強制表示対策 */
table th,
table td {
  color: #000 !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* グループテーブル */
table.group_table {
  table-layout: auto !important;
  width: auto !important;
}

table.group_table th.gt_col1,
table.group_table td.gt_col1 {
  min-width: 160px !important;
  white-space: nowrap !important;
}

table.group_table th.gt_col2,
table.group_table td.gt_col2 {
  min-width: 90px !important;
  white-space: nowrap !important;
}

table.group_table th.gt_col3,
table.group_table td.gt_col3 {
  min-width: 320px !important;
}

table.group_table input.gt_input {
  width: 240px !important;
  max-width: 240px !important;
}

/* ログインパネル */
#o_login {
  border: 1px solid #aaa;
  padding: 20px 30px;
  width: 300px;
  margin: auto;
  border-radius: 10px;
  overflow: hidden;
}

/* APP_NAMEタイトル */
h1 {
  margin: 0;
  padding: 14px 20px;
  width: 100%;
  box-sizing: border-box;
  background: #111;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

/* ページ最下部に必ず50pxの空白を作る */
body::after{
  content: "";
  display: block;
  height: 50px;
}


body::after{
  content: "© 2026 DEDURA SYSTEM. All Rights Reserved.";
  display: block;

  height: 50px;
  line-height: 50px;

  text-align: center;
  font-size: 12px;
  color: #64748b;

  border-top: 1px solid #e2e8f0;
  background: #f6f8fb;
  margin-top:50px;
}

