body { font-family: sans-serif; }

.pc {
  display: inline;
}
/* スマホ（画面幅767px以下）では非表示 */
@media screen and (max-width: 768px) {
  .pc {
    display: none;
  }
}
.sp {
  display: none;
}

/* スマホ表示の時だけ有効にする */
@media screen and (max-width: 768px) {
  .sp {
    display: inline;
  }
}

/* ヘッダー全体の設定 */
.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);
}


        .search-form { margin: 30px 5px 20px 5px; padding: 10px; border: 1px solid #ccc;
                                background-color: rgb(255, 255, 255, 0.8);
                                border-radius: 10px;
         }
        .search-form div { margin-bottom: 8px; }
        .card { border: 1px solid #ccc; padding: 10px; margin-bottom: 10px; }
        .card-title { font-weight: bold; font-size: 1.1em; margin-bottom: 5px; }
        .label { font-weight: bold; display: inline-block; min-width: 100px; }
        .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;
        }
        .message { color: red; margin-bottom: 10px; }
        
        fieldset {
          background-color: aliceblue;
          border: 1px solid #ccc;
          padding: 0.5em;
          border-radius: 5px;
        }
        .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;
        }
        .form-row summary {
          color: #6d5a5a;
          cursor: pointer;
          font-weight: normal;
         }

  .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; }
  .results-container {
    margin-top: 0;      /* 余白解除 */
    max-height: none;   /* 高さ制限解除 */
    overflow-y: visible; /* 全体を縦スクロール */
  }

   @media screen and (max-width: 768px) {
     .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 !important;
        padding: 0.1rem !important;
     }
   }
   
   /* ローディング表示のスタイル */
#loading-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.8);
    display: none; /* 初期状態は非表示 */
    z-index: 9999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
.spinner {
    width: 50px; height: 50px;
    border: 5px solid #ccc;
    border-top-color: #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}