@charset "UTF-8";
/* =========================================
   theme-business.css — Blue Corporate (mobile-optimized header)
   ========================================= */
:root {
  --bg: #f3f6fb;
  --surface: #ffffff;
  --surface-2: #f0f4fa;
  --text: #1e293b;
  --muted: #64748b;
  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --border: #d1d5db;
  --shadow: 0 6px 18px rgba(0,0,0,.08);
}

/* =========================================
   Header
   ========================================= */
header#headerid1 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  padding: 10px 24px;
  background: linear-gradient(180deg, #f3f7fc 0%, #e8f0fb 100%);
  box-shadow: 0 3px 6px rgba(0,0,0,0.08);
  border: 1px solid #bcd8ff;
  border-bottom-width: 1px;
  border-radius: 12px;
  margin: 0 auto;
}

/* ---- 左側：ロゴとタイトル ---- */
#headerid1 .logo-title {
  margin-right: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
#headerid1 .logo-title img { height: 48px; width: auto; }
#headerid1 .system-name {
  font-size: 18px;
  font-weight: 600;
  color: #1e3a8a;
  margin-top: 4px;
  text-align: center;
}

/* ---- ナビゲーション ---- */
#headerid1 nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: nowrap;
  white-space: nowrap;
  margin-left: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
#headerid1 nav::-webkit-scrollbar { display: none; }

#headerid1 .nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  margin-right: 4px;
  background: linear-gradient(180deg, #eaf1ff, #d0e0ff);
  border: 1px solid #c3d3ff;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
  color: #1d4ed8;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,.08);
  transition: all .15s ease-out;
  text-decoration: none;
  flex: 0 0 auto;
}
#headerid1 .nav-button:hover {
  background: linear-gradient(180deg, #dce9ff, #c7d9ff);
  transform: translateY(-2px);
  box-shadow: 0 5px 0 #1d4ed8, 0 10px 18px rgba(59,130,246,.4);
}
#headerid1 .nav-button:active {
  transform: translateY(2px);
  background: linear-gradient(180deg, #3b82f6 0%, #1e40af 95%);
  box-shadow: 0 2px 0 #1e3a8a, inset 0 2px 4px rgba(255,255,255,.2);
}
#headerid1 .nav-button.active {
  background: linear-gradient(180deg, #2563eb 0%, #1e3a8a 95%);
  box-shadow: inset 0 3px 6px rgba(0,0,0,.3), 0 2px 0 #1e3a8a;
  transform: translateY(1px);
}

/* ---- 右側：ユーザー情報 ---- */
#headerid1 .user-info {
  margin-left: auto;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  white-space: nowrap;
  font-size: 14px;
}
#headerid1 .user-info .user-lines {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.1;
}
#headerid1 .user-info .user-name {
  width: 100%;
  display: block; 
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: #0f1f4b;
  text-shadow: 0 1px 0 rgba(255,255,255,.5);
}
#headerid1 .user-info .user-id {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #1e3a8a;
  padding: 2px 10px;
  border-radius: 999px;
  border: 1px solid #c3d3ff;
  background: linear-gradient(180deg, #eaf1ff, #d7e5ff);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.06);
}
#headerid1 .logout-btn,
#headerid1 .login-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  color: #fff !important;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(37,99,235,.25);
  transition: transform .12s ease, box-shadow .12s ease;
}
#headerid1 .logout-btn:hover,
#headerid1 .login-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(37,99,235,.35);
}

/* =========================================
   Footer
   ========================================= */
footer small {
  display: block;
  text-align: center;
  padding: 12px 16px;
  border-radius: 10px;
  background: linear-gradient(to right, #cde4ff, #057ae7);
  color: #eaf2ff;
  letter-spacing: .03em;
}

/* =========================================
   Misc
   ========================================= */
div#div_inp { font-size: x-large; }
html { scrollbar-gutter: stable both-edges; }

/* =========================================
   Responsive Design
   ========================================= */

/* ～900px：コンパクト化 */
@media (max-width: 900px) {
  #headerid1 { padding: 8px 12px; gap: 10px; }
  #headerid1 nav { gap: 10px; }
  #headerid1 .nav-button { padding: 8px 12px; font-size: 14px; }
  #headerid1 .user-info { gap: 8px; }
  #headerid1 .user-info .user-name { font-size: 14px; }
  #headerid1 .user-info .user-id { font-size: 11px; padding: 2px 8px; }
  #headerid1 .logout-btn, #headerid1 .login-btn {
    padding: 6px 10px; font-size: 13px;
  }
}

/* ～640px：ロゴ非表示＋ヘッダ低く */
@media (max-width: 640px) {
  #headerid1 .logo-title { display: none; }
  #headerid1 { padding: 6px 10px; gap: 8px; }
  #headerid1 nav { gap: 8px; }
  #headerid1 .nav-button {
    padding: 7px 10px; font-size: 13px; border-radius: 8px;
  }
  #headerid1 .user-info { gap: 6px; }
  #headerid1 .user-info .user-name {
    font-size: 13px;
  }
  #headerid1 .user-info .user-id {
    font-size: 10.5px; padding: 2px 8px;
  }
  #headerid1 .logout-btn, #headerid1 .login-btn {
    padding: 6px 9px; font-size: 12.5px;
  }
}

/* ～360px：極小端末対応 */
@media (max-width: 360px) {
  #headerid1 .nav-button,
  #headerid1 .logout-btn,
  #headerid1 .login-btn {
    padding: 6px 8px;
    font-size: 12px;
  }
}

/* ～768px：統計ナビ非表示 */
@media (max-width: 768px) {
  #headerid1 .nav-button.nav-analytics {
    display: none !important;
    pointer-events: none !important;
    visibility: hidden !important;
  }
}

/* 追加：モバイルでは .hide-on-mobile を消す */
@media (max-width: 900px){
  .hide-on-mobile { display: none !important; }
}
