/* ==========
   RESET
========== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body {
  background: #000;
  display: flex;
  justify-content: center;
  padding: 16px;
}

/* ==========
   APP FRAME（スマホ枠）
========== */
.app {
  width: 100%;
  max-width: 414px;
  background: #0b2230;
  color: #fff;
  border-radius: 8px;
  border: 2px solid #2e4757;
  min-height: 700px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* ==========
   TOP BAR（全ページ共通）
========== */
.top-bar {
  background: #001219;
  border-bottom: 2px solid #2e4757;
  padding: 8px 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.top-names {
  text-align: center;
  line-height: 1.3;
}
.station-name {
  font-size: 14px;
  font-weight: bold;
}
.staff-name {
  font-size: 12px;
  opacity: 0.9;
}

.top-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-box {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  background: #00a6c9;
  display: flex;
  justify-content: center;
  align-items: center;
  color: white;
  font-size: 22px;
  font-weight: bold;
}

.user-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #fff;
  background: #ccc;
}
.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========
   MAIN
========== */
main {
  padding: 12px;
  flex: 1;
  overflow-y: auto;
}

/* ==========
   SECTION BOX（青い箱）
========== */
.section {
  background: #cfefff;
  color: #000;
  border-radius: 4px;
  padding: 10px 12px 12px;
  margin-bottom: 10px;
  border: 2px solid #2e4757;
  font-size: 12px;
}

.section-title {
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 6px;
}

.section-note {
  font-size: 11px;
  margin-bottom: 6px;
}

/* ==========
   FORM BLOCK（白い小枠）
========== */
.form-block {
  background: #f8fbff;
  border-radius: 4px;
  border: 1px solid #d0d7e2;
  padding: 8px 8px 6px;
  margin-bottom: 8px;
}

.form-block-title {
  font-size: 13px;
  font-weight: bold;
  margin-bottom: 4px;
}

.field-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 6px;
  font-size: 12px;
}

.field-row label {
  margin-bottom: 2px;
  font-weight: 500;
}

.required {
  color: #d90429;
  font-weight: bold;
  margin-left: 2px;
}

input[type="text"],
input[type="date"],
input[type="number"],
input[type="tel"],
input[type="url"],
select,
textarea {
  font-size: 12px;
  padding: 4px 6px;
  border-radius: 4px;
  border: 1px solid #b0b8c9;
  background: #fff;
}

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

input:focus,
select:focus,
textarea:focus {
  border-color: #003049;
  box-shadow: 0 0 0 1px rgba(0,48,73,0.35);
}

.radio-group {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}

/* ==========
   ボタン
========== */
.button-row {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 8px;
}

.btn {
  border-radius: 4px;
  padding: 6px 14px;
  font-size: 12px;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: #003049;
  color: #fff;
}
.btn-primary:hover {
  background: #012437;
}

.btn-secondary {
  background: #e5e7eb;
  color: #111827;
}
.btn-secondary:hover {
  background: #d1d5db;
}

/* ==========
   下ナビ
========== */
.bottom-nav {
  background: #000;
  border-top: 2px solid #2e4757;
  display: flex;
  justify-content: space-around;
  padding: 8px 0;
}

.nav-item {
  flex: 1;
  text-align: center;
  text-decoration: none;
  color: #fff;
  font-size: 10px;
}

.nav-icon {
  font-size: 26px;
  margin-bottom: 2px;
}
