/*************
  禁止スタイル
 *************/
html {
  user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}
img {
  pointer-events: none;
}
/*************
  基本スタイル
 *************/
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
a {
  text-decoration: none;
}
video {
  width: 100%;
  max-width: 400px;
}
/*************
  ボタン
  ************/
button {
  width: 100%;
  padding: 12px 12px;
  margin: 10px 0;
  border: none;
  border-radius: 8px;
  font-size: 12px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
@media screen and (max-width: 220px) {
  html,
  body {
    width: 220px;
  }
}
.char-login {
  margin: 0;
}
/*******
  一覧表のスタイル
********/
.table-list {
  max-width: 100%;
  margin: 20px auto;
  border-radius: 10px;
  overflow-x: auto; /* モバイルでの横スクロールを許可 */
  overflow-y: scroll;
  height: 50vh;
  table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    font-size: 0.9em;
  }
  /* ヘッダー */
  table thead tr {
    text-align: left;
    font-weight: bold;
  }
  table thead th {
    position: sticky;
    top: 0;
    z-index: 1; /* 他の要素より前面に配置 */
  }

  table th,
  table td {
    padding: 12px 15px;
    text-align: left;
  }
  /* スマホ向けのレスポンシブ対応 */
  @media (max-width: 300px) {
    table thead {
      display: none; /* スマホではヘッダーを非表示 */
    }

    table tr {
      display: block;
      margin-bottom: 10px;
      border-radius: 8px;
      overflow: hidden;
    }

    table td {
      display: flex;
      justify-content: space-between;
      font-weight: bold;
      padding: 10px;
      position: relative;
      align-items: center;
    }

    /* data-labelのスタイル */
    table td::before {
      content: attr(data-label); /* data-label属性の内容を表示 */
      font-weight: normal;
      font-size: 0.85em; /* ラベルのフォントサイズ */
      text-transform: uppercase;
      margin-right: 10px;
      min-width: 80px; /* ラベル幅 */
      text-align: left; /* ラベル位置 */
    }

    table td:last-child {
      border-bottom: none;
    }
  }
}
/*******
  入力フィールド
********/
.input-field {
  width: 100%;
  padding: 0.8em;
  font-size: 1.2em;
  border: 2px solid #ccc;
  border-radius: 8px;
  box-sizing: border-box;
}
/*******
  キーパッド
********/
.keypad {
  display: flex;
  flex-wrap: wrap;
}

.keypad-row {
  display: flex;
  width: 100%;
}
.keypad-row button {
  flex: 1;
  padding: 1em;
  font-size: 1.2em;
  margin: 0;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
/*---------------------------
  モーダルフォーム
-----------------------------*/
/*******
  フェード機能
********/
#viewFade {
  position: fixed;
  z-index: 999999;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  text-align: center;
  padding-top: 40vh;
}
/*******
  ポップアップ
********/
/* ポップアップ表示アニメーション */
@keyframes slideUp {
  from {
    transform: translateY(100%); /* 下から開始 */
    opacity: 0;
  }
  to {
    transform: translateY(0); /* 元の位置までスライド */
    opacity: 1;
  }
}
/* ポップアップ非表示アニメーション */
@keyframes slideDown {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(100%);
    opacity: 0;
  }
}
.popup {
  position: fixed;
  z-index: 9999;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  text-align: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  img {
    width: 100%;
  }
}
.col2 {
  display: flex;
  align-items: center;
  justify-content: center;
  button {
    width: 50%;
    margin: 5px;
  }
}
/* 表示状態の時にアニメーション */
.popup.show {
  animation: slideUp 0.4s ease forwards;
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
/* 非表示アニメーション */
.popup.hide {
  animation: slideDown 0.4s ease forwards;
}
/* 表示状態のクラス */
/*******
  通知メッセージ
********/
/* 通知メッセージのスタイル */
.notification {
  position: fixed;
  top: -50px; /* 初期は画面外に隠す */
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  padding: 15px 30px;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  opacity: 0;
  font-size: 16px;
  transition: top 0.5s ease, opacity 0.5s ease;
  z-index: 999999;
  width: 90%;
  text-align: center;
}
.show-notification {
  top: 20px; /* 表示位置 */
  opacity: 1;
}
/*******
  タブレイアウト
********/
/* タブの全体スタイル */
.tab-container {
  width: 100%;
  max-width: 600px;
  margin: 20px auto;
  border-radius: 8px;
  overflow: hidden;
}

/* タブのヘッダー部分 */
.tab-header {
  display: flex;
}

/* タブのリンクボタン */
.tab-link {
  flex: 1;
  padding: 12px;
  border: none;
  cursor: pointer;
  text-align: center;
  font-weight: bold;
  transition: background-color 0.3s ease;
  margin: 10px;
}

/* タブのコンテンツ */
.tab-content {
  display: none;
  padding: 20px;
}

.tab-content.active {
  display: block;
}
#listRecent,
#listUsers,
#listInformation {
  max-width: 100%;
  margin: 20px auto;
  border-radius: 10px;
  overflow-x: auto; /* モバイルでの横スクロールを許可 */
  overflow-y: scroll;
}
/*************
  お知らせリスト
 *************/
/* タイトル */
.information-title {
}
.wrap-information {
  display: flex;
  .information-image {
    width: 20%;
    img {
      width: 100%;
    }
  }
  .information-detail {
    padding: 0 10px;
  }
}
.wrap-information-button {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  button {
    width: 25%;
    margin: 0 10px;
  }
}
/*************
  ヘッダー
 *************/
header {
  text-align: center;
  padding: 60px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;

  h1 {
    font-size: 1.5em;
    margin-bottom: 0.3em;
  }

  p {
    font-size: 1.1em;
    margin-bottom: 1.5em;
  }
}
/* ログインボタン */
.btnLogin {
  .char-login {
    display: flex;
    align-items: center;
    justify-content: center;
    .sns-image {
      height: 20px;
    }
  }
}
article {
  padding-bottom: 50px;
  section {
    padding: 20px 0;
    width: 98%;
    max-width: 600px;
    margin: 0 auto;
  }
  /* インフォメーションセクション */
  .info-section {
    display: flex;
    gap: 10px;
    margin: 20px 0;
    img {
      width: 100%;
    }
    /* インフォメーションバナー */
    .info-banner {
      padding: 15px;
      border-radius: 10px;
      text-align: center;
      flex: 1;
      font-size: 0.9em;
      img {
        width: 100%;
      }
    }
  }
}

/* フッターナビゲーション */
footer {
  padding: 10px 0;
  position: fixed;
  width: 100%;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50px;

  .footer-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    margin: 0 auto;
    max-width: 400px;
    width: 90%;
    .nav-item {
      text-align: center;
      font-size: 0.9em;
      font-weight: bold;
    }
  }
}
/*******
  スマホ向けのレスポンシブ対応
********/
@media screen and (max-width: 350px) {
  header {
    display: block;
  }
  .wrap-flex-area {
    display: block;
  }
  .balance-card .balance-amount {
    width: 100%;
  }
  .dog-icon {
    text-align: center;
  }
}
