/* tips.index - .imgはtips.show, tips.editと共通 */
.tips-table tr {
  border-bottom: solid 1px #d9d9d9;
}

.tips-table tr:first-child {
  border-bottom: solid 3px #d9d9d9;
}

.tips-table th,
.tips-table td {
  padding: 1rem 0.75rem 1rem 0;
  text-align: center;
}

.tips-table th:fist-child,
.tips-table td:first-child {
  padding: 1rem 0.75rem;
  text-align: center;
}

.img {
  height: 1.5rem;
  vertical-align: -60%;
}

.display-date {
  width: 150px;
}

.flash_message {
  color: #18a745;
  text-align: center;
}

h1 {
  color: #4682b4;
  filter: drop-shadow(0.5px 1px 0.5px rgba(10, 10, 10, 0.5));
}

h1:hover {
  color: #4682b4;
  filter: drop-shadow(1px 2px 0.5px rgba(10, 10, 10, 20));
}
  
/* =================
  PC用のスタイル
================= */
@media screen and (min-width: 768px) {
  .tips {
    box-sizing: border-box;
    min-height: calc(100vh - 7rem);
    padding: 1.75trm 0 3.5rem;
  }

  .tips-table {
    width: 100%;
    margin: 0 auto;
    word-break: break-word;
    border-collapse: collapse;
  }

  .title {
    font-size: 1.2rem;
    font-weight: bold;
  }

  /* セレクトボックス */
  select {
    height: 1.75rem;
    font-size: 0.9rem;
  }

  select:invalid {
    color: #757575!important;
    font-family: FontAwesome;
  }

  .option-valid {
    color: #000000;
    font-family: 'Noto Sans JP', sans-serif;
  }

  .sort-btn {
    padding: 0.5rem 0.5rem 0.5rem 1rem;
    color: #fff;
    text-decoration: none;
    background-color: #6c757d;
    border-radius: 4px;
    box-shadow: 1px 2px 4px rgb(0 0 0 / 15%);
    transition: 0.3s;
  }

  .sort-btn:hover {
    opacity: 0.7;
    color: #fff;
    font-weight: 500 ;
  }

  .search-box {
    box-sizing: border-box;
    max-width: 180px;
    height: 1.75rem;
    padding: 0.25rem 0.5rem;
    background: #fffafa;
    border: solid 1px gray;
    outline: 0;
    font-family: FontAwesome;
  }
}

/* ====================
スマートフォン用のスタイル
===================== */
@media screen and (max-width: 767px) {
  /* ヘッダーのハンバーガーボタンからのドロップダウンを右寄せにする */
  #navbarDropdown {
    margin-top: 20px;
    float: right;
  }

  /* ログアウトボタンをユーザー名の左横に表示 */
  .dropdown-menu {
    max-width: 30px;
    margin-right: 10px; 
    float: right;
  }

  .tips {
    font-size: 0.65rem;
  }

  .tips-table {
    width: 100%;
    margin: 30px auto;
    word-break: break-word;
    border-collapse: collapse;
  }

  .title {
    font-size: 0.9rem;
    font-weight: bold;
  }

  /* カテゴリー追加ボタンの左マージンを減らす */
  .add-cat {
    margin-left: 1rem!important;
  }

  /* セレクトボックス */
  select {
    height: 1.5rem;
    font-size: 0.65rem;
  }
  select:invalid {
    color: #757575!important;
    font-family: FontAwesome;
  }
  .option-valid {
    color: #000000;
    font-family: 'Noto Sans JP', sans-serif;
  }

  /* 並び替えボタンを右寄せ縦並びにする */
  .keyword-sort {
    margin-top: 40px;
  }
  .sort {
    position:absolute;
    right: 0;
  }
  .sort-btn {
    display: block;
    position: top;
    bottom: 0;
    font-size: 10px;
    padding: 0.5rem 0.1rem 0.5rem 0.5rem;
    color: #fff;
    text-decoration: none;
    background-color: #6c757d;
    border-radius: 4px;
    box-shadow: 1px 2px 4px rgb(0 0 0 / 15%);
    transition: 0.3s;
  }

  .search-box {
    box-sizing: border-box;
    max-width: 150px;
    font-size: 0.65rem;
    height: 1.75rem;
    padding: 0.25rem 0.5rem;
    background: #fffafa;
    border: solid 1px gray;
    outline: 0;
    font-family: FontAwesome;
  }
}
