@charset "utf-8";
/* ------------------------------------------------------------------
   コログ株式会社 協賛企業様向け ファイルアップロードシステム
   配色・書体は corogu.revali-holding.com から実測した値に合わせている
------------------------------------------------------------------- */

:root {
  --teal: #1e7698;
  --teal-dark: #175e7b;
  --teal-soft: #eaf6fb;
  --navy: #375e82;
  --green: #6cba5a;
  --green-soft: #eff8ec;
  --cream: #fcfbce;
  --yellow: #f6ef88;
  --ink: #1f2933;
  --muted: #5c6f7d;
  --line: #d9e7ee;
  --line-strong: #b9d2de;
  --danger: #b3392b;
  --danger-soft: #fdf0ee;
  --paper: #ffffff;
  --ground: #f4fafc;

  --ff-head: "Zen Kaku Gothic New", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  --ff-body: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;

  --r-card: 12px;
  --r-btn: 8px;
  --shadow: 0 1px 2px rgba(31, 41, 51, .05), 0 8px 24px rgba(31, 41, 51, .05);
  --shadow-lift: 0 2px 4px rgba(31, 41, 51, .06), 0 14px 32px rgba(31, 41, 51, .09);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--ground);
  background-image:
    radial-gradient(760px 420px at 88% -6%, rgba(108, 186, 90, .10), transparent 70%),
    radial-gradient(680px 380px at 4% 4%, rgba(98, 175, 226, .13), transparent 68%);
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
}

/* ---------------------------------------------------------- ヘッダー */

.site-header {
  background: rgba(255, 255, 255, .95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.4) blur(6px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header__inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.wordmark {
  border-left: 3px solid var(--teal);
  padding-left: 14px;
  display: block;
  text-decoration: none;
  color: inherit;
}

.wordmark__company {
  display: block;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: .04em;
  color: var(--navy);
  line-height: 1.4;
}

.wordmark__system {
  display: block;
  font-size: .75rem;
  letter-spacing: .06em;
  color: var(--muted);
  line-height: 1.5;
}

.site-header__spacer { flex: 1; }

.site-header__user {
  font-size: .8125rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 12px;
}

.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .03em;
  white-space: nowrap;
}

/* ---------------------------------------------------------- レイアウト */

.main { flex: 1; width: 100%; }

.wrap {
  margin: 0 auto;
  padding: 40px 24px 72px;
}

.wrap--narrow { max-width: 480px; padding-top: 64px; }
.wrap--mid { max-width: 760px; }
.wrap--wide { max-width: 1080px; }

.page-title {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.5;
  margin: 0 0 6px;
  color: var(--navy);
}

.page-lead {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: .9375rem;
}

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

.card + .card { margin-top: 20px; }
.card--flush { padding: 0; overflow: hidden; }

.card__title {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--navy);
  margin: 0 0 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.card__title::before {
  content: "";
  width: 4px;
  height: 1.1em;
  border-radius: 2px;
  background: var(--teal);
  flex: none;
}

/* ---------------------------------------------------------- フォーム */

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

.label {
  display: block;
  font-weight: 500;
  font-size: .9375rem;
  color: var(--navy);
  margin-bottom: 7px;
}

.label .req {
  color: var(--danger);
  font-size: .8125rem;
  margin-left: 6px;
  font-weight: 500;
}

.hint {
  font-size: .8125rem;
  color: var(--muted);
  margin: 7px 0 0;
}

.input {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  padding: 13px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-btn);
  transition: border-color .16s ease, box-shadow .16s ease;
}

.input::placeholder { color: #9fb1bc; }

.input:hover { border-color: #9dbdcc; }

.input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(30, 118, 152, .16);
}

.input[aria-invalid="true"] {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(179, 57, 43, .12);
}

.input-with-button { display: flex; gap: 8px; }
.input-with-button .input { flex: 1; }

.btn {
  font: inherit;
  font-family: var(--ff-body);
  font-weight: 500;
  font-size: 1rem;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--r-btn);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  transition: background-color .16s ease, border-color .16s ease, transform .08s ease, box-shadow .16s ease;
}

.btn:focus-visible {
  outline: 3px solid rgba(30, 118, 152, .38);
  outline-offset: 2px;
}

.btn:active:not(:disabled) { transform: translateY(1px); }

.btn--primary {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 1px 2px rgba(23, 94, 123, .3);
}

.btn--primary:hover:not(:disabled) { background: var(--teal-dark); }

.btn--block { width: 100%; }

.btn--ghost {
  background: var(--paper);
  color: var(--teal-dark);
  border-color: var(--line-strong);
}

