:root {
  /* 実際のコーポレートサイト（financial-create.co.jp）の配色に合わせた
     ネイビー×ゴールドのブランドカラー。 */
  --navy: #16284D;
  --navy-deep: #0E1B33;
  --ice: #C9D3E4;
  --ice-tint: #EEF1F7;
  --accent: #9C7F35;
  --accent-dark: #82692A;
  --slate: #49546A;
  --slate-light: #8792A6;
  --dark: #1B2436;
  --line: #E1E5EE;
  --card: #F7F8FC;
  --danger: #C0533F;
  --danger-tint: #FBF3F2;
  --success: #1F9D77;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 2px 10px rgba(22, 40, 77, 0.07);
  --shadow-md: 0 8px 24px rgba(22, 40, 77, 0.12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic UI", "Segoe UI", Roboto, sans-serif;
  background: #FFFFFF;
  color: var(--dark);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  background: var(--navy);
  color: #fff;
}

.topbar .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.topbar .brand .brand-mark {
  display: inline-flex;
  width: 24px; height: 24px;
  border-radius: 6px;
  overflow: hidden;
}
.topbar .brand .brand-mark img { width: 100%; height: 100%; display: block; object-fit: cover; }

.topbar nav { display: flex; gap: 4px; align-items: center; }

.topbar nav a {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 14px;
  color: var(--ice);
  transition: background 0.15s;
}

.topbar nav a.active { background: rgba(255,255,255,0.14); color: #fff; }
.topbar nav a:hover { background: rgba(255,255,255,0.08); }

.topbar .who {
  font-size: 13px;
  color: var(--ice);
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar .who a { text-decoration: underline; text-underline-offset: 2px; }

.shell {
  max-width: 1040px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

.shell.wide { max-width: 1240px; }

h1.page-title {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 6px;
  color: var(--dark);
  letter-spacing: -0.01em;
}

.page-sub {
  color: var(--slate);
  margin: 0 0 28px;
  font-size: 14.5px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.card + .card { margin-top: 18px; }

.card.white { background: #fff; }

.card-title {
  font-weight: 700;
  font-size: 15px;
  margin: 0 0 4px;
  color: var(--dark);
}

.card-hint { color: var(--slate-light); font-size: 12.5px; margin: 0 0 14px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }

@media (max-width: 860px) {
  .grid-2, .grid-3, .grid-4, .grid-5 { grid-template-columns: 1fr; }
  .topbar { flex-wrap: wrap; gap: 10px; }
  .shell { padding: 24px 16px 60px; }
}

label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--dark);
  margin: 0 0 6px;
}

.req { color: var(--danger); font-weight: 700; margin-left: 3px; font-size: 12px; }
.opt { color: var(--slate-light); font-weight: 500; font-size: 12px; margin-left: 4px; }

input[type=text], input[type=number], input[type=email], input[type=password], input[type=date], textarea, select {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-family: inherit;
  background: #fff;
  color: var(--dark);
  transition: border-color 0.15s, box-shadow 0.15s;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(156, 127, 53, 0.18);
}

textarea { resize: vertical; min-height: 78px; }

.field { margin-bottom: 18px; }
.field:last-child { margin-bottom: 0; }

.kpi-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
@media (max-width: 860px) { .kpi-row { grid-template-columns: repeat(2, 1fr); } }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.btn:hover { background: var(--accent-dark); }
.btn:active { transform: scale(0.98); }
.btn.secondary { background: var(--ice-tint); color: var(--navy); border: 1px solid var(--line); }
.btn.secondary:hover { background: var(--ice); }
.btn.block { width: 100%; }

.floating-feedback-btn {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 200;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 26px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, var(--accent) 0%, var(--navy) 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(38, 50, 24, 0.35);
  transition: transform 0.12s, box-shadow 0.12s;
}
.floating-feedback-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(38, 50, 24, 0.42); }
.floating-feedback-btn:active { transform: translateY(0) scale(0.98); }
@media (max-width: 860px) {
  .floating-feedback-btn { right: 16px; bottom: 16px; padding: 14px 20px; font-size: 14px; }
}

.section-label {
  font-size: 12px;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 34px 0 4px;
}
.section-label:first-child { margin-top: 0; }
.section-desc { color: var(--slate); font-size: 13px; margin: 0 0 16px; }

.pill {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
}
.pill.submitted { background: #E6F6EF; color: var(--success); }
.pill.missing { background: var(--danger-tint); color: var(--danger); }
.pill.role { background: var(--ice-tint); color: var(--navy); }
.pill.cat-seminar { background: var(--ice-tint); color: var(--navy); }
.pill.cat-event { background: #FBF3E1; color: var(--accent-dark); }
.pill.cat-other { background: var(--card); color: var(--slate); }

.cal-table { width: 100%; border-collapse: collapse; table-layout: fixed; margin-top: 12px; }
.cal-table th {
  padding: 8px 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--slate-light);
  text-align: center;
  border-bottom: 1px solid var(--line);
}
.cal-table td.cal-empty { border: 1px solid var(--line); background: var(--card); }
.cal-table td.cal-cell {
  border: 1px solid var(--line);
  vertical-align: top;
  height: 86px;
  padding: 6px;
  overflow: hidden;
}
.cal-table td.cal-cell.selected { background: rgba(156, 127, 53, 0.08); box-shadow: inset 0 0 0 2px var(--accent); }
.cal-daynum-link { display: block; color: inherit; }
.cal-daynum-link:hover .cal-daynum { color: var(--navy); }
.cal-daynum { font-size: 12.5px; font-weight: 700; color: var(--slate); margin-bottom: 4px; }
.cal-event {
  display: block;
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 5px;
  border-radius: 5px;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: inherit;
}
.cal-event:hover { filter: brightness(0.94); }
.cal-event.cat-seminar { background: var(--ice-tint); color: var(--navy); }
.cal-event.cat-event { background: #FBF3E1; color: var(--accent-dark); }
.cal-event.cat-other { background: var(--card); color: var(--slate); }

.stat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
@media (max-width: 980px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } }

.stat-tile {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
}
.stat-tile .num { font-size: 30px; font-weight: 800; color: var(--navy); line-height: 1.1; }
.stat-tile .label { font-size: 12.5px; color: var(--slate); margin-top: 6px; }

table.list { width: 100%; border-collapse: collapse; }
table.list th {
  text-align: left;
  font-size: 12px;
  color: var(--slate-light);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
table.list td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}
table.list tr:hover td { background: var(--ice-tint); }
table.list tr:last-child td { border-bottom: none; }

.login-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 40px 20px;
}
.login-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.login-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: 0 4px 14px rgba(22, 40, 77, 0.14);
}
.login-icon img { width: 100%; height: 100%; display: block; object-fit: cover; }
.login-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--dark);
  margin: 0 0 6px;
}
.login-tagline { color: var(--slate-light); font-size: 13px; text-align: center; margin: 0 0 40px; }
.login-form { width: 100%; max-width: 320px; }
.login-form .field { margin-bottom: 14px; text-align: left; }
.login-form label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--slate);
  margin-bottom: 6px;
  text-transform: none;
  letter-spacing: normal;
}
.login-form input {
  background: transparent;
  border: none;
  border-bottom: 1.5px solid var(--line);
  border-radius: 0;
  padding: 11px 2px;
  color: var(--dark);
}
.login-form input:focus {
  background: transparent;
  border-color: var(--line);
  border-bottom-color: var(--navy);
  box-shadow: none;
}
.login-form .btn.block {
  margin-top: 22px;
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  background: var(--dark);
  color: #fff;
  box-shadow: none;
}
.login-form .btn.block:hover { background: #000; box-shadow: none; }
.login-wrap .error-box { width: 100%; max-width: 320px; margin: 0 0 18px; }
.login-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 48px;
  opacity: 0.55;
}
.login-footer .lockup { display: flex; align-items: center; gap: 7px; }
.login-footer .lockup img.mark { height: 14px; width: 14px; border-radius: 4px; }
.login-footer .lockup img.wordmark { height: 10px; width: auto; filter: none; opacity: 1; }
.login-footer .company {
  font-size: 10.5px;
  color: var(--slate-light);
  letter-spacing: 0.02em;
}

