/* ヘッダー全体の設定 */
.hero-header {
  width: 100vw;                /* window幅いっぱい */
  height: 382px;               /* window高さいっぱい（お好みでvh, px等に調整可） */
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(255, 255, 255, 0.4)), url('../img/ankensearch.png'); /* 背景画像のURL */
  background-size: cover;      /* 画像をエリア全体に表示 */
  background-position: center; /* 画像を中央に配置 */
  background-repeat: no-repeat;
  
  /* テキストを中央に配置する設定 */
  display: flex;
  justify-content: center;     /* 水平方向の中央揃え */
  align-items: center;         /* 垂直方向の中央揃え */
  
  /* 文字色とフォント設定 */
  color: #fff;
  text-align: center;
}

/* テキストのスタイル */
.header-content h1 {
  font-size: 3rem;
  margin: 0 0 -6px 0;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5); /* 画像が明るい場合に文字を見やすくする */
}

.header-content p {
  font-size: 1.2rem;
  margin: 0;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}


.top-bar {
/*  position: fixed;
  top: 0; left: 0; right: 0;  */
  position: relative; /* 変更 */
  background: #fff;
  border-bottom: 1px solid #ccc;
  padding: 1rem;
  padding-top: 4rem;
/*  z-index: 1000; */
}

.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5em;
  align-items: center;
}

.form-row input,
.form-row select,
.form-row button,
.form-row label {
  width: auto;
  display: inline;
  font-size: 14px;
  padding: 0.4em 0.6em;
}

fieldset {
  background-color: aliceblue;
  border: 1px solid #ccc;
  padding: 0.5em;
  border-radius: 5px;
}
  .criteria, .count { margin-top: 0.5em; font-size: 14px; }
  /*.pagination { text-align: center; margin-top: 0.5em; font-size: 14px; }
  .pagination a { margin: 0 0.25em; text-decoration: none; color: #0366d6; } */
        .pagination { margin-top: 15px; text-align: center;}
        .pagination a, .pagination span {
            margin-right: 5px;
            padding: 3px 6px;
            border: 1px solid #ccc;
            text-decoration: none;
        }
        .pagination .current {
            font-weight: bold;
            background-color: #eee;
        }
  .results-container { background-color: #fbfbf2a3; margin-top: 0px; padding: 1em; /* max-height: calc(100vh - 220px); */ overflow-y: auto; }
  .card { background-color: #fffff0b0; border: 1px solid #ddd; border-radius: 10px; padding: 1.2em; margin-bottom: 1.2em; box-shadow: 0 2px 5px rgba(0,0,0,0.08); }
  .card h2 { margin: 0 0 0.4em; color: #2c3e50; font-size: 1.1em; }
  .muted { color: #666; font-size: 13px; }
  details summary { cursor: pointer; font-weight: bold; }
  .form-row summary { color: #6d5a5a; cursor: pointer; font-weight: normal; }
  details .body { background: #f4f6f8; padding: 0.8em; border-radius: 6px; margin-top: 0.5em; white-space: pre-wrap; word-break: break-word; overflow-wrap: break-word; }
  .btn_wh {
    background-color: #ffffff;
    border-radius: 5px;
    border: 1px solid #7bb934;
    display: inline-block;
    cursor: pointer;
    color: #333333;
    font-size: 14px;
    padding: 2px 6px;
    text-decoration: none;
}
/* スマホ用：トップバー固定解除＋全体スクロール */
@media screen and (max-width: 768px) {
  .top-bar {
    position: static;   /* 固定解除 */
    margin-bottom: 1em;
  }
  .results-container {
    margin-top: 0;      /* 余白解除 */
    max-height: none;   /* 高さ制限解除 */
    overflow-y: visible; /* 全体を縦スクロール */
  }
  .form-row input, .form-row select, .form-row button, .form-row label {
    font-size: 14px;
    padding: 0.1rem !important;
}

/**** Loading spinner style ***/
.inprogress {
  height: 100vh;
  display: none; /* 初期は非表示 */
  flex-direction: column;
  text-align: center;
  align-items: center;
  justify-content: center;
  opacity: 0.8;
  z-index: 1000;
  background: #fff;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
}
.inprogress p { color: #666; }
.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #ccc;
  border-top: 4px solid #2196f3;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