.btn--ghost:hover:not(:disabled) { background: var(--teal-soft); border-color: var(--teal); }

.btn--danger {
  background: var(--paper);
  color: var(--danger);
  border-color: #e2b7b0;
}

.btn--danger:hover:not(:disabled) { background: var(--danger-soft); border-color: var(--danger); }

.btn--solid-danger { background: var(--danger); color: #fff; }
.btn--solid-danger:hover:not(:disabled) { background: #98301f; }

.btn--sm { min-height: 36px; font-size: .875rem; padding: 0 14px; }

.btn:disabled {
  background: #e6edf1;
  color: #93a5b0;
  border-color: transparent;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.link-button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: .8125rem;
  color: var(--teal-dark);
  text-decoration: underline;
  cursor: pointer;
}

/* ---------------------------------------------------------- 通知 */

.alert {
  border-radius: var(--r-btn);
  padding: 13px 16px;
  font-size: .9375rem;
  margin-bottom: 20px;
  border: 1px solid transparent;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.alert__icon { flex: none; margin-top: .15em; }
.alert--error { background: var(--danger-soft); border-color: #e6c1bb; color: #8d2c1f; }
.alert--ok { background: var(--green-soft); border-color: #c3e3ba; color: #33681f; }
.alert--info { background: var(--teal-soft); border-color: #bfdfec; color: var(--teal-dark); }
.alert[hidden] { display: none; }

.notice {
  background: linear-gradient(180deg, var(--cream), #fdfce2);
  border: 1px solid #e9e39a;
  border-radius: var(--r-card);
  padding: 22px 24px;
}

.notice__title {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 1rem;
  color: #6b6321;
  margin: 0 0 12px;
}

.notice dl { margin: 0; }

.notice dt {
  font-weight: 500;
  color: var(--navy);
  margin-top: 14px;
  font-size: .9375rem;
}

.notice dt:first-of-type { margin-top: 0; }

.notice dd {
  margin: 4px 0 0;
  font-size: .875rem;
  color: #4b5560;
}

.notice ul {
  margin: 4px 0 0;
  padding-left: 1.2em;
  font-size: .875rem;
  color: #4b5560;
}

.notice li { margin: 2px 0; }

.notice__foot {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px dashed #ddd59a;
  font-size: .875rem;
  color: #4b5560;
}

/* ---------------------------------------------------------- ドロップゾーン */

.drop {
  border: 2px dashed var(--line-strong);
  border-radius: var(--r-card);
  background: #fbfdfe;
  padding: 36px 24px;
  text-align: center;
  transition: border-color .18s ease, background-color .18s ease;
  cursor: pointer;
}

.drop:hover, .drop:focus-visible {
  border-color: var(--teal);
  background: var(--teal-soft);
  outline: none;
}

.drop.is-over {
  border-color: var(--green);
  background: var(--green-soft);
}

.drop__icon { color: var(--teal); opacity: .85; }

.drop__main {
  display: block;
  font-weight: 500;
  color: var(--navy);
  margin-top: 10px;
}

.drop__sub {
  display: block;
  font-size: .8125rem;
  color: var(--muted);
  margin-top: 4px;
}

/* ---------------------------------------------------------- ファイル一覧 */

.filelist { list-style: none; margin: 20px 0 0; padding: 0; }

.filelist__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  background: var(--paper);
  margin-bottom: 8px;
}

.filelist__item--bad { background: var(--danger-soft); border-color: #e6c1bb; }
.filelist__item--warn { background: #fefcef; border-color: #e9e39a; }
.filelist__item--done { background: var(--green-soft); border-color: #c3e3ba; }

.filelist__body { flex: 1; min-width: 0; }

.filelist__name {
  display: block;
  font-size: .9375rem;
  overflow-wrap: anywhere;
  line-height: 1.5;
}

.filelist__meta {
  display: block;
  font-size: .8125rem;
  color: var(--muted);
  line-height: 1.6;
}

.filelist__meta--bad { color: #8d2c1f; }
.filelist__meta--warn { color: #7a6a1c; }
.filelist__meta--ok { color: #33681f; }

.filelist__state { flex: none; font-size: 1rem; line-height: 1; }

.filelist__remove {
  flex: none;
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  line-height: 0;
}

.filelist__remove:hover { background: #eef3f6; color: var(--danger); }

/* 進捗 */

.progress {
  height: 6px;
  border-radius: 3px;
  background: #e4edf2;
  overflow: hidden;
  margin-top: 8px;
}

.progress__bar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--teal), #45a2c0);
  border-radius: 3px;
  transition: width .25s ease;
}

.progress__bar--done { background: var(--green); }

.total-progress {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.total-progress__head {
  display: flex;
  justify-content: space-between;
  font-size: .875rem;
  color: var(--muted);
  margin-bottom: 8px;
}

.total-progress__head strong { color: var(--navy); font-weight: 500; }

/* ---------------------------------------------------------- テーブル */

.table { width: 100%; border-collapse: collapse; font-size: .9375rem; }

.table th, .table td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.table th {
  background: #f6fafc;
  font-weight: 500;
  font-size: .8125rem;
  color: var(--muted);
  letter-spacing: .03em;
  white-space: nowrap;
}

.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background-color .14s ease; }
.table tbody tr:hover { background: #fafdfe; }
.table tbody tr.is-open { background: var(--teal-soft); }

.table td.num { white-space: nowrap; color: var(--muted); font-variant-numeric: tabular-nums; }
.table td.act { text-align: right; white-space: nowrap; }

/* The table scrolls inside .table-scroll, so give the name column room
   instead of letting it squeeze to two or three characters per line. */
.table .name { overflow-wrap: anywhere; min-width: 11em; }

.folder-name {
  font-weight: 500;
  color: var(--navy);
  display: flex;
  align-items: baseline;
  gap: 9px;
  flex-wrap: wrap;
}

.folder-name__date {
  font-size: .75rem;
  color: var(--muted);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.table-scroll { overflow-x: auto; }

.empty {
  text-align: center;
  padding: 56px 24px;
  color: var(--muted);
  font-size: .9375rem;
}

.empty__icon { color: var(--line-strong); margin-bottom: 10px; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 32px 0 14px;
  flex-wrap: wrap;
}

.section-head__title {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--navy);
  margin: 0;
}

.summary-line {
  font-size: .875rem;
  color: var(--muted);
  margin: 16px 0 0;
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------- モーダル */

.modal {
  position: fixed;
  inset: 0;
  background: rgba(31, 41, 51, .5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 60;
  animation: fade .16s ease both;
}

.modal[hidden] { display: none; }

.modal__panel {
  background: var(--paper);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-lift);
  padding: 28px;
  max-width: 440px;
  width: 100%;
  animation: pop .2s cubic-bezier(.2, .9, .3, 1) both;
}

.modal__title {
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 1.0625rem;
  color: var(--navy);
  margin: 0 0 10px;
}

.modal__body {
  margin: 0 0 22px;
  font-size: .9375rem;
  overflow-wrap: anywhere;
}

.modal__body strong { color: var(--navy); }

.modal__warn { color: var(--danger); font-size: .875rem; display: block; margin-top: 8px; }

.modal__actions { display: flex; gap: 10px; justify-content: flex-end; }

/* ---------------------------------------------------------- フッター */

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, .7);
  padding: 22px 24px 30px;
  text-align: center;
  font-size: .8125rem;
  color: var(--muted);
}

.site-footer p { margin: 3px 0; }

/* ---------------------------------------------------------- 装飾・動き */

.deco {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  opacity: .5;
}

.deco--tl { top: 96px; left: -34px; }
.deco--br { bottom: -20px; right: -24px; }

.wrap > * { position: relative; z-index: 1; }

.rise { animation: rise .5s cubic-bezier(.2, .8, .3, 1) both; }
.rise-1 { animation-delay: .04s; }
.rise-2 { animation-delay: .12s; }
.rise-3 { animation-delay: .2s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

@keyframes pop {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: none; }
}

.spin { animation: spin 1s linear infinite; transform-origin: center; }

@keyframes spin { to { transform: rotate(360deg); } }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001s !important;
    transition-duration: .001s !important;
  }
}

/* ---------------------------------------------------------- レスポンシブ */

@media (max-width: 700px) {
  body { font-size: 15.5px; }
  .site-header__inner { padding: 12px 16px; gap: 12px; }
  .wordmark__company { font-size: 1rem; }
  .wordmark__system { font-size: .6875rem; }
  .wrap { padding: 28px 16px 56px; }
  .wrap--narrow { padding-top: 36px; }
  .card { padding: 20px 18px; }
  .notice { padding: 18px 18px; }
  .page-title { font-size: 1.3125rem; }
  .btn { width: 100%; }
  .btn--sm { width: auto; }
  .btn-row .btn { width: auto; flex: 1; }
  .deco { display: none; }
  .table th, .table td { padding: 11px 12px; }
  .site-header__user .badge { display: none; }
}
