/* ========================================
   Mobile Layout - モバイルレイアウト
   最大幅768px以下のデバイス向けスタイル
   ======================================== */

@media screen and (max-width: 768px) {

  /* ========================================
     1. ヘッダー関連
     ======================================== */
  
  header {
    background-color: transparent;
    padding: 0;
  }
  
  .header-bar {
    background-color: var(--unit-color);
    padding: 1rem;
    text-align: center;
    margin-top: 37px;
  }
  
  .mobile-header-title {
    color: white;
    font-size: 32px;
    margin: 0;
    font-weight: normal;
  }

  .header-welcome {
    text-align: center;
    margin: -20px 0 40px 0;
    font-size: 18px;
    color: var(--unit-color);
    font-weight: 500;
    position: static;
  }

  .header-welcome a {
    display: none;
  }

  h2.main-title {
    display: none;
  }

  /* ========================================
     2. ナビゲーション
     ======================================== */
  
  .nav-home,
  .nav-logout {
    display: none;
  }

  /* ========================================
     3. レイアウト構造
     ======================================== */
  
  section.unit-flex-group {
    flex-direction: column;
  }

  .unit-flex-left,
  .unit-flex-right {
    width: 100%;
  }

  #network-detail {
    margin-top: 1rem;
  }

  /* ========================================
     4. テーブル
     ======================================== */
  
  .table-scroll-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .table-scroll-wrapper table {
    width: auto;
    white-space: nowrap;
  }

  thead {
    display: none;
  }

  tr {
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    background-color: white;
    padding: 0.5rem;
  }

  td {
    text-align: left;
    padding: 0.5rem;
    position: relative;
  }

  td::before {
    content: attr(data-label);
    font-weight: bold;
    display: block;
    margin-bottom: 0.25rem;
    color: #555;
  }

  /* ========================================
     5. アプリケーション要素
     ======================================== */
  
  .q-app-icon {
    display: none;
  }

  .q-app-content-body {
    display: block;
    margin-top: 10px;
    font-size: 14px;
    line-height: 1.4;
    opacity: 0.9;
  }

  .q-app-content a {
    display: none;
  }

  /* ========================================
     6. モーダル
     ======================================== */
  
  .modal-content {
    width: 95% !important;
    margin: auto;
  }

  /* ========================================
     7. フッター
     ======================================== */
  
  footer {
    font-size: 12px;
    padding: 10px 0;
  }

}
