/* REALSTOCK 共通スタイル(従業員はスマホ前提・大きく・シンプルに) */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, "Hiragino Sans", "Yu Gothic UI", "Noto Sans JP", sans-serif;
  background: #f4f6f7; color: #1f2a2e; line-height: 1.6; padding-bottom: 48px;
}
header.app {
  background: #114b5f; color: #fff; padding: 14px 16px; text-align: center;
}
header.app h1 { font-size: 17px; font-weight: 700; letter-spacing: .06em; }
header.app .sub { font-size: 11px; opacity: .85; }
main { max-width: 560px; margin: 0 auto; padding: 14px; }
.card {
  background: #fff; border-radius: 14px; padding: 16px; margin-bottom: 14px;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.card h2 { font-size: 15px; margin-bottom: 10px; color: #114b5f; }
.menu-btn {
  display: flex; align-items: center; gap: 14px; width: 100%;
  background: #fff; border: 2px solid #d8e0e3; border-radius: 14px;
  padding: 16px; margin-bottom: 12px; font-size: 16px; font-weight: 700;
  color: #1f2a2e; text-decoration: none; cursor: pointer;
}
.menu-btn:active { background: #eef4f6; }
.menu-btn .icon { font-size: 26px; }
.menu-btn .desc { display: block; font-size: 12px; font-weight: 400; color: #5b6b70; }
.topic {
  background: #fff8e6; border: 1px solid #f0d9a0; border-radius: 12px;
  padding: 12px 14px; margin-bottom: 14px; font-size: 14px;
}
.topic b { color: #8a6d1a; }
button.primary {
  display: block; width: 100%; background: #114b5f; color: #fff; border: 0;
  border-radius: 12px; padding: 15px; font-size: 16px; font-weight: 700; cursor: pointer;
}
button.primary:disabled { background: #9fb3ba; }
button.ghost {
  background: #fff; color: #114b5f; border: 1.5px solid #114b5f;
  border-radius: 10px; padding: 9px 14px; font-size: 14px; cursor: pointer;
}
button.danger { background: #b3402e; color: #fff; border: 0; border-radius: 10px; padding: 9px 14px; font-size: 14px; cursor: pointer; }
label.q { display: block; font-size: 14px; font-weight: 700; margin: 14px 0 6px; }
label.q .req { color: #b3402e; font-size: 11px; margin-left: 4px; }
input[type=text], textarea, select {
  width: 100%; border: 1.5px solid #cfd8db; border-radius: 10px;
  padding: 11px; font-size: 16px; background: #fff;
}
textarea { min-height: 76px; }
.stars { display: flex; gap: 6px; }
.stars input { display: none; }
.stars label {
  flex: 1; text-align: center; border: 1.5px solid #cfd8db; border-radius: 10px;
  padding: 10px 0; font-size: 15px; cursor: pointer; background: #fff;
}
.stars input:checked + label { background: #114b5f; color: #fff; border-color: #114b5f; }
.hint { font-size: 12px; color: #5b6b70; margin-top: 4px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.gallery .ph { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #e2e8ea; }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery .who {
  position: absolute; left: 0; right: 0; bottom: 0; font-size: 10px; color: #fff;
  background: linear-gradient(transparent, rgba(0,0,0,.65)); padding: 10px 6px 4px;
}
.mylist { font-size: 13px; }
.mylist .row { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid #eef1f2; }
.badge { font-size: 11px; border-radius: 999px; padding: 2px 9px; background: #e2e8ea; color: #46565c; }
.badge.win { background: #e7f6ec; color: #1c7c3f; font-weight: 700; }
.notice { background: #eef4f6; border-radius: 10px; padding: 10px 12px; font-size: 13px; margin-bottom: 12px; }
.error { background: #fdeeeb; color: #8f3322; border-radius: 10px; padding: 10px 12px; font-size: 13px; margin: 10px 0; }
.ok { background: #e7f6ec; color: #1c7c3f; border-radius: 10px; padding: 10px 12px; font-size: 13px; margin: 10px 0; }
.rules-box { border: 1.5px solid #d8e0e3; border-radius: 12px; padding: 12px; }
.rules-box label { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; margin-bottom: 10px; }
.rules-box input { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.filelist { font-size: 13px; }
.filelist .f { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid #eef1f2; }
.filelist img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; background: #e2e8ea; }
.filelist .st { margin-left: auto; font-size: 12px; white-space: nowrap; }
.filelist select.fcat { font-size: 13px; padding: 5px 6px; margin-top: 3px; }
.tabbar { display: flex; gap: 6px; overflow-x: auto; padding: 10px 12px; background: #fff; position: sticky; top: 0; box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.tabbar button { flex: none; border: 1.5px solid #cfd8db; background: #fff; border-radius: 999px; padding: 7px 13px; font-size: 13px; cursor: pointer; }
.tabbar button.on { background: #114b5f; color: #fff; border-color: #114b5f; }
table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
table.t th, table.t td { text-align: left; padding: 7px 6px; border-bottom: 1px solid #eef1f2; }
.meter { height: 14px; background: #e2e8ea; border-radius: 999px; overflow: hidden; margin: 8px 0; }
.meter i { display: block; height: 100%; background: #1c7c3f; }
.meter i.warn { background: #b3402e; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stat { background: #eef4f6; border-radius: 10px; padding: 10px; text-align: center; }
.stat b { display: block; font-size: 20px; color: #114b5f; }
.stat span { font-size: 11px; color: #5b6b70; }
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.85); display: flex; flex-direction: column; z-index: 50; }
.overlay img { flex: 1; object-fit: contain; min-height: 0; }
.overlay .bar { display: flex; gap: 10px; padding: 12px; background: #111; }
.overlay .bar button { flex: 1; }
footer.app { text-align: center; font-size: 11px; color: #8a979c; padding: 18px 0 8px; }
