/* ════════════════════════════════════════════
   style.css — ルミノスタジオ株式会社 社内掲示板
   ════════════════════════════════════════════ */

/* ── リセット & ベース ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --navy:       #1B3A6B;
  --navy-dark:  #0D2444;
  --navy-mid:   #1E4680;
  --navy-light: #2C5282;
  --accent:     #4A90D9;
  --accent-lt:  #EBF4FF;
  --white:      #FFFFFF;
  --bg:         #F4F6FA;
  --gray:       #E2E8F0;
  --gray-md:    #CBD5E0;
  --text:       #2D3748;
  --text-sm:    #718096;
  --danger:     #C53030;
  --danger-lt:  #FFF5F5;
}

body {
  font-family: 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Noto Sans JP',
               'Yu Gothic', 'Meiryo', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 14px;
}

/* ════════════════════════════════════════════
   LOGIN
   ════════════════════════════════════════════ */
#login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-light) 100%);
}

.login-card {
  background: var(--white);
  border-radius: 14px;
  padding: 48px 40px 40px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .35);
}

.login-logo {
  text-align: center;
  margin-bottom: 36px;
}

.login-logo .logo-icon {
  width: 60px;
  height: 60px;
  background: var(--navy);
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.login-logo .logo-icon span {
  color: var(--white);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -1px;
}

.login-logo h1 {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.4;
}

.login-logo p {
  font-size: 12px;
  color: var(--text-sm);
  margin-top: 4px;
}

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: .3px;
}

.form-group input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--gray);
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color .2s;
  background: #FAFBFC;
}

.form-group input:focus {
  border-color: var(--navy);
  background: var(--white);
}

.login-btn {
  width: 100%;
  padding: 13px;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  margin-top: 6px;
  transition: background .2s, transform .1s;
}

.login-btn:hover  { background: var(--navy-dark); }
.login-btn:active { transform: scale(.99); }

.login-error {
  display: none;
  color: var(--danger);
  font-size: 12px;
  text-align: center;
  margin-top: 12px;
  padding: 8px;
  background: var(--danger-lt);
  border-radius: 6px;
}

/* ════════════════════════════════════════════
   MAIN PAGE
   ════════════════════════════════════════════ */
#main-page { display: none; min-height: 100vh; }

/* ── HEADER ── */
.header {
  background: var(--navy);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .25);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 56px;
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.header-logo {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .3px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-logo .logo-mark {
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, .15);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}

.logout-btn {
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .25);
  color: var(--white);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}

.logout-btn:hover { background: rgba(255, 255, 255, .22); }

/* ── NAV ── */
.header-nav {
  display: flex;
  align-items: stretch;
  padding: 0 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.header-nav::-webkit-scrollbar { display: none; }

.nav-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  height: 44px;
  color: rgba(255, 255, 255, .82);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  text-decoration: none;
  transition: color .15s, background .15s, border-color .15s;
  user-select: none;
}

.nav-item:hover {
  color: var(--white);
  background: rgba(255, 255, 255, .08);
  border-bottom-color: rgba(255, 255, 255, .45);
}

.nav-item svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
}

/* ════════════════════════════════════════════
   MAIN CONTENT
   ════════════════════════════════════════════ */
.main-content {
  width: 100%;
  padding: 28px 32px 48px;
}

/* ── WELCOME BANNER ── */
.welcome-banner {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-mid) 60%, var(--navy-light) 100%);
  color: var(--white);
  border-radius: 14px;
  padding: 28px 32px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.welcome-banner::after {
  content: '';
  position: absolute;
  right: -30px;
  top: -30px;
  width: 180px;
  height: 180px;
  background: rgba(255, 255, 255, .05);
  border-radius: 50%;
}

.welcome-banner h2 { font-size: 20px; font-weight: 700; margin-bottom: 4px; }
.welcome-banner p  { font-size: 13px; opacity: .75; }

/* ════════════════════════════════════════════
   TABS
   ════════════════════════════════════════════ */