.error-box {
  background: var(--danger-tint);
  color: var(--danger);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 13.5px;
  margin-bottom: 18px;
}

.ai-box {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 22px 24px;
}
.ai-box .ai-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 800; letter-spacing: 0.08em;
  color: var(--ice); text-transform: uppercase; margin-bottom: 10px;
}
.ai-box p { margin: 0 0 12px; font-size: 14.5px; }
.ai-box ul { margin: 0; padding-left: 18px; font-size: 13.5px; color: var(--ice); }
.ai-box ul li { margin-bottom: 4px; }

.badge-source {
  font-size: 10.5px;
  color: var(--slate-light);
  margin-top: 12px;
}

.detail-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 18px; }
@media (max-width: 860px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-item .k { font-size: 12px; color: var(--slate-light); font-weight: 700; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.03em; }
.detail-item .v { font-size: 14.5px; white-space: pre-wrap; }
.detail-item.full { grid-column: 1 / -1; }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--slate-light);
}

.progress-bar {
  height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; margin-top: 8px;
}
.progress-bar > div { height: 100%; background: var(--accent); border-radius: 999px; }

.helper { color: var(--slate-light); font-size: 12px; margin-top: 5px; }

.two-col-nav { display: flex; gap: 10px; margin-bottom: 22px; }
.two-col-nav a {
  padding: 8px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  background: var(--ice-tint); color: var(--navy);
}
.two-col-nav a.active { background: var(--navy); color: #fff; }
