/* data-pager-1.css — ページネーション 3パターン比較 */

/* --- demo-container を縦並びに上書き --- */
.demo-container {
  flex-direction: column;
  align-items: stretch;
  padding: 24px;
}

/* --- パターンブロック --- */
.pgr1-pattern {
  max-width: 480px;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid #E8ECF0;
}
.pgr1-pattern:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* --- パターンラベル --- */
.pgr1-pattern-label {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  color: #2B7FE8;
  letter-spacing: 0.04em;
}

/* --- 件数・ページ数 --- */
.pgr1-count {
  font-size: 12px;
  color: #5A6A7A;
  margin: 0 0 8px;
}

/* --- リスト --- */
.pgr1-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
}
.pgr1-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid #EEF0F3;
}
.pgr1-list li:last-child { border-bottom: none; }

.pgr1-id {
  font-size: 12px;
  color: #9AA5B4;
  min-width: 28px;
}
.pgr1-name {
  font-size: 15px;
  color: #1A2332;
}

/* --- ページャー共通 --- */
.pgr1-pager {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 4px;
}

/* --- ボタン共通 --- */
.pgr1-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 8px;
  border: 1.5px solid #D0D7E0;
  border-radius: 6px;
  background: #fff;
  color: #1A2332;
  font-size: 13px;
  font-family: sans-serif;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.pgr1-btn:hover:not(:disabled):not(.is-active) {
  background: #F1F5F9;
}
.pgr1-btn.is-active {
  background: #2B7FE8;
  color: #fff;
  border-color: #2B7FE8;
  font-weight: 700;
}
.pgr1-btn:disabled {
  color: #CBD5E1;
  cursor: not-allowed;
}

/* --- 省略記号（...）--- */
.pgr1-ellipsis {
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9AA5B4;
  font-size: 13px;
  cursor: default;
  pointer-events: none;
  user-select: none;
}

/* --- ドロップダウン型：select --- */
.pgr1-select {
  height: 36px;
  padding: 0 28px 0 10px;
  border: 1.5px solid #D0D7E0;
  border-radius: 6px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%235A6A7A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 8px center;
  font-size: 14px;
  color: #1A2332;
  font-family: sans-serif;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}
.pgr1-select:focus {
  outline: 2px solid #2B7FE8;
  outline-offset: 1px;
}

/* --- テキスト入力型：input --- */
.pgr1-input {
  width: 52px;
  height: 36px;
  text-align: center;
  border: 1.5px solid #D0D7E0;
  border-radius: 6px;
  font-size: 14px;
  color: #1A2332;
  font-family: sans-serif;
  -webkit-appearance: none;
  -moz-appearance: textfield;
}
.pgr1-input::-webkit-inner-spin-button,
.pgr1-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.pgr1-input:focus {
  outline: 2px solid #2B7FE8;
  outline-offset: 1px;
}

.pgr1-total {
  font-size: 14px;
  color: #5A6A7A;
  white-space: nowrap;
}

/* --- リセットボタン --- */
.reset-btn {
  padding: 6px 16px;
  font-size: 13px;
  color: #5A6A7A;
  background: #fff;
  border: 1.5px solid #D0D7E0;
  border-radius: 6px;
  cursor: pointer;
  font-family: sans-serif;
  transition: background 0.15s, border-color 0.15s;
}
.reset-btn:hover {
  background: #F4F6F9;
  border-color: #9AA5B4;
}

/* --- demo-controls --- */
.demo-controls {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
}

/* --- プロンプトブロック --- */
.prompt-block {
  margin-bottom: 20px;
}
.prompt-block:last-child {
  margin-bottom: 0;
}
.prompt-block-label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  color: #2B7FE8;
  letter-spacing: 0.04em;
}
