/* 全体のスタイル */
body {
    font-family: 'Arial', sans-serif;
    margin: 20px;
    background-color: #f9f9f9;
    color: #333;
  }
  
  h1, h2 {
    text-align: center;
    color: #4CAF50;
    font-weight: bold;
  }
  
  .controls {
    margin-bottom: 20px;
    text-align: center;
  }
  
  select {
    margin: 0 10px;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    transition: all 0.3s;
  }
  
  select:hover, select:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
  }
  
  /* テーブルスタイル */
  table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  }
  
  th, td {
    padding: 12px;
    text-align: left;
    border: 1px solid #ddd;
  }
  
  th {
    background-color: #4CAF50;
    color: white;
    font-weight: bold;
  }
  
  td {
    vertical-align: top;
  }
  
  tr:nth-child(even) {
    background-color: #f2f2f2;
  }
  
  tr:hover {
    background-color: #f1f1f1;
  }
  
  /* 詳細ボタン */
  .show-more {
    display: inline-block;
    margin-top: 10px;
    padding: 8px 12px;
    font-size: 14px;
    color: white;
    background-color: #4CAF50;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
  }
  
  .show-more:hover {
    background-color: #45a049;
  }
  
  .show-more:disabled {
    background-color: #ccc;
    cursor: not-allowed;
  }
  
  /* 詳細エリア */
  .details {
    margin-top: 10px;
    padding: 10px;
    background-color: #f9f9f9;
    border-left: 5px solid #4CAF50;
    font-size: 14px;
    color: #555;
  }
  
  /* タイトルと内容の間隔 */
  h3 {
    margin: 20px 0 10px;
    color: #4CAF50;
    font-weight: bold;
  }
  
  /* カード型デザイン (縦型ビュー用) */
  /*いったん不活化
  li {
    list-style: none;
    margin-bottom: 20px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
  }

  li:hover {
    transform: scale(1.02);
  }
    */
  
  /* レスポンシブ対応 */
  @media (max-width: 768px) {
    table {
      font-size: 14px;
    }
  
    select {
      font-size: 14px;
      padding: 8px;
    }
  
    .show-more {
      font-size: 12px;
      padding: 6px 10px;
    }
  }
  p#categoryInfo {
    background-color: #ffffff;
    padding:5px;
    border:  #ffffff70 solid 1px ;
    border-radius: 5px;
  }
  p#categoryInfo::first-letter {
    margin-left: 1em; /* インデントの幅を調整 */
  }

  div.drug-container {
    padding: 10px;
    background-color: #ffffff;
    border-radius: 5px;
  }

  /*コンテナのAWaRe別色分け*/
  div.Access {
    border:solid 2px;
    border-color: #4CAF50;
    background-color: #fafffa;
  }
  div.Watch {
    border:solid 2px;
    border-color: #fdfdaa;
    background-color: #fffffa;

  }
  div.Reserve {
    border:solid 2px;
    border-color: #fa0000;
    background-color: #fffafa;
  }
  div.aware-default {
    background-color: transparent;
  }

  /*AWaReセルの色分け*/
  td.Access {
    background-color: #f0fff0;
  }

  td.Watch {
    background-color: #fffff0;
  }

  td.Reserve {
    background-color: #fff0f0;
  }

  td.aware-default {
    background-color: transparent;
  }

  .explain {
    background-color: white; /* 背景色を白に設定 */
    padding: 10px; /* 内側の余白を設定 */
    border-radius: 5px; /* 角を丸める */
    border: 1px solid #ccc; /* 境界線を薄いグレーで設定 */
    list-style-position: inside; /* リストマークを内側に配置 */
  }
  
  .explain li {
    list-style-type: square; /* リストマークを四角に設定 */
    margin-bottom: 5px; /* 各リストアイテム間の余白を設定 */
  }

  p.whiteback {
    background-color: white; /* 背景色を白に設定 */
    padding: 10px; /* 内側の余白を設定 */
    border-radius: 5px; /* 角を丸める */
  }

 /* モーダル全体 */
.modal {
  display: none; /* 初期は非表示 */
  position: fixed;
  z-index: 2000;
  left: 0; top: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.4);
}

/* モーダル内容部分 */
.modal-content {
  background: #fff;
  margin: 10% auto;
  padding: 20px;
  border-radius: 10px;
  width: 80%;
  max-width: 500px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

/* 閉じるボタン */
.close-btn {
  float: right;
  font-size: 20px;
  cursor: pointer;
}
.close-btn:hover {
  color: red;
}