.tabs-wrap {
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .07);
  overflow: hidden;
}

.tabs-header {
  display: flex;
  border-bottom: 2px solid var(--gray);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.tabs-header::-webkit-scrollbar { display: none; }

.tab-btn {
  padding: 0 24px;
  height: 50px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sm);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  white-space: nowrap;
  transition: color .15s, border-color .15s, background .15s;
}

.tab-btn:hover  { color: var(--navy); background: var(--accent-lt); }
.tab-btn.active { color: var(--navy); border-bottom-color: var(--navy); }

.tab-pane { display: none; padding: 28px 28px 32px; }
.tab-pane.active { display: block; }

/* ── タブ内セクション区切り ── */
.tab-section { margin-bottom: 0; }
.tab-section + .tab-section { margin-top: 0; }

.tab-section-divider {
  border: none;
  border-top: 2px solid var(--gray);
  margin: 36px 0;
}

.tab-subsec-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-sm);
  letter-spacing: .5px;
  text-transform: uppercase;
  margin-bottom: 14px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--gray);
}

/* ── セクションヘッダー ── */
.sec-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.sec-header h2 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.sec-header .line {
  flex: 1;
  height: 1px;
  background: var(--gray);
}

.sec-sub {
  font-size: 12px;
  color: var(--text-sm);
  margin-top: -12px;
  margin-bottom: 20px;
  line-height: 1.7;
}

/* ════════════════════════════════════════════
   CARDS
   ════════════════════════════════════════════ */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.card {
  display: block;
  background: var(--bg);
  border: 1.5px solid var(--gray);
  border-radius: 10px;
  padding: 18px 18px 16px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .15s;
}

.card:hover {
  border-color: var(--navy);
  box-shadow: 0 6px 18px rgba(27, 58, 107, .13);
  transform: translateY(-2px);
}

.card-icon {
  width: 38px;
  height: 38px;
  background: var(--navy);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.card-icon svg {
  width: 18px;
  height: 18px;
  stroke: var(--white);
  fill: none;
}

.card-icon.green  { background: #276749; }
.card-icon.purple { background: #553C9A; }
.card-icon.orange { background: #9C4221; }

.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  margin-bottom: 7px;
  letter-spacing: .3px;
}

.badge-blue { background: var(--accent-lt); color: var(--accent); }
.badge-red  { background: var(--danger-lt); color: var(--danger); }
.badge-gray { background: var(--gray);      color: var(--text-sm); }

.card h3 { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.card p  { font-size: 11px; color: var(--text-sm); line-height: 1.55; }

/* ════════════════════════════════════════════
   MODAL
   ════════════════════════════════════════════ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .52);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  overflow-y: hidden;
}

.modal-overlay.open { display: flex; }

.modal {
  background: var(--white);
  border-radius: 14px;
  width: 100%;
  max-width: 620px;
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(0, 0, 0, .3);
  animation: modalIn .18s ease;
}

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

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--gray);
  border-radius: 14px 14px 0 0;
  background: var(--white);
  flex-shrink: 0;
}

.modal-header h2 { font-size: 16px; font-weight: 700; color: var(--navy); }

.modal-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: var(--text-sm);
  line-height: 1;
  padding: 4px;
  transition: color .15s;
}

.modal-close:hover { color: var(--text); }

.modal-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

/* ════════════════════════════════════════════
   INFO TABLE（モーダル内）
   ════════════════════════════════════════════ */
.info-block { margin-bottom: 28px; }
.info-block:last-child { margin-bottom: 0; }

.info-block h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--navy);
  margin-bottom: 12px;
}

.info-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.info-table tr { border-bottom: 1px solid var(--gray); }
.info-table tr:last-child { border-bottom: none; }

.info-table th {
  text-align: left;
  padding: 9px 12px;
  background: var(--bg);
  color: var(--text-sm);
  font-weight: 600;
  width: 38%;
  vertical-align: top;
}

.info-table td {
  padding: 9px 12px;
  color: var(--text);
  vertical-align: top;
}

.info-table td a { color: var(--navy); }

/* ════════════════════════════════════════════
   機材リスト
   ════════════════════════════════════════════ */
.eq-owner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 8px;
}

.eq-list-table { width: 100%; border-collapse: collapse; font-size: 13px; }

.eq-list-table th {
  background: var(--navy);
  color: var(--white);
  padding: 9px 12px;
  text-align: left;
  font-weight: 600;
}

.eq-list-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--gray);
}

