/*画面幅1301px以上の設定
------------------------------------------------------------------------------------------------------------------------------------------------------*/
@media screen and (min-width:1301px){

  /* タブのコンテナ */
  .tabs-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1020px;
    margin: 2px auto;
    border: 0px solid #c6b587;
    padding: 1px,1px;
  }

  /* 各タブ */
  .tab {
    width: 16.4%;
    height : 30px;
    padding: 0px;
    background: #eae6d9;
    text-align: center;
    cursor: pointer;
    border: 1px solid #c6b587;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s;

  }

  /* タブの画像 */
  .tab-img {
    width: auto; /* 画像サイズを調整 */
    height: 90%;
  }

  /* アクティブなタブ */
  .tab.active {
    background-color: #588d67;
  }

  #tab-content {
    margin: 10px auto;
    /*padding: 10px;*/
    border: 1px solid #c6b587;
    background: #eae6d9;
    max-width: 1020px;
    width: 100%;
    text-align: left;

    /* スクロール設定 */
    max-height: 490px; /* 高さを制限 */
    overflow-y: auto;  /* 縦スクロールを有効化 */
    overflow-x: hidden; /* 横スクロールは不要なら非表示 */
  }

  .tab-title {
    margin-left: 10px;
  }  

  /* テーブルラッパー */
  .table-wrapper {
      display: grid; 
      grid-template-columns: repeat(3, 1fr); /* 3列表示 */
      gap: 1px;
      width: 100%;
      box-sizing: border-box;
      margin: 0 auto;
      padding: 10px;
  }

  /* テーブルラッパー */
  .table-wrapper1 {
    display: grid; 
    grid-template-columns: repeat(2, 1fr); /* 2列表示 */
    gap: 1px;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 10px;
  }

  /* セル */
  .cell1 {
    width: 100px;
    text-align: center;
    background: #eae6d9;  
  }
  .cell2 {
    width: 100px;
    text-align: left;
    background: #eae6d9;
  }
  .cell3 {
    width: 800px;
    text-align: left;
    background: #eae6d9;
  }
  .cell4 {
    width: 900px;
    text-align: left;
    background: #eae6d9;
  }

  .modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
  }

  .modal-content {
    line-height: 1.2; /* 行間をやや狭く（デフォルトは1.6前後） */
    padding-left: 1.2em; /* 箇条書きのインデント */
    background: white;
    padding: 20px;
    border-radius: 8px;
    width: 700px;
    text-align: left;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  }

  .close-button {
    background-color: #f44336;
    color: white;
    border: none;
    padding: 8px 16px;
    margin-top: 10px;
    cursor: pointer;
  }

}
/* 481pxから1300pxの間 */
@media screen and (min-width: 481px) and (max-width: 1300px) {
    /* タブのコンテナ */
    .tabs-container {
      display: flex;
      flex-wrap: wrap;
      max-width: 1020px;
      margin: 2px auto;
      border: 0px solid #c6b587;
      padding: 1px,1px;
    }
  
    /* 各タブ */
    .tab {
      width: 16.4%;
      height : 30px;
      padding: 0px;
      background: #eae6d9;
      text-align: center;
      cursor: pointer;
      border: 1px solid #c6b587;
      text-align: center;
      cursor: pointer;
      transition: background 0.3s;
  
    }
  
    /* タブの画像 */
    .tab-img {
      width: auto; /* 画像サイズを調整 */
      height: 90%;
    }
  
    /* アクティブなタブ */
    .tab.active {
      background-color: #588d67;
    }
  
    #tab-content {
      margin: 10px auto;
      /*padding: 10px;*/
      border: 1px solid #c6b587;
      background: #eae6d9;
      max-width: 1020px;
      width: 100%;
      text-align: left;
  
      /* スクロール設定 */
      max-height: 490px; /* 高さを制限 */
      overflow-y: auto;  /* 縦スクロールを有効化 */
      overflow-x: hidden; /* 横スクロールは不要なら非表示 */
    }
  
    .tab-title {
      margin-left: 10px;
    }  
  
    /* テーブルラッパー */
    .table-wrapper {
        display: grid; 
        grid-template-columns: repeat(3, 1fr); /* 3列表示 */
        gap: 1px;
        width: 100%;
        box-sizing: border-box;
        margin: 0 auto;
        padding: 10px;
    }
  
    /* テーブルラッパー */
    .table-wrapper1 {
      display: grid; 
      grid-template-columns: repeat(2, 1fr); /* 2列表示 */
      gap: 1px;
      width: 100%;
      box-sizing: border-box;
      margin: 0 auto;
      padding: 10px;
    }
  
    /* セル */
    .cell1 {
      width: 100px;
      text-align: center;
      background: #eae6d9;  
    }
    .cell2 {
      width: 100px;
      text-align: left;
      background: #eae6d9;
    }
    .cell3 {
      width: 800px;
      text-align: left;
      background: #eae6d9;
    }
    .cell4 {
      width: 900px;
      text-align: left;
      background: #eae6d9;
    }
  
    .modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5);
      display: none;
      justify-content: center;
      align-items: center;
      z-index: 1000;
    }
  
    .modal-content {
      line-height: 1.2; /* 行間をやや狭く（デフォルトは1.6前後） */
      padding-left: 1.2em; /* 箇条書きのインデント */
      background: white;
      padding: 20px;
      border-radius: 8px;
      width: 700px;
      text-align: left;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    }
  
    .close-button {
      background-color: #f44336;
      color: white;
      border: none;
      padding: 8px 16px;
      margin-top: 10px;
      cursor: pointer;
    }
}

