/* styles.css */

/* 全体のリセットと基本設定 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    word-break: break-all;
  }
  
  body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
  }
  
  /* コンテナ */
  .container {
    max-width: 960px;
    margin: 1em auto;
    padding: 1em;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  
  /* 見出し */
  h1 {
    text-align: center;
    margin-bottom: 0.8em;
    font-size: 1.8em;
  }
  
  /* フォーム関連 */
  .search-form {
    margin-bottom: 1em;
  }
  
  .form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5em;
    margin-bottom: 0.5em;
  }
  
  .form-group {
    flex: 1;
    min-width: 150px;
  }
  
  /* 入力・セレクト */
  .form-group input[type="text"],
  .form-group input[type="number"],
  .form-group select {
    width: 100%;
    padding: 0.4em;
    font-size: 0.9em;
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #fafafa;
  }
  
  /* 検索ボタン */
  .search-button {
    padding: 0.4em 0.8em;
    font-size: 0.9em;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
  }
  
  .search-button:hover {
    background: #0056b3;
  }
  
  /* 結果タイトル */
  .results h2 {
    font-size: 1.2em;
    margin-bottom: 0.5em;
  }
  
  /* テーブル */
  table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1em;
  }
  
  table thead th {
    background: #007bff;
    color: #fff;
    padding: 0.5em;
    font-size: 0.9em;
    text-align: left;
  }
  
  table tbody td {
    padding: 0.5em;
    border-bottom: 1px solid #ddd;
    font-size: 0.9em;
  }
  
  /* マウスオーバーでハイライト */
  table tbody tr:hover {
    background: #f1f1f1;
  }
  
  /* 結果内の補助情報 */
  .info {
    font-size: 0.8em;
    color: #666;
    margin-top: 0.2em;
  }
  
  /* ページネーション */
  .pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 1em 0;
  }
  
  .page-info-container {
    margin-bottom: 0.5em;
  }
  
  .page-buttons a,
  .page-buttons span {
    display: inline-block;
    padding: 0.3em 0.6em;
    margin: 0 0.2em;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 0.9em;
    text-decoration: none;
    color: #333;
  }
  
  .page-buttons a:hover {
    background: #007bff;
    color: #fff;
  }
  
  .page-buttons .current {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
  }
  
  /* レスポンシブ対応 */
  @media (max-width: 600px) {
    .form-row {
      flex-direction: column;
    }
    .form-group {
      min-width: 100%;
    }
    h1 {
      font-size: 1.6em;
    }
    .search-button {
      font-size: 0.9em;
    }
    table thead th, table tbody td {
      font-size: 0.8em;
    }
    .page-buttons a,
    .page-buttons span {
      font-size: 0.8em;
      padding: 0.2em 0.4em;
    }
  }