.eq-list-table tr:last-child td { border-bottom: none; }
.eq-list-table tr:nth-child(even) td { background: var(--bg); }

.eq-loading {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-sm);
  font-size: 13px;
}

.eq-back-btn {
  background: none;
  border: 1.5px solid var(--navy);
  color: var(--navy);
  padding: 7px 16px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 16px;
  transition: background .15s;
}

.eq-back-btn:hover { background: var(--accent-lt); }

/* ════════════════════════════════════════════
   TOAST
   ════════════════════════════════════════════ */
.toast {
  display: none;
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--navy-dark);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 500;
  z-index: 2000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .3);
  max-width: 300px;
  animation: fadeIn .2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ════════════════════════════════════════════
   TILE GRID（アイコンタイル）
   ════════════════════════════════════════════ */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
  gap: 10px;
}

.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  background: var(--white);
  border: 1.5px solid var(--gray);
  border-radius: 10px;
  padding: 18px 10px 16px;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
  text-align: center;
  transition: border-color .2s, box-shadow .2s, transform .15s;
  min-height: 108px;
}

.tile:hover {
  border-color: var(--navy);
  box-shadow: 0 4px 16px rgba(27, 58, 107, .14);
  transform: translateY(-2px);
}

.tile__icon {
  width: 48px;
  height: 48px;
  background: var(--navy);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tile__icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--white);
  fill: none;
}

