/* ヘッダー関連スタイル - header.css */

/* ユーザーコンテナ */
.user-container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-top: 10px;
}

.user-info {
  margin-right: 10px;
}

/* ライセンス情報 */
.license-container {
  text-align: right;
  margin-bottom: 10px;
  font-size: 12px;
}

.license-info {
  color: #666;
  margin: 0;
}

/* ライセンス情報アイコンのスタイル */
.license-info-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-color: #2196F3;
    color: white;
    font-size: 11px;
    font-weight: bold;
    text-align: center;
    line-height: 16px;
    border-radius: 50%;
    margin-right: 5px;
    cursor: help;
}

/* ライセンス情報ツールチップのスタイル */
.license-tooltip-popup {
    display: none;
    position: absolute;
    right: 20px;
    top: 50px;
    background-color: #555;
    color: #fff;
    padding: 10px 15px;
    border-radius: 6px;
    width: 280px;
    font-size: 13px;
    line-height: 1.5;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    text-align: left;
}

/* 固定ヘッダー（スマホビュー専用） */
.fixed-header {
  display: none;
}

.header-spacer {
  display: none;
}

/* スマホビュー調整 */
@media screen and (max-width: 500px) {
  /* 固定ヘッダー用のスタイル */
  .fixed-header {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      background-color: #fff;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
      z-index: 1000;
      padding: 5px 15px;
      box-sizing: border-box;
      display: block;
  }
  
  .header-spacer {
      height: 50px;
      display: block;
  }
  
  /* PC用のヘッダーを非表示 */
  .pc-header {
      display: none !important;
  }
  
  /* メインコンテンツのマージン調整 */
  main {
      margin-top: 10px;
  }

  /* ヘッダーのユーザー情報エリアを横並びに */
  header {
    display: flex;
    flex-direction: column;
    margin-bottom: 15px;
  }
  
  header h1 {
    width: 100%;
    margin-bottom: 5px;
    padding-bottom: 5px;
    order: 1;
  }
  
  .license-container {
    width: 100%;
    order: 2;
    margin-bottom: 5px;
    text-align: center;
  }
  
  .license-tooltip-popup {
    width: 250px;
    right: 10px;
    top: 60px;
    font-size: 12px;
  }
  
  .user-container {
    width: 100%;
    order: 3;
    display: flex;
    flex-direction: row;
    justify-content: flex-end; /* 右寄せに修正 */
    align-items: center;
    margin-top: 5px;
  }
  
  .user-info {
    margin-right: 10px;
    margin-bottom: 0;
    font-size: 12px;
  }
}

/* PC表示時はモバイル固定ヘッダーを非表示 */
@media screen and (min-width: 501px) {
  .fixed-header, .header-spacer {
      display: none;
  }
}