@import url('Common.css');

#sort-select {
  font-size: 0.8rem;
  height: 1.5rem;
}
#target table {
  width: 200%; /* テーブル幅を100%に設定 */
  min-width: 2600px;
  border-collapse: collapse;
  border: 1px solid rgb(85, 85, 85);
  margin: 10px 2% 100px;
  table-layout: fixed;
  background-color: #FCFCFC;
}

#target th {
  border: 1px solid rgb(85, 85, 85);
  text-align: center;
  color: rgb(51, 51, 51);
  background-color: var(--base-color);	
  height: 2rem;
  padding: 0px;
  font-weight: normal;
}

td {
  border: 1px solid rgb(100, 100, 100);
  height: 2rem;
  padding: 0 0.5rem;
  text-align: left;
}
.edit-btn {
  height: 1.4rem;
  width: 90%;
  line-height: 1.4rem;
  background-color: var(--sub-color);
  color: white;
  text-align: center;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s;
}
  
.edit-btn:hover {
  filter: saturate(1.8) brightness(1.5);
}

td.right {
  text-align: right;
}

td.center {
  text-align: center;
}

/* 列幅の設定 */
th:nth-child(1) { width: 3%; }  /* No */
th:nth-child(2) { width: 5%; }  /* 編集 */
th:nth-child(3) { width: 6%; }  /* 姓 */
th:nth-child(4) { width: 6%; }  /* 名 */
th:nth-child(5) { width: 6%; }  /* セイ */
th:nth-child(6) { width: 6%; }  /* メイ */
th:nth-child(7) { width: 6%; }  /* お客様番号 */
th:nth-child(8) { width: 8%; }  /* 電話 */
th:nth-child(9) { width: 6%; }  /* 郵便番号 */
th:nth-child(10) { width: 20%; } /* 住所 */
th:nth-child(11) { width: 20%; } /* Email */
th:nth-child(12) { width: 4%; } /* Email許諾 */
th:nth-child(13) { width: 3%; } /* 性別 */
th:nth-child(14) { width: 15%; } /* メモ */
th:nth-child(15) { width: 10%; } /* きっかけ */
th:nth-child(16) { width: 7%; } /* 登録日 */
th:nth-child(17) { width: 7%; } /* 初回来店日 */
th:nth-child(18) { width: 10%; } /* 配信記録 */
th:nth-child(19) { width: 4%; } /* ステータス */

#target td.keisaitd,
#target td.deletetd {
  text-align: center;
}

.gray {
  background-color: #ccc;
}

.btn {
  width: 90%;
  height: 1.4rem;
  background-color: rgb(200, 200, 200);
  line-height: 1.4rem;
  color: rgb(50, 50, 50);
  text-align: center;
  margin: 0px auto;
  cursor: pointer;
}

.pagination {
  height: 100px;
  margin-bottom: 100px;
}

.page-link {
  display: inline-block;
  width: auto;
  min-width: 1.5rem;
  height: 1.5rem;
  line-height: 1.5rem;
  border: 1px blue solid;
  border-radius: 0.2rem;
  margin: 0.5rem;
  text-align: center;
}

form select {
  font-size: 1rem;
  line-height: 1.4rem;
  height: 1.4rem;
}

.sort {
  cursor: pointer;
}

#member-table {
  display: table;
}

.member-cards {
  display: none;
}
@media screen and (max-width: 767px) {

  #target table {
    width: 700%;
  }

  .member-cards {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sort-options {
    margin-bottom: 15px;
}

.sort-options select {
    padding: 5px;
    margin-right: 10px;
}

.sort-options button {
    padding: 5px 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
}

.member-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.member-card-header {
    background-color: #f2f2f2;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.member-card-header h3 {
    margin: 0;
    font-size: 1.2em;
}

.member-card-body {
    padding: 15px;
}

.member-card-body p {
    margin: 5px 0;
    font-size: 0.9em;
}
.member-card-body p a {
    font-size: 1rem;
    line-height: 1.4rem;
}
.edit-btn {
  width: 30%;
}
    #member-table {
        display: none;
    }
    
    .member-cards {
        display: flex;
    }

input[name="kikkake"] {
  width: 100%;
}
}