.tile__icon.green  { background: #276749; }
.tile__icon.purple { background: #553C9A; }
.tile__icon.orange { background: #9C4221; }
.tile__icon.blue   { background: #0078D4; }
.tile__icon.sky    { background: #1575F9; }
.tile__icon.droid  { background: #3DDC84; }
.tile__icon.black  { background: #111; }
.tile__icon.red    { background: #FF4A00; }
.tile__icon.pink   { background: #FF3670; }
.tile__icon.amber  { background: #FF9900; }

.tile__label {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
}

.tile__badge {
  font-size: 10px;
  padding: 1px 7px;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: .2px;
}

/* ════════════════════════════════════════════
   BLOCK GRID（見出し付きリストブロック）
   ════════════════════════════════════════════ */
.block-grid {
  display: grid;
  gap: 14px;
}

.block-grid--1 { grid-template-columns: 1fr; }
.block-grid--2 { grid-template-columns: repeat(2, 1fr); }
.block-grid--3 { grid-template-columns: repeat(3, 1fr); }

.block-item {
  border: 1.5px solid var(--gray);
  border-radius: 8px;
  overflow: hidden;
}

.block-item__header {
  background: var(--navy);
  color: var(--white);
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .2px;
}

.block-item__body {
  padding: 8px 14px 10px;
  background: var(--white);
}

.block-item__link {
  display: block;
  padding: 5px 0;
  font-size: 13px;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  line-height: 1.5;
  border-bottom: 1px solid var(--gray);
}

.block-item__link:last-child { border-bottom: none; }

.block-item__link::before {
  content: "・";
  color: var(--navy);
  font-weight: 700;
}

.block-item__link:hover {
  color: var(--navy);
  text-decoration: underline;
}

/* ════════════════════════════════════════════
   COMING SOON / フォールバック
   ════════════════════════════════════════════ */
.coming-soon-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 48px 24px;
  background: var(--bg);
  border: 2px dashed var(--gray-md);
  border-radius: 12px;
  color: var(--text-sm);
  text-align: center;
}

.coming-soon-card p { font-size: 13px; }

/* ════════════════════════════════════════════
   BADGES（ロール）
   ════════════════════════════════════════════ */
.badge-admin {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  background: var(--navy);
  color: var(--white);
  letter-spacing: .3px;
}

.badge-member {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  background: var(--gray);
  color: var(--text-sm);
  letter-spacing: .3px;
}

/* ════════════════════════════════════════════
   HEADER USER INFO
   ════════════════════════════════════════════ */
.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ── マイアカウントボタン（ヘッダー右上） ── */
.myaccount-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .25);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
.myaccount-btn:hover { background: rgba(255, 255, 255, .22); }
.myaccount-btn svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  fill: none;
  flex-shrink: 0;
}

.header-user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255, 255, 255, .9);
}

.header-username {
  font-weight: 600;
}

/* ════════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════════ */
.btn-primary {
  background: var(--navy);
  color: var(--white);
  border: none;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.btn-primary:hover { background: var(--navy-dark); }

.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border: 1.5px solid var(--navy);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.btn-secondary:hover { background: var(--accent-lt); }

.btn-sm {
  padding: 5px 12px;
  font-size: 12px;
}

.btn-danger-outline {
  background: var(--white);
  color: var(--danger);
  border: 1.5px solid var(--danger);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
}
.btn-danger-outline:hover { background: var(--danger-lt); }

/* ════════════════════════════════════════════
   FORM PARTS (モーダル内)
   ════════════════════════════════════════════ */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--gray);
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  background: #FAFBFC;
  transition: border-color .2s;
}
.form-group select:focus { border-color: var(--navy); background: var(--white); }

.form-group textarea {
  font-family: inherit;
}

.required { color: var(--danger); font-size: 11px; }

.form-error {
  color: var(--danger);
  font-size: 12px;
  min-height: 18px;
  margin-top: 4px;
}

.password-display {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border: 1.5px solid var(--gray);
  border-radius: 8px;
  padding: 9px 14px;
}
.password-display__text {
  font-family: monospace;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: .05em;
  flex: 1;
}

/* ════════════════════════════════════════════
   インフォメーション
   ════════════════════════════════════════════ */
.info-card {
  background: var(--white);
  border: 1.5px solid var(--gray);
  border-radius: 10px;
  padding: 18px 20px;
  margin-bottom: 12px;
  transition: box-shadow .15s;
}
.info-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.07); }

.info-card--pinned {
  border-color: var(--navy);
  background: var(--accent-lt);
}

.info-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}

.info-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.info-card__date {
  font-size: 12px;
  color: var(--text-sm);
}

.info-card__author {
  font-size: 12px;
  color: var(--text-sm);
}

.info-card__actions {
  display: flex;
  gap: 8px;
}

.info-card__title {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.info-card__body {
  font-size: 13px;
  color: var(--text);
  line-height: 1.7;
}

/* ════════════════════════════════════════════
   ステータスバッジ
   ════════════════════════════════════════════ */
.status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
}
.status-badge--pinned   { background: var(--navy); color: var(--white); }
.status-badge--good     { background: #C6F6D5; color: #276749; }
.status-badge--repair   { background: #FEFCBF; color: #744210; }
.status-badge--discarded{ background: var(--danger-lt); color: var(--danger); }
.status-badge--other    { background: var(--gray); color: var(--text-sm); }

/* ════════════════════════════════════════════
   プロフィールカード
   ════════════════════════════════════════════ */
.profile-card {
  display: flex;
  align-items: center;
  gap: 20px;
  background: var(--bg);
  border: 1.5px solid var(--gray);
  border-radius: 12px;
  padding: 20px 24px;
  flex-wrap: wrap;
}

.profile-card__avatar {
  width: 64px;
  height: 64px;
  background: var(--navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--white);
  stroke: var(--white);
}

.profile-card__info { flex: 1; min-width: 180px; }
.profile-card__name { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.profile-card__sub  { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.profile-card__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ════════════════════════════════════════════
   ユーザーテーブル
   ════════════════════════════════════════════ */
.user-table, .equip-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.user-table th, .equip-table th {
  background: var(--navy);
  color: var(--white);
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}

.user-table td, .equip-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--gray);
  vertical-align: middle;
}

.user-table tr:last-child td,
.equip-table tr:last-child td { border-bottom: none; }

.user-table tr:hover td,
.equip-table tr:hover td { background: var(--accent-lt); }

.user-table__actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

/* ── オーナーカード（機材選択） ── */
.owner-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--bg);
  border: 1.5px solid var(--gray);
  border-radius: 10px;
  padding: 20px 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  transition: border-color .2s, box-shadow .2s, transform .15s;
}
.owner-card:hover {
  border-color: var(--navy);
  box-shadow: 0 4px 14px rgba(27,58,107,.12);
  transform: translateY(-2px);
}

/* ── empty state ── */
.empty-state {
  text-align: center;
  padding: 32px;
  color: var(--text-sm);
  font-size: 13px;
}

/* ════════════════════════════════════════════
   請求書アップロードタブ
   ════════════════════════════════════════════ */

/* 振込予定バナー */
.payment-banner {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-mid) 100%);
  border-radius: 12px;
  padding: 20px 28px;
  color: var(--white);
}

