    body {
      margin: 0;
      font-family: Arial, sans-serif;
      background: #F8F2E8;
      display: flex;
      flex-direction: column;
      min-height: 100vh;
      padding-top: 0;
    }

  .logo {
    position: static;
    top: auto;
    background: #F8F2E8; /* 背景色を指定し重なり防止 */
    padding: 0.5rem;
    text-align: left;
  }

  .logo img {
    display: block;
    max-width: 400px;
    height: auto;
  }

  header.navbar {
    position: static;
    top: auto; /* ロゴの高さ分ずらす */
  }

    .search-container h2 {
      text-align: center;
      margin-bottom: 1.5rem;
    }

    .form-group {
      display: flex;
      align-items: center;
      margin-bottom: 0.3rem;
    }

    .form-row {
      display: flex;
      gap: 0.5rem;
      flex-wrap: wrap;
      flex: 1;
    }

    .form-row input,
    .form-row select {
      font-size: 0.9rem;
      padding: 0.3rem;
      border: 1px solid #ccc;
      border-radius: 4px;
    }

    .form-row input {
      flex: 2;
      min-width: 0;
      width: 100%;
    }

    .form-row select {
      flex: 1;
      min-width: 120px;
    }

    .form-row.year-range input {
      flex: 1;
    }

    .form-group label {
      font-weight: bold;
      margin-bottom: 0.2rem;
      display: block;
      width: 160px;
      margin-right: 0.5rem;
      font-size: 0.95rem;
    }

    .search-buttons {
      display: flex;
      gap: 0.5rem; /* ボタンの間隔 */
      justify-content: center; /* 中央寄せ（左寄せなら flex-start） */
      margin-top: 1rem;
    }

    .search-button,
    .clear-button {
      padding: 0.5rem 1.2rem;
      border: none;
      border-radius: 4px;
      font-size: 1rem;
      cursor: pointer;
    }

    .search-button {
      background-color: #4a90e2;
      color: white;
    }

    .clear-button {
      background-color: #ccc;
      color: black;
    }

    @media (max-width: 600px) {
      .form-row {
        flex-direction: column;
      }

      .form-row select,
      .form-row input {
        width: 100%;
      }
        .form-group {
        flex-direction: column;
        align-items: flex-start;
      }
      .form-group label {
        width: auto;
        margin-bottom: 0.3rem;
      }
    }

    /* メニューバーのスタイル */
    .navbar {
      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;
    }

    .nav-container {
      max-width: 960px;
      margin: 0 auto;
      padding: 0.6rem 1rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .nav-logo {
      color: white;
      font-weight: bold;
      font-size: 1.2rem;
      text-decoration: none;
    }

    .nav-menu {
      list-style: none;
      display: flex;
      gap: 1rem;
      margin: 0;
      padding: 0;
    }

    .nav-menu li a {
      color: black;
      text-decoration: none;
      font-weight: 500;
      padding: 0.3rem 0.6rem;
      border-radius: 3px;
      transition: background-color 0.3s;
    }

  .nav-menu li a:hover {
    background-color: rgba(0,123,255,1);
    color: white;
  }

    .search-container {
      max-width: 1000px;
      min-width: 800px;
      background: #fff;
      padding: 2rem;
      border-radius: 12px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
      width: 90%;
      margin-top: 1.5rem;
      margin: 0 auto;
      justify-content: center;
    }

    .form-group label {
      font-size: 1rem;
      color: #333;
    }

    .search-button {
      display: block;
      margin: 1rem auto 0;
      width: 150px;
      padding: 0.6rem;
      font-size: 1rem;
      background-color: #66ccff;
      color: white;
      border: none;
      border-radius: 5px;
      cursor: pointer;
      transition: background-color 0.3s;
    }

    .narrow-input {
      flex: none !important;
      width: 150px !important;  /* ISBNや資料No.用 */
    }

    .year-range .narrow-input {
      flex: none !important;
      width: 150px !important;   /* 請求番号をさらに狭く */
    }

    .narrow-select {
      flex: none !important;
      width: 150px !important;  /* 和洋区分用 */
    }

    .footer {
      width: 100%;
      background-color: #fff;
      color: black;
      padding: 0.3rem 0;
      margin-top: 2rem;
      text-align: center;
    }