/*画面幅480px以下の設定
------------------------------------------------------------------------------------------------------------------------------------------------------*/
@media screen and (max-width:480px){

  /* タブのコンテナ */
  .tabs-container {
    display: flex;
    flex-wrap: wrap;
    max-width: 480px;
    margin: 2px auto;
    border: 0px solid #c6b587;
    padding: 1px,1px;

  }

  /* 各タブ */
  .tab {
    width: 24.4%;
    height : 30px;
    padding: 0px;
    background: #eae6d9;
    text-align: center;
    cursor: pointer;
    border: 1px solid #c6b587;
    text-align: center;
    cursor: pointer;
    transition: background 0.3s;

  }

  /* タブの画像 */
  .tab-img {
    width: auto; /* 画像サイズを調整 */
    height: 90%;
  }

  /* アクティブなタブ */
  .tab.active {
    background-color: #588d67;
  }

  #tab-content {
    margin: 10px auto;
    padding: 1px;
    border: 1px solid #c6b587;
    background: #eae6d9;
    max-width: 470px;
    width: 95%;
    text-align: left;

    /* スクロール設定 */
    max-height: 490px; /* 高さを制限 */
    overflow-y: auto;  /* 縦スクロールを有効化 */
    overflow-x: hidden; /* 横スクロールは不要なら非表示 */
  }

  /* テーブルラッパー */
  .table-wrapper {
      display: grid; 
      grid-template-columns: repeat(3, 1fr); /* 3列表示 */
      gap: 1px;
      width: 100%;
      box-sizing: border-box;
      margin: 0 auto;
      padding: 10px;
  }

  /* テーブルラッパー */
  .table-wrapper1 {
    display: grid; 
    grid-template-columns: repeat(2, 1fr); /* 2列表示 */
    gap: 1px;
    width: 100%;
    box-sizing: border-box;
    margin: 0 auto;
    padding: 1px;
  }


  /* セル */
  .cell1 {
    width: 80px;
    text-align: center;
    background: #eae6d9;  
  }
  .cell2 {
    width: 70px;
    text-align: center;
    background: #eae6d9;
  }
  .cell3 {
    width: 200px;
    text-align: left;
    background: #eae6d9;
  }
  .cell4 {
    width: 300px;
    text-align: left;
    background: #eae6d9;
  }

}