* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Hiragino Sans', 'Yu Gothic', sans-serif;
  background: linear-gradient(160deg, #0f2027, #203a43, #2c5364);
  min-height: 100vh;
  color: #fff;
  padding-bottom: 80px;
}

/* ─── ヘッダー ─── */
.page-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15,32,39,0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 14px 16px 10px;
}

.header-top {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.btn-back {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.1);
  border: none;
  border-radius: 20px;
  color: #fff;
  font-size: 0.9rem;
  padding: 6px 14px;
  cursor: pointer;
  text-decoration: none;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
}

.page-title {
  font-size: 1.1rem;
  font-weight: 700;
  flex: 1;
  text-align: center;
}

.progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.progress-bar-bg {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.15);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #00b4db, #0083b0);
  border-radius: 999px;
  transition: width 0.3s ease;
  width: 0%;
}

.progress-count {
  font-size: 0.82rem;
  opacity: 0.7;
  white-space: nowrap;
}

#date-display {
  text-align: center;
  font-size: 0.82rem;
  opacity: 0.55;
  margin-top: 4px;
}

/* ─── コンテンツ ─── */
.list-body {
  padding: 16px;
  max-width: 500px;
  margin: 0 auto;
}

/* ─── セクション ─── */
.section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 20px 0 8px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
}

/* ─── アイテムリスト ─── */
.check-list {
  list-style: none;
  background: rgba(255,255,255,0.06);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.2s;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.check-list li:last-child {
  border-bottom: none;
}

.check-list li:active {
  background: rgba(255,255,255,0.06);
}

/* チェック済み */
.check-list li.checked {
  opacity: 0.45;
}

.check-list li.checked .item-label {
  text-decoration: line-through;
}

/* カスタムチェックボックス */
.check-list input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 2px solid rgba(255,255,255,0.3);
  background: rgba(255,255,255,0.05);
  flex-shrink: 0;
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s, background 0.2s;
}

.check-list input[type="checkbox"]:checked {
  background: #00b4db;
  border-color: #00b4db;
}

.check-list input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 3px;
  width: 10px;
  height: 6px;
  border-left: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: rotate(-45deg);
}

.item-label {
  font-size: 1rem;
  flex: 1;
  transition: color 0.2s;
}

/* ─── クリアボタン ─── */
.btn-clear {
  display: block;
  width: calc(100% - 32px);
  max-width: 468px;
  margin: 24px auto 0;
  padding: 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 14px;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  font-family: inherit;
  letter-spacing: 0.04em;
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
}

.btn-clear:active {
  background: rgba(255,255,255,0.15);
}