.payment-banner__cycle {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.payment-banner__block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.payment-banner__label {
  font-size: 11px;
  opacity: .7;
  letter-spacing: .5px;
  font-weight: 600;
  text-transform: uppercase;
}

.payment-banner__date {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.3px;
}

.payment-banner__sub {
  font-size: 11px;
  opacity: .65;
}

.payment-banner__block--pay .payment-banner__date {
  color: #90CDF4;
}

.payment-banner__arrow {
  width: 24px;
  height: 24px;
  opacity: .5;
  flex-shrink: 0;
}

/* アップロードエリア */
.invoice-upload-area {
  background: var(--bg);
  border: 2px dashed var(--gray-md);
  border-radius: 12px;
  padding: 32px 24px;
  text-align: center;
  transition: border-color .2s, background .2s;
}

.invoice-upload-area:hover {
  border-color: var(--navy);
  background: var(--accent-lt);
}

/* ファイル名表示 */
.invoice-filename {
  font-weight: 600;
  color: var(--text);
  word-break: break-all;
}

/* ── パスワード再設定リンク ── */
.forgot-pw-link {
  font-size: 12px;
  color: var(--text-sm);
  text-decoration: underline;
}
.forgot-pw-link:hover { color: var(--navy); }

/* ── プロフィール詳細テーブル ── */
.profile-info-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 10px;
}
.profile-info-table th {
  text-align: left;
  padding: 5px 10px 5px 0;
  color: var(--text-sm);
  font-weight: 600;
  width: 120px;
  white-space: nowrap;
}
.profile-info-table td {
  padding: 5px 0;
  color: var(--text);
}

/* ── 強制変更モーダル（閉じられない） ── */
.modal--no-dismiss { pointer-events: auto; }
.modal--no-dismiss .modal-overlay { pointer-events: none; }

/* ════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════ */
@media (max-width: 900px) {
  .block-grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .header-logo   { font-size: 13px; }
  .main-content  { padding: 16px 14px 40px; }
  .tab-pane      { padding: 20px 16px 24px; }
  .cards-grid    { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; }
  .login-card    { padding: 36px 24px 28px; }
  .eq-owner-grid { grid-template-columns: 1fr; }
  .form-row      { grid-template-columns: 1fr; }
  .profile-card  { flex-direction: column; align-items: flex-start; }
  .header-user-info .header-username { display: none; }
  .myaccount-btn span { display: none; }
  .block-grid--2 { grid-template-columns: 1fr; }
  .block-grid--3 { grid-template-columns: 1fr; }
  .tile-grid     { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); }
}

@media (max-width: 480px) {
  .cards-grid  { grid-template-columns: 1fr 1fr; }
  .header-top  { padding: 0 14px; }
  .header-nav  { padding: 0 6px; }
  .nav-item    { padding: 0 10px; font-size: 12px; }
}
