/* ==========================================================================
   まるごとポイ活 — スタンドアロン CSS v3.20
   プロトタイプ (poikatsu-ui-prototype.jsx) のデザイントークンを完全再現
   JIN テーマは template_include でバイパス済みなので !important 不要
   ========================================================================== */

/* ---------- Design Tokens ---------- */
:root {
  --c-primary:       #2b96f1;
  --c-primary-dark:  #1a7ad4;
  --c-primary-light: #e8f4fd;
  --c-accent:        #ff6b35;
  --c-accent-light:  #fff3ed;
  --c-success:       #22c55e;
  --c-success-light: #f0fdf4;
  --c-warning:       #f59e0b;
  --c-warning-light: #fffbeb;
  --c-danger:        #ef4444;
  --c-danger-light:  #fef2f2;
  --c-bg:            #f5f6f8;
  --c-card:          #ffffff;
  --c-text:          #1e293b;
  --c-text-sub:      #64748b;
  --c-text-muted:    #94a3b8;
  --c-border:        #e2e8f0;
  --c-border-light:  #f1f5f9;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);

  --radius:    14px;
  --radius-sm: 10px;
  --radius-xs: 8px;

  --font: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.poikatsu-body {
  margin: 0;
  background: var(--c-bg);
  color: var(--c-text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
}


body.poikatsu-body a { color: inherit; text-decoration: none; }

body.poikatsu-body h1,
body.poikatsu-body h2,
body.poikatsu-body h3,
body.poikatsu-body h4,
body.poikatsu-body p {
  margin: 0;
  padding: 0;
}

body.poikatsu-body img { max-width: 100%; height: auto; display: block; }

body.poikatsu-body button {
  font-family: inherit;
  cursor: pointer;
}

body.poikatsu-body input,
body.poikatsu-body textarea,
body.poikatsu-body select {
  font-family: inherit;
  font-size: inherit;
}

/* ---------- Header (v3.16.0 〜) ---------- */
.pkn-header {
  background: #fff;
  border-bottom: 1px solid var(--c-border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.pkn-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  height: 72px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.pkn-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--c-text);
  font-weight: 800;
  font-size: 20px;
  margin-right: auto;
}
.pkn-logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--c-primary), #6366f1);
  color: #fff;
  font-weight: 900;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* --- Main nav (center) --- */
.pkn-nav { display: flex; gap: 4px; }
.pkn-nav-link {
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--c-text-sub);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.pkn-nav-link:hover {
  background: var(--c-primary-light);
  color: var(--c-primary);
}
.pkn-nav-link.is-active {
  background: var(--c-primary-light);
  color: var(--c-primary);
  font-weight: 700;
}

/* --- Vertical dividers --- */
.pkn-hdr-divider {
  width: 1px;
  height: 24px;
  background: var(--c-border);
  flex-shrink: 0;
}

/* --- Blog link (right side) --- */
.pkn-hdr-blog {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid var(--c-border);
  background: #fff;
  color: var(--c-text-sub);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  white-space: nowrap;
}
.pkn-hdr-blog:hover {
  border-color: var(--c-primary);
  color: var(--c-primary);
  background: var(--c-primary-light);
}

/* --- Auth (far right) --- */
.pkn-auth {
  display: flex;
  align-items: center;
  gap: 8px;
}
.pkn-auth-login-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 10px;
  background: var(--c-primary);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  transition: background 0.15s, box-shadow 0.15s;
  box-shadow: var(--shadow-sm);
}
.pkn-auth-login-btn:hover {
  background: var(--c-primary-dark);
  box-shadow: var(--shadow-md);
}
.pkn-auth-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--c-success-light);
  color: var(--c-success);
  font-weight: 700;
  font-size: 13px;
  line-height: 1;
  border: 1px solid rgba(34, 197, 94, 0.22);
  transition: background 0.15s;
}
.pkn-auth-status:hover {
  background: #dcfce7;
}
.pkn-auth-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--c-border-light);
  object-fit: cover;
  flex-shrink: 0;
}
.pkn-auth-avatar-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--c-primary);
  background: var(--c-primary-light);
  font-weight: 800;
  font-size: 14px;
  text-transform: uppercase;
}
.pkn-auth-logout {
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--c-text-sub);
  background: var(--c-border-light);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
  line-height: 1;
}
.pkn-auth-logout:hover {
  color: var(--c-danger);
  background: var(--c-danger-light);
}

/* --- Hamburger (mobile only) --- */
.pkn-mm-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--c-border);
  background: #fff;
  color: var(--c-text);
  font-size: 22px;
  line-height: 1;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pkn-mm-btn:hover { border-color: var(--c-primary); color: var(--c-primary); }

/* ---------- Mobile menu panel (slide-in from right) ---------- */
.pkn-mm {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}
.pkn-mm.is-open { pointer-events: auto; }
.pkn-mm-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.pkn-mm.is-open .pkn-mm-overlay { opacity: 1; }
.pkn-mm-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(86vw, 340px);
  background: #fff;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  padding: 18px 18px 24px;
  transform: translateX(100%);
  transition: transform 0.28s ease;
  overflow-y: auto;
}
.pkn-mm.is-open .pkn-mm-panel { transform: translateX(0); }
.pkn-mm-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--c-border-light);
}
.pkn-mm-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--c-text);
  flex: 1;
}
.pkn-mm-close {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--c-border-light);
  color: var(--c-text-sub);
  border-radius: 50%;
  font-size: 20px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pkn-mm-close:hover { background: var(--c-danger-light); color: var(--c-danger); }

.pkn-mm-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 18px;
}
.pkn-mm-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--c-text);
  transition: background 0.15s, color 0.15s;
}
.pkn-mm-link:hover { background: var(--c-primary-light); color: var(--c-primary); }
.pkn-mm-link.is-active { background: var(--c-primary-light); color: var(--c-primary); }
.pkn-mm-link-emoji { font-size: 20px; line-height: 1; width: 24px; text-align: center; }

.pkn-mm-blog {
  display: block;
  padding: 14px 16px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid var(--c-border);
  color: var(--c-text);
  transition: border-color 0.15s, background 0.15s;
}
.pkn-mm-blog:hover { border-color: var(--c-primary); background: #fff; }
.pkn-mm-blog-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
}
.pkn-mm-blog-emoji { font-size: 20px; line-height: 1; }
.pkn-mm-blog-desc {
  margin-top: 4px;
  font-size: 12px;
  color: var(--c-text-sub);
  padding-left: 30px;
}

.pkn-mm-auth {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--c-border-light);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pkn-mm-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 2px;
}
.pkn-mm-user-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--c-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.pkn-mm-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 12px;
  background: var(--c-primary);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  box-shadow: var(--shadow-sm);
  transition: background 0.15s;
}
.pkn-mm-login:hover { background: var(--c-primary-dark); }
.pkn-mm-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 10px;
  background: var(--c-border-light);
  color: var(--c-text-sub);
  font-weight: 700;
  font-size: 13px;
  transition: color 0.15s, background 0.15s;
}
.pkn-mm-logout:hover { color: var(--c-danger); background: var(--c-danger-light); }

body.pkn-mm-locked { overflow: hidden; }

/* ---------- Layout ---------- */
.pkn-main { min-height: calc(100vh - 72px - 160px); }
.pkn-page { padding: 32px 0 56px; }
.pkn-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Footer ---------- */
.pkn-footer {
  background: #fff;
  border-top: 1px solid var(--c-border);
  margin-top: 48px;
  padding: 28px 20px;
}
.pkn-footer-inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}
.pkn-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  color: var(--c-text);
  margin-bottom: 10px;
}
.pkn-footer-text {
  font-size: 12px;
  color: var(--c-text-sub);
  margin-bottom: 8px;
}
.pkn-footer-copy {
  font-size: 11px;
  color: var(--c-text-muted);
}

/* ---------- Card ---------- */
.pkn-card {
  background: var(--c-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px 28px;
}

/* ---------- Button ---------- */
.pkn-btn {
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-family: var(--font);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  font-size: 15px;
  transition: all 0.2s;
  line-height: 1;
}
.pkn-btn-sm  { padding: 8px 16px;  font-size: 13px; }
.pkn-btn-lg  { padding: 16px 32px; font-size: 17px; }
.pkn-btn-block { width: 100%; }

.pkn-btn-primary { background: var(--c-primary); color: #fff; }
.pkn-btn-primary:hover { background: var(--c-primary-dark); }

.pkn-btn-accent { background: var(--c-accent); color: #fff; }
.pkn-btn-ghost  { background: var(--c-primary-light); color: var(--c-primary); }
.pkn-btn-ghost:hover { background: #d6e9f9; }

.pkn-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ---------- Badge ---------- */
.pkn-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--c-primary);
  background: var(--c-primary-light);
}

/* ---------- Search Card ---------- */
.pkn-search-card { margin-bottom: 22px; }

.pkn-search-row {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}
.pkn-search-input-wrap {
  flex: 1;
  position: relative;
}
.pkn-search-input {
  width: 100%;
  padding: 16px 48px 16px 20px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--c-border);
  font-size: 16px;
  outline: none;
  background: #fff;
  color: var(--c-text);
  transition: border-color 0.15s;
}
.pkn-search-input:focus { border-color: var(--c-primary); }
.pkn-search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: var(--c-border-light);
  color: var(--c-text-sub);
  font-size: 18px;
  display: none;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.pkn-search-btn {
  flex-shrink: 0;
  padding: 15px 30px;
  font-size: 16px;
}

.pkn-cat-wrap {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}
.pkn-cat-wrap.is-collapsed .pkn-cat-btn.is-hidden { display: none; }
.pkn-cat-btn {
  padding: 8px 18px;
  border-radius: 20px;
  border: none;
  font-size: 14px;
  font-weight: 600;
  background: var(--c-border-light);
  color: var(--c-text-sub);
  transition: all 0.15s;
  line-height: 1.5;
}
.pkn-cat-btn:hover { background: #e2e8f0; }
.pkn-cat-btn.is-active {
  background: var(--c-primary);
  color: #fff;
}
.pkn-cat-more {
  padding: 8px 18px;
  border-radius: 20px;
  border: 1px dashed var(--c-border);
  background: #fff;
  font-size: 14px;
  font-weight: 700;
  color: var(--c-primary);
  line-height: 1.5;
}
.pkn-cat-more:hover { background: var(--c-primary-light); border-style: solid; }

/* ---------- Results Bar ---------- */
.pkn-results-bar {
  font-size: 14px;
  color: var(--c-text-sub);
  margin-bottom: 16px;
  padding: 0 4px;
}
.pkn-results-count strong {
  color: var(--c-text);
  font-weight: 800;
  font-size: 17px;
}

/* ---------- List / Card ---------- */
.pkn-list { display: block; }

.pkn-offer {
  display: block;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 24px 28px;
  margin-bottom: 14px;
  transition: all 0.2s;
  opacity: 0;
  animation: pkn-fade 0.4s ease forwards;
  animation-delay: var(--d, 0s);
  color: inherit;
}
.pkn-offer:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

@keyframes pkn-fade {
  to { opacity: 1; }
}

.pkn-offer-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 16px;
}
.pkn-offer-meta { min-width: 0; flex: 1; }
.pkn-offer-name {
  font-weight: 800;
  font-size: 18px;
  color: var(--c-text);
  margin-bottom: 8px;
  line-height: 1.45;
}
.pkn-offer-tags {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.pkn-offer-cond {
  font-size: 12px;
  color: var(--c-text-muted);
  line-height: 1.4;
  margin-left: 2px;
}
.pkn-offer-best {
  text-align: right;
  flex-shrink: 0;
}
.pkn-offer-best-label {
  font-size: 12px;
  color: var(--c-text-sub);
  display: block;
  margin-bottom: 2px;
}
.pkn-offer-best-price {
  font-size: 28px;
  font-weight: 900;
  color: var(--c-accent);
  line-height: 1;
}
.pkn-offer-best-price .pkn-yen { font-size: 14px; font-weight: 700; }
.pkn-yen { font-size: 0.8em; font-weight: 700; margin-left: 0; }

/* Site tiles row */
.pkn-offer-sites {
  display: flex;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--c-border);
}
.pkn-site-tile {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-xs);
  background: #f8fafc;
  border: 1px solid transparent;
  position: relative;
}
.pkn-site-tile.is-best {
  background: var(--c-accent-light);
  border-color: rgba(255, 107, 53, 0.25);
}
.pkn-site-tile.is-missing {
  background: #f8fafc;
  opacity: 0.55;
}
.pkn-site-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0;
}
.pkn-site-icon-sm { width: 22px; height: 22px; font-size: 10px; border-radius: 6px; }

.pkn-site-info { min-width: 0; flex: 1; }
.pkn-site-name {
  font-size: 12px;
  color: var(--c-text-sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}
.pkn-site-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--c-text);
  line-height: 1.1;
}
.pkn-site-price .pkn-yen { font-size: 12px; font-weight: 700; }
.pkn-site-tile.is-best .pkn-site-price { color: var(--c-accent); }
.pkn-site-price.pkn-site-nodata {
  color: var(--c-text-muted);
  font-weight: 600;
  font-size: 13px;
}
.pkn-site-crown {
  font-size: 12px;
  font-weight: 800;
  color: var(--c-accent);
  white-space: nowrap;
  margin-left: auto;
}

/* ---------- Empty / Loading ---------- */
.pkn-loading,
.pkn-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--c-text-sub);
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.pkn-empty-icon {
  font-size: 36px;
  margin-bottom: 12px;
}
.pkn-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--c-border);
  border-top-color: var(--c-primary);
  border-radius: 50%;
  margin: 0 auto 16px;
  animation: pkn-spin 0.8s linear infinite;
}
@keyframes pkn-spin { to { transform: rotate(360deg); } }

/* ---------- Pagination ---------- */
.pkn-pager {
  display: flex;
  gap: 4px;
  justify-content: center;
  margin-top: 24px;
  flex-wrap: wrap;
}
.pkn-pager-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--c-border);
  background: #fff;
  border-radius: var(--radius-xs);
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text-sub);
  transition: all 0.15s;
}
.pkn-pager-btn:hover:not(:disabled):not(.is-active) {
  background: var(--c-primary-light);
  border-color: var(--c-primary);
  color: var(--c-primary);
}
.pkn-pager-btn.is-active {
  background: var(--c-primary);
  color: #fff;
  border-color: var(--c-primary);
}
.pkn-pager-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.pkn-pager-dots {
  color: var(--c-text-muted);
  display: inline-flex;
  align-items: center;
  padding: 0 6px;
}

/* ==========================================================================
   Detail Page (v3.9)
   ========================================================================== */
.pkn-back-link {
  display: inline-block;
  color: var(--c-primary);
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 16px;
}
.pkn-back-link:hover { text-decoration: underline; }

.pkn-d-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-bottom: 96px; /* sticky save button 分の余白 */
}

.pkn-d-card .pkn-badge { margin-bottom: 12px; }
.pkn-d-title {
  font-size: 26px;
  font-weight: 900;
  color: var(--c-text);
  margin: 0 0 8px;
  line-height: 1.4;
}
.pkn-d-advertiser {
  font-size: 14px;
  color: var(--c-text-sub);
}
.pkn-d-divider {
  height: 1px;
  background: var(--c-border-light);
  margin: 20px 0 20px;
}

.pkn-d-section-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--c-text);
  margin: 0 0 16px;
}

.pkn-d-ranks { display: flex; flex-direction: column; gap: 10px; }
.pkn-d-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: #f8fafc;
  border: 1px solid transparent;
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
a.pkn-d-row:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.pkn-d-row.is-best {
  background: var(--c-accent-light);
  border-color: rgba(255, 107, 53, 0.25);
}
.pkn-d-rank-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--c-border);
  color: var(--c-text-sub);
  font-size: 14px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pkn-d-row.is-best .pkn-d-rank-num {
  background: var(--c-accent);
  color: #fff;
}
.pkn-d-row .pkn-site-icon { width: 36px; height: 36px; font-size: 15px; border-radius: 10px; }

.pkn-d-row-info { flex: 1; min-width: 0; }
.pkn-d-site-name {
  font-weight: 700;
  font-size: 16px;
  color: var(--c-text);
}
.pkn-d-row-cond {
  font-size: 13px;
  color: var(--c-text-muted);
  margin-top: 4px;
  line-height: 1.5;
}
.pkn-d-price {
  font-size: 24px;
  font-weight: 900;
  color: var(--c-text);
  line-height: 1;
  white-space: nowrap;
}
.pkn-d-price .pkn-yen { font-size: 13px; font-weight: 700; }
.pkn-d-row.is-best .pkn-d-price { color: var(--c-accent); }

/* 獲得条件 (統合表示) */
.pkn-d-warn {
  padding: 14px 16px;
  background: var(--c-warning-light);
  border-radius: var(--radius-xs);
  border-left: 4px solid var(--c-warning);
  font-size: 14px;
  color: var(--c-text);
  margin-bottom: 16px;
  line-height: 1.6;
}
.pkn-d-warn strong { font-weight: 800; }
.pkn-d-cond-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pkn-d-cond-bullet {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-text);
}
.pkn-d-cond-check {
  flex-shrink: 0;
  font-size: 16px;
  line-height: 1.6;
}
.pkn-d-cond-body {
  flex: 1;
  min-width: 0;
  word-break: break-word;
}
.pkn-d-cond-note {
  margin-left: 6px;
  color: var(--c-text-muted);
  font-size: 13px;
  font-weight: 600;
}

/* 還元額の推移 */
.pkn-d-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.pkn-d-history-head .pkn-d-section-title { margin: 0; }
.pkn-d-history-range { font-size: 14px; font-weight: 700; color: var(--c-text-sub); margin-left: 2px; }
.pkn-d-history-toggle {
  border: 1px solid var(--c-border);
  background: #fff;
  color: var(--c-primary);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 20px;
  line-height: 1;
  transition: all 0.15s;
}
.pkn-d-history-toggle:hover {
  background: var(--c-primary-light);
  border-color: var(--c-primary);
}
.pkn-d-chart {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 140px;
  padding: 6px 2px 8px;
  background: #fafbfd;
  border-radius: var(--radius-xs);
}
.pkn-d-bar {
  flex: 1 1 0;
  min-width: 0;
  height: var(--h, 0%);
  background: #bfdcf6;
  border-radius: 3px 3px 0 0;
  transition: background 0.15s;
}
.pkn-d-bar.is-today { background: var(--c-accent); }
.pkn-d-bar.is-empty { background: var(--c-border-light); min-height: 2px; }
.pkn-d-history[data-range="30"] .pkn-d-bar.is-extended { display: none; }
.pkn-d-chart-axis {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--c-text-sub);
  margin-top: 8px;
  padding: 0 2px;
}

/* リマインダー登録フォーム */
.pkn-d-reminder {
  background: var(--c-warning-light);
  border: 1px solid rgba(245, 158, 11, 0.25);
}
.pkn-d-reminder-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}
.pkn-d-reminder-icon { font-size: 32px; line-height: 1; flex-shrink: 0; }
.pkn-d-reminder-title {
  font-weight: 800;
  font-size: 16px;
  color: var(--c-text);
  margin-bottom: 4px;
}
.pkn-d-reminder-desc {
  font-size: 14px;
  color: var(--c-text-sub);
  line-height: 1.65;
}

.pkn-d-reminder-login {
  background: #fff;
  border: 1px dashed rgba(245, 158, 11, 0.4);
  border-radius: var(--radius-xs);
  padding: 14px 16px;
  font-size: 14px;
  color: var(--c-text-sub);
}
.pkn-d-reminder-login-link {
  display: inline-block;
  margin-left: 4px;
  color: var(--c-primary);
  font-weight: 700;
}
.pkn-d-reminder-login-link:hover { text-decoration: underline; }

.pkn-d-reminder-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fff;
  border-radius: var(--radius-xs);
  padding: 16px;
  border: 1px solid rgba(245, 158, 11, 0.25);
}
.pkn-d-reminder-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pkn-d-reminder-field label {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-text-sub);
}
.pkn-d-reminder-field input[type="text"],
.pkn-d-reminder-field input[type="date"],
.pkn-d-reminder-field select,
.pkn-d-reminder-field textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-xs);
  background: #fff;
  color: var(--c-text);
  font-size: 15px;
  font-family: var(--font);
  outline: none;
  transition: border-color 0.15s;
}
.pkn-d-reminder-field input:focus,
.pkn-d-reminder-field select:focus,
.pkn-d-reminder-field textarea:focus {
  border-color: var(--c-primary);
}
.pkn-d-reminder-field textarea { resize: vertical; min-height: 60px; }
.pkn-d-reminder-hint {
  font-size: 11px;
  color: var(--c-text-muted);
}
.pkn-d-reminder-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}
.pkn-d-reminder-submit { min-width: 180px; }
.pkn-d-reminder-feedback {
  font-size: 13px;
  line-height: 1.6;
  min-height: 18px;
}
.pkn-d-reminder-feedback.is-success { color: var(--c-success); font-weight: 700; }
.pkn-d-reminder-feedback.is-error   { color: var(--c-danger);  font-weight: 700; }

/* メタ情報 */
.pkn-d-meta-card { padding: 18px 22px; }
.pkn-d-meta-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid var(--c-border-light);
  font-size: 14px;
}
.pkn-d-meta-row:first-child { border-top: none; padding-top: 0; }
.pkn-d-meta-label { color: var(--c-text-sub); }
.pkn-d-meta-val   { color: var(--c-text); font-weight: 700; }

.pkn-no-prices {
  padding: 20px 0;
  text-align: center;
  color: var(--c-text-sub);
  font-size: 15px;
}

/* 画面下固定：この案件を保存する */
.pkn-save-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 95;
  background: linear-gradient(to bottom, rgba(245,246,248,0) 0%, rgba(245,246,248,0.95) 30%, var(--c-bg) 100%);
  padding: 18px 20px calc(18px + env(safe-area-inset-bottom, 0px));
  pointer-events: none;
}
.pkn-save-sticky-inner {
  max-width: 560px;
  margin: 0 auto;
  pointer-events: auto;
}
.pkn-save-btn {
  background: var(--c-primary);
  color: #fff;
  border-radius: 14px;
  font-size: 17px;
  font-weight: 800;
  padding: 16px;
  box-shadow: 0 4px 14px rgba(43, 150, 241, 0.28);
}
.pkn-save-btn:disabled {
  opacity: 0.75;
  cursor: not-allowed;
  box-shadow: 0 2px 8px rgba(43, 150, 241, 0.18);
}
/* 保存済み状態（✓ 保存済み） */
.pkn-save-btn.is-saved {
  background: var(--c-success);
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.28);
}
.pkn-save-btn.is-saved:hover {
  background: #16a34a;
}

/* ==========================================================================
   Save Modal (保存時モーダル)
   PC: 中央オーバーレイ / モバイル: 下からスライド（ボトムシート）
   ========================================================================== */
.pkn-save-modal {
  position: fixed;
  inset: 0;
  z-index: 120; /* ボトムナビ100 / sticky保存95 より上 */
  display: none;
}
.pkn-save-modal.is-open {
  display: block;
}
.pkn-save-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
  animation: pkn-fade-in 0.18s ease-out;
}
.pkn-save-modal-sheet {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(560px, calc(100vw - 40px));
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  background: var(--c-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 24px 24px 22px;
  animation: pkn-modal-pop 0.22s cubic-bezier(0.2, 0.7, 0.3, 1);
}
.pkn-save-modal-handle {
  display: none; /* モバイルのみ表示 */
}
.pkn-save-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.pkn-save-modal-title {
  font-size: 19px;
  font-weight: 800;
  margin: 0;
  color: var(--c-text);
}
.pkn-save-modal-close {
  background: var(--c-border-light);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 20px;
  line-height: 1;
  color: var(--c-text-sub);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.pkn-save-modal-close:hover {
  background: var(--c-danger-light);
  color: var(--c-danger);
}

.pkn-save-modal-offer {
  background: var(--c-primary-light);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 18px;
}
.pkn-save-modal-offer-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.4;
}
.pkn-save-modal-offer-best {
  font-size: 12px;
  color: var(--c-text-sub);
  margin-top: 4px;
}
.pkn-save-modal-offer-best strong {
  color: var(--c-accent);
  font-size: 14px;
  font-weight: 800;
}

.pkn-save-modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.pkn-save-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pkn-save-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-text);
}
.pkn-save-hint {
  font-size: 11px;
  color: var(--c-text-muted);
}
.pkn-save-input {
  appearance: none;
  -webkit-appearance: none;
  width: 100%;
  font-size: 15px;
  font-family: inherit;
  color: var(--c-text);
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}
.pkn-save-input:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(43, 150, 241, 0.15);
}
.pkn-save-input-suffix {
  position: relative;
}
.pkn-save-input-suffix .pkn-save-input {
  padding-right: 34px;
}
.pkn-save-input-unit {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  font-weight: 700;
  color: var(--c-text-sub);
  pointer-events: none;
}

/* サイト選択ボタン（3サイト） */
.pkn-save-sites {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.pkn-save-site {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 12px 8px;
  border: 1.5px solid var(--c-border);
  border-radius: var(--radius-sm);
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.pkn-save-site:hover {
  border-color: var(--c-primary);
}
.pkn-save-site.is-selected {
  border-color: var(--c-primary);
  background: var(--c-primary-light);
}
.pkn-save-site input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.pkn-save-site-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
}
.pkn-save-site-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
}
.pkn-save-site-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--c-text);
}
.pkn-save-site-price {
  font-size: 12px;
  font-weight: 800;
  color: var(--c-accent);
}

/* リマインダー自動提案 */
.pkn-save-reminder {
  background: var(--c-warning-light);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  gap: 10px;
}
.pkn-save-reminder-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--c-text);
  cursor: pointer;
}
.pkn-save-reminder-toggle input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--c-warning);
}
.pkn-save-reminder-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 26px;
}

/* フィードバック */
.pkn-save-modal-feedback {
  font-size: 13px;
  min-height: 18px;
  color: var(--c-text-sub);
}
.pkn-save-modal-feedback.is-success { color: var(--c-success); font-weight: 700; }
.pkn-save-modal-feedback.is-error   { color: var(--c-danger);  font-weight: 700; }

/* アクション */
.pkn-save-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.pkn-save-modal-cancel {
  flex: 1 1 auto;
}
.pkn-save-modal-submit {
  flex: 2 1 auto;
}

/* スクロールロック */
body.pkn-modal-lock {
  overflow: hidden;
}

@keyframes pkn-fade-in {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes pkn-modal-pop {
  from { opacity: 0; transform: translate(-50%, -48%) scale(0.96); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
@keyframes pkn-sheet-up {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

/* ==========================================================================
   Status Badge（4段階）— design-guidelines.md section 16
   ========================================================================== */
.pkn-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.pkn-status-badge.is-saved            { color: var(--c-primary); background: var(--c-primary-light); }
.pkn-status-badge.is-in-progress      { color: var(--c-warning); background: var(--c-warning-light); }
.pkn-status-badge.is-pending-approval { color: var(--c-accent);  background: var(--c-accent-light);  }
.pkn-status-badge.is-completed        { color: var(--c-success); background: var(--c-success-light); }

/* ==========================================================================
   MyPage（Step 8）
   ========================================================================== */

/* --- 未ログイン誘導 --- */
.pkn-mypage-login {
  text-align: center;
  padding: 48px 28px;
}
.pkn-mypage-login-icon {
  font-size: 56px;
  margin-bottom: 8px;
}
.pkn-mypage-login-title {
  font-size: 24px;
  font-weight: 900;
  color: var(--c-text);
  margin: 0 0 12px;
}
.pkn-mypage-login-desc {
  color: var(--c-text-sub);
  font-size: 14px;
  line-height: 1.75;
  margin: 0 auto 24px;
  max-width: 460px;
}
.pkn-mypage-login-btn {
  min-width: 240px;
}

/* --- ページ見出し --- */
.pkn-mypage-head {
  margin-bottom: 20px;
}
.pkn-mypage-title {
  font-size: 24px;
  font-weight: 900;
  color: var(--c-text);
  margin: 0 0 6px;
}
.pkn-mypage-lead {
  font-size: 13px;
  color: var(--c-text-sub);
  margin: 0;
}

/* --- サマリー 4 カード --- */
.pkn-mypage-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.pkn-mypage-sum {
  text-align: center;
  padding: 20px 14px;
  border-top: 4px solid var(--c-border-light);
  position: relative;
}
.pkn-mypage-sum-saved    { border-top-color: var(--c-primary); }
.pkn-mypage-sum-progress { border-top-color: var(--c-warning); }
.pkn-mypage-sum-pending  { border-top-color: var(--c-accent); }
.pkn-mypage-sum-total    { border-top-color: var(--c-success); }
.pkn-mypage-sum-icon {
  font-size: 24px;
  margin-bottom: 4px;
  line-height: 1;
}
.pkn-mypage-sum-value {
  font-size: 24px;
  font-weight: 900;
  color: var(--c-text);
  line-height: 1.15;
}
.pkn-mypage-sum-saved    .pkn-mypage-sum-value { color: var(--c-primary); }
.pkn-mypage-sum-progress .pkn-mypage-sum-value { color: var(--c-warning); }
.pkn-mypage-sum-pending  .pkn-mypage-sum-value { color: var(--c-accent); }
.pkn-mypage-sum-total    .pkn-mypage-sum-value { color: var(--c-success); }
.pkn-mypage-sum-unit {
  font-size: 12px;
  font-weight: 700;
  margin-left: 3px;
}
.pkn-mypage-sum-label {
  font-size: 12px;
  color: var(--c-text-sub);
  margin-top: 4px;
  font-weight: 600;
}

/* --- 月別グラフ --- */
.pkn-mypage-graph {
  margin-bottom: 20px;
  padding: 20px 24px;
}
.pkn-mypage-graph-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  gap: 12px;
}
.pkn-mypage-graph-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--c-text);
  margin: 0;
}
.pkn-mypage-graph-total {
  font-size: 13px;
  color: var(--c-text-sub);
}
.pkn-mypage-graph-total strong {
  color: var(--c-success);
  font-size: 17px;
  font-weight: 900;
  margin-left: 4px;
}
.pkn-mypage-graph-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 6px;
  scrollbar-width: thin;
}
.pkn-mypage-graph-canvas-wrap {
  height: 220px;
  position: relative;
}
.pkn-mypage-graph-legend {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 6px;
  font-size: 12px;
  color: var(--c-text-sub);
}
.pkn-mypage-graph-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pkn-mypage-graph-legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  background: var(--c-border);
}
.pkn-mypage-graph-legend-swatch.is-confirmed { background: var(--c-primary); }
.pkn-mypage-graph-legend-swatch.is-pending   { background: rgba(255,107,53,0.45); }

/* --- リマインダーアラート --- */
.pkn-mypage-alerts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.pkn-mypage-alert {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--c-warning-light);
  border: 1px solid rgba(245, 158, 11, 0.25);
}
.pkn-mypage-alert.is-urgent {
  background: var(--c-danger-light);
  border-color: rgba(239, 68, 68, 0.3);
}
.pkn-mypage-alert-icon {
  font-size: 26px;
  line-height: 1;
}
.pkn-mypage-alert-body {
  flex: 1;
  min-width: 0;
}
.pkn-mypage-alert-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--c-text);
  margin-bottom: 2px;
}
.pkn-mypage-alert-desc {
  font-size: 12px;
  color: var(--c-text-sub);
}
.pkn-mypage-alert-days {
  font-size: 12px;
  font-weight: 700;
  color: var(--c-warning);
  padding: 4px 10px;
  border-radius: 20px;
  background: #fff;
  flex-shrink: 0;
}
.pkn-mypage-alert.is-urgent .pkn-mypage-alert-days {
  color: var(--c-danger);
}

/* --- ステータスタブ --- */
.pkn-mypage-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
  border-bottom: 2px solid var(--c-border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.pkn-mypage-tabs::-webkit-scrollbar { display: none; }
.pkn-mypage-tab {
  background: none;
  border: none;
  padding: 11px 18px;
  font-size: 13px;
  font-weight: 500;
  color: var(--c-text-sub);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s;
}
.pkn-mypage-tab:hover {
  color: var(--c-primary);
}
.pkn-mypage-tab.is-active {
  color: var(--c-primary);
  font-weight: 800;
  border-bottom-color: var(--c-primary);
}
.pkn-mypage-tab-count {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--c-border-light);
  color: var(--c-text-sub);
}
.pkn-mypage-tab.is-active .pkn-mypage-tab-count {
  background: var(--c-primary-light);
  color: var(--c-primary);
}

/* --- 案件カード --- */
.pkn-mypage-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pkn-mypage-card {
  padding: 18px 22px;
  border-left: 3px solid var(--c-border);
}
.pkn-mypage-card.is-saved            { border-left-color: var(--c-primary); }
.pkn-mypage-card.is-in-progress      { border-left-color: var(--c-warning); }
.pkn-mypage-card.is-pending-approval { border-left-color: var(--c-accent); }
.pkn-mypage-card.is-completed        { border-left-color: var(--c-success); }

.pkn-mypage-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
}
.pkn-mypage-card-info {
  flex: 1;
  min-width: 0;
}
.pkn-mypage-card-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.pkn-mypage-card-name {
  font-size: 16px;
  font-weight: 800;
  color: var(--c-text);
  transition: color 0.15s;
}
.pkn-mypage-card-name:hover {
  color: var(--c-primary);
  text-decoration: underline;
}
.pkn-mypage-card-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: var(--c-text-sub);
  flex-wrap: wrap;
}
.pkn-mypage-card-site {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pkn-mypage-card-site .pkn-site-icon {
  width: 20px;
  height: 20px;
  font-size: 10px;
  border-radius: 6px;
}
.pkn-mypage-card-sep {
  color: var(--c-text-muted);
}
.pkn-mypage-card-points {
  text-align: right;
  flex-shrink: 0;
}
.pkn-mypage-card-points-label {
  font-size: 11px;
  color: var(--c-text-sub);
  margin-bottom: 2px;
}
.pkn-mypage-card-points-value {
  font-size: 22px;
  font-weight: 900;
  color: var(--c-accent);
  line-height: 1.1;
}
.pkn-mypage-card-points-value.is-done {
  color: var(--c-success);
}
.pkn-mypage-card-points-unit {
  font-size: 11px;
  font-weight: 700;
  margin-left: 2px;
}
.pkn-mypage-card-memo {
  display: flex;
  gap: 8px;
  padding: 10px 14px;
  background: var(--c-border-light);
  border-radius: var(--radius-xs);
  border-left: 3px solid var(--c-border);
  font-size: 12px;
  color: var(--c-text-sub);
  margin-bottom: 10px;
  line-height: 1.6;
}
.pkn-mypage-card-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.pkn-mypage-empty {
  text-align: center;
  padding: 40px 24px;
}
.pkn-mypage-empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
}
.pkn-mypage-empty-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--c-text);
  margin: 0 0 6px;
}
.pkn-mypage-empty-desc {
  font-size: 13px;
  color: var(--c-text-sub);
  margin: 0 0 20px;
}

/* --- 編集モーダル削除ボタン --- */
.pkn-mypage-edit-delete {
  color: var(--c-danger);
  background: var(--c-danger-light);
  margin-right: auto; /* 右揃えの中で左端に固定 */
}
.pkn-mypage-edit-delete:hover {
  background: #fee;
}

/* ==========================================================================
   Bottom Navigation (mobile only)
   ========================================================================== */
.pkn-bottomnav {
  display: none;
}

/* ==========================================================================
   Responsive — Mobile
   ========================================================================== */
@media (max-width: 768px) {
  .pkn-header-inner { padding: 0 16px; height: 56px; gap: 10px; }
  .pkn-logo { font-size: 16px; gap: 10px; }
  .pkn-logo-mark { width: 34px; height: 34px; font-size: 17px; border-radius: 10px; }

  /* v3.16.0: SP では全て畳む。ロゴ + ハンバーガーだけ表示 */
  .pkn-nav,
  .pkn-hdr-divider,
  .pkn-hdr-blog,
  .pkn-auth { display: none; }
  .pkn-mm-btn { display: inline-flex; width: 40px; height: 40px; font-size: 20px; }

  .pkn-container { padding: 0 14px; }
  .pkn-page { padding: 16px 0 32px; }
  .pkn-main { min-height: calc(100vh - 56px - 180px); }

  .pkn-card { padding: 14px 14px; border-radius: 12px; }
  .pkn-search-card { margin-bottom: 14px; }

  /* Search row — input + icon-only square button inline */
  .pkn-search-row { flex-direction: row; gap: 8px; margin-bottom: 12px; }
  .pkn-search-input {
    padding: 12px 40px 12px 14px;
    font-size: 15px;
    border-radius: 10px;
    border-width: 1px;
  }
  .pkn-search-clear { right: 8px; width: 24px; height: 24px; font-size: 16px; }
  .pkn-search-btn {
    width: 46px;
    min-width: 46px;
    height: 46px;
    padding: 0;
    flex-shrink: 0;
    border-radius: 10px;
  }
  .pkn-search-btn-label { display: none; }
  .pkn-search-btn-icon { font-size: 18px; }

  /* Categories — single-row horizontal scroll */
  .pkn-cat-wrap {
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
    margin: 0 -14px;
    padding-left: 14px;
    padding-right: 14px;
  }
  .pkn-cat-wrap::-webkit-scrollbar { display: none; }
  .pkn-cat-wrap.is-collapsed .pkn-cat-btn.is-hidden { display: inline-block; } /* show all on mobile scroll */
  .pkn-cat-btn {
    flex-shrink: 0;
    padding: 7px 14px;
    font-size: 13px;
  }
  .pkn-cat-more { display: none; } /* horizontal scroll replaces collapse */

  /* Results bar */
  .pkn-results-bar { margin-bottom: 10px; font-size: 12px; }
  .pkn-results-count strong { font-size: 14px; }

  /* Offer card — keep head in row (title left / best price right) */
  .pkn-offer { padding: 14px 14px; margin-bottom: 10px; border-radius: 12px; }
  .pkn-offer-head {
    flex-direction: row;
    gap: 10px;
    margin-bottom: 12px;
  }
  .pkn-offer-name { font-size: 15px; margin-bottom: 6px; line-height: 1.4; }
  .pkn-offer-tags { gap: 6px; }
  .pkn-badge { padding: 2px 9px; font-size: 11px; }
  .pkn-offer-cond { font-size: 11px; }
  .pkn-offer-best { text-align: right; flex-shrink: 0; }
  .pkn-offer-best-label { font-size: 10px; margin-bottom: 1px; }
  .pkn-offer-best-price { font-size: 22px; }
  .pkn-offer-best-price .pkn-yen { font-size: 12px; }

  /* Site tiles — compact 3-column grid */
  .pkn-offer-sites {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding-top: 12px;
  }
  .pkn-site-tile {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 8px 8px;
    min-height: 72px;
  }
  .pkn-site-icon { width: 22px; height: 22px; font-size: 10px; border-radius: 6px; }
  .pkn-site-info { width: 100%; }
  .pkn-site-name { font-size: 10px; margin-bottom: 2px; }
  .pkn-site-price { font-size: 14px; line-height: 1.15; }
  .pkn-site-price .pkn-yen { font-size: 10px; }
  .pkn-site-price.pkn-site-nodata { font-size: 11px; }
  .pkn-site-crown {
    position: absolute;
    top: 4px;
    right: 4px;
    margin-left: 0;
    font-size: 9px;
    padding: 1px 4px;
    background: var(--c-accent);
    color: #fff;
    border-radius: 4px;
  }

  /* Detail page */
  .pkn-d-stack { gap: 12px; padding-bottom: 100px; }
  .pkn-d-title { font-size: 22px; margin: 0 0 6px; }
  .pkn-d-advertiser { font-size: 13px; }
  .pkn-d-divider { margin: 16px 0; }
  .pkn-d-section-title { font-size: 16px; margin-bottom: 12px; }
  .pkn-d-row { padding: 12px 12px; gap: 10px; }
  .pkn-d-price { font-size: 22px; }
  .pkn-d-row .pkn-site-icon { width: 32px; height: 32px; font-size: 13px; border-radius: 9px; }
  .pkn-d-rank-num { width: 26px; height: 26px; font-size: 12px; }
  .pkn-d-site-name { font-size: 15px; }
  .pkn-d-row-cond { font-size: 12px; }
  .pkn-d-cond-bullet { font-size: 14px; }
  .pkn-d-cond-note { font-size: 12px; margin-left: 4px; }

  /* Chart — denser on mobile */
  .pkn-d-chart { height: 120px; gap: 2px; }
  .pkn-d-history-head { gap: 8px; margin-bottom: 10px; }
  .pkn-d-history-toggle { font-size: 11px; padding: 5px 10px; }

  /* Reminder form */
  .pkn-d-reminder-head { gap: 10px; margin-bottom: 12px; }
  .pkn-d-reminder-icon { font-size: 26px; }
  .pkn-d-reminder-title { font-size: 15px; }
  .pkn-d-reminder-desc { font-size: 13px; }
  .pkn-d-reminder-form { padding: 12px; gap: 10px; }
  .pkn-d-reminder-field input[type="text"],
  .pkn-d-reminder-field input[type="date"],
  .pkn-d-reminder-field select,
  .pkn-d-reminder-field textarea { font-size: 14px; padding: 9px 10px; }
  .pkn-d-reminder-submit { width: 100%; min-width: 0; }

  /* Meta */
  .pkn-d-meta-card { padding: 14px 16px; }

  /* Sticky save button — above bottom nav (68px) + breathing room */
  .pkn-save-sticky {
    bottom: 64px; /* align above bottom nav */
    padding: 12px 14px calc(10px);
  }
  .pkn-save-sticky-inner { max-width: none; }
  .pkn-save-btn { font-size: 15px; padding: 14px; border-radius: 12px; }

  /* Save modal — bottom sheet on mobile */
  .pkn-save-modal-sheet {
    left: 0;
    top: auto;
    bottom: 0;
    transform: none;
    width: 100%;
    max-width: none;
    max-height: 88vh;
    border-radius: 20px 20px 0 0;
    padding: 14px 18px calc(18px + env(safe-area-inset-bottom, 0px));
    animation: pkn-sheet-up 0.24s cubic-bezier(0.2, 0.7, 0.3, 1);
  }
  .pkn-save-modal-handle {
    display: block;
    width: 40px;
    height: 4px;
    background: var(--c-border);
    border-radius: 2px;
    margin: 0 auto 10px;
  }
  .pkn-save-modal-title { font-size: 17px; }
  .pkn-save-modal-offer { padding: 10px 12px; margin-bottom: 14px; }
  .pkn-save-modal-offer-name { font-size: 14px; }
  .pkn-save-site { padding: 10px 6px; }
  .pkn-save-site-icon { width: 28px; height: 28px; font-size: 13px; }
  .pkn-save-site-name { font-size: 11px; }
  .pkn-save-site-price { font-size: 11px; }
  .pkn-save-input { font-size: 16px; padding: 10px 12px; } /* iOS zoom 防止のため 16px */
  .pkn-save-modal-form { gap: 14px; }
  .pkn-save-modal-actions { margin-top: 2px; }

  /* MyPage (mobile) */
  .pkn-mypage-title { font-size: 20px; }
  .pkn-mypage-lead { font-size: 12px; }
  .pkn-mypage-summary {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 14px;
  }
  .pkn-mypage-sum { padding: 14px 10px; }
  .pkn-mypage-sum-icon { font-size: 20px; }
  .pkn-mypage-sum-value { font-size: 20px; }
  .pkn-mypage-graph { padding: 14px 14px; margin-bottom: 14px; }
  .pkn-mypage-graph-head { margin-bottom: 10px; gap: 6px; flex-wrap: wrap; }
  .pkn-mypage-graph-title { font-size: 14px; }
  .pkn-mypage-graph-total { font-size: 12px; }
  .pkn-mypage-graph-total strong { font-size: 15px; }
  .pkn-mypage-graph-canvas-wrap { height: 180px; }
  .pkn-mypage-alert { padding: 12px 14px; gap: 10px; }
  .pkn-mypage-alert-icon { font-size: 22px; }
  .pkn-mypage-alert-title { font-size: 13px; }
  .pkn-mypage-alert-desc { font-size: 11px; }
  .pkn-mypage-alert-days { font-size: 11px; padding: 3px 8px; }
  .pkn-mypage-tabs { margin: 0 -14px 12px; padding: 0 14px; }
  .pkn-mypage-tab { padding: 9px 14px; font-size: 12px; }
  .pkn-mypage-card { padding: 14px 14px; border-radius: 12px; }
  .pkn-mypage-card-top { gap: 10px; margin-bottom: 10px; }
  .pkn-mypage-card-name { font-size: 14px; }
  .pkn-mypage-card-meta { font-size: 11px; gap: 6px; }
  .pkn-mypage-card-points-value { font-size: 18px; }
  .pkn-mypage-card-memo { font-size: 11px; padding: 8px 12px; }
  .pkn-mypage-card-actions .pkn-btn { font-size: 12px; padding: 7px 12px; }
  .pkn-mypage-login { padding: 32px 20px; }
  .pkn-mypage-login-icon { font-size: 44px; }
  .pkn-mypage-login-title { font-size: 20px; }
  .pkn-mypage-login-desc { font-size: 13px; }

  .pkn-footer { padding: 22px 16px; margin-top: 24px; display: none; } /* mobile: bottom nav + sticky save take over */

  /* Prevent bottom nav from covering content */
  body.poikatsu-body { padding-bottom: 68px; }

  /* Bottom navigation */
  .pkn-bottomnav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    background: #fff;
    border-top: 1px solid var(--c-border);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.04);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
  }
  .pkn-bn-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 6px 2px;
    border-radius: 10px;
    color: var(--c-text-sub);
    text-decoration: none;
    transition: color 0.15s, background 0.15s;
    position: relative;
    cursor: pointer;
  }
  .pkn-bn-item.is-active {
    color: var(--c-primary);
    background: var(--c-primary-light);
  }
  .pkn-bn-item.is-disabled {
    color: var(--c-text-muted);
    opacity: 0.55;
    cursor: not-allowed;
  }
  .pkn-bn-icon {
    font-size: 20px;
    line-height: 1;
  }
  .pkn-bn-label {
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
  }
}

@media (max-width: 480px) {
  .pkn-offer-name { font-size: 14px; }
  .pkn-offer-best-price { font-size: 20px; }
  .pkn-site-price { font-size: 13px; }
  .pkn-d-title { font-size: 20px; }
  .pkn-d-section-title { font-size: 15px; }
  .pkn-d-price { font-size: 20px; }
  .pkn-d-chart { height: 100px; }
}

/* =========================================================
 * リマインダー（Step 9 / v3.14.0）
 * ========================================================= */
body.poikatsu-body .pkn-reminders-page .pkn-rem-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
body.poikatsu-body .pkn-reminders-page .pkn-rem-title {
  font-size: 22px;
  font-weight: 900;
  color: var(--c-text);
  margin: 0;
}

/* カレンダーバー */
body.poikatsu-body .pkn-rem-calendar { padding: 16px 20px; margin-bottom: 20px; }
body.poikatsu-body .pkn-rem-calendar-head {
  font-size: 14px;
  font-weight: 800;
  color: var(--c-text);
  margin-bottom: 12px;
}
body.poikatsu-body .pkn-rem-calendar-bar {
  display: flex;
  gap: 4px;
  height: 52px;
}
body.poikatsu-body .pkn-rem-cal-cell {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 10px;
  color: var(--c-text-muted);
  position: relative;
  background: transparent;
}
body.poikatsu-body .pkn-rem-cal-cell.is-event {
  background: var(--c-warning-light);
  color: var(--c-warning);
  font-weight: 800;
}
body.poikatsu-body .pkn-rem-cal-cell.is-today {
  background: var(--c-primary);
  color: #fff;
  font-weight: 800;
}
body.poikatsu-body .pkn-rem-cal-cell.is-today.is-event {
  background: var(--c-primary);
  color: #fff;
}
body.poikatsu-body .pkn-rem-cal-day { font-weight: inherit; line-height: 1; }
body.poikatsu-body .pkn-rem-cal-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--c-danger);
  margin-top: 3px;
}
body.poikatsu-body .pkn-rem-cal-cell.is-today .pkn-rem-cal-dot { background: #fff; }

/* クリック可能なイベントセル（絞り込みトリガー） */
body.poikatsu-body .pkn-rem-cal-cell.is-event[role="button"] {
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, color 0.12s ease;
}
body.poikatsu-body .pkn-rem-cal-cell.is-event[role="button"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(245, 158, 11, 0.25);
}
body.poikatsu-body .pkn-rem-cal-cell.is-event[role="button"]:focus-visible {
  outline: 2px solid var(--c-primary);
  outline-offset: 2px;
}
/* 選択中セル：アクセントカラー + 白文字 */
body.poikatsu-body .pkn-rem-cal-cell.is-selected,
body.poikatsu-body .pkn-rem-cal-cell.is-event.is-selected,
body.poikatsu-body .pkn-rem-cal-cell.is-today.is-selected {
  background: var(--c-accent);
  color: #fff;
}
body.poikatsu-body .pkn-rem-cal-cell.is-selected .pkn-rem-cal-dot { background: #fff; }

/* 日付フィルター表示バー */
body.poikatsu-body .pkn-rem-filter {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  margin: 0 0 14px;
  background: var(--c-accent-light, #fff3ec);
  border: 1px solid var(--c-accent);
  border-radius: 10px;
}
body.poikatsu-body .pkn-rem-filter.is-active { display: flex; }
body.poikatsu-body .pkn-rem-filter-label {
  font-size: 14px;
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.4;
}
body.poikatsu-body .pkn-rem-filter-date { color: var(--c-accent); }
body.poikatsu-body .pkn-rem-filter-count { color: var(--c-accent); }
body.poikatsu-body .pkn-rem-filter-clear {
  appearance: none;
  border: 1px solid var(--c-border);
  background: #fff;
  color: var(--c-text-sub);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
  white-space: nowrap;
}
body.poikatsu-body .pkn-rem-filter-clear:hover {
  background: var(--c-text);
  color: #fff;
  border-color: var(--c-text);
}

/* フィルター適用時の非表示ユーティリティ（リマインダー専用） */
body.poikatsu-body .pkn-rem-card.is-hidden,
body.poikatsu-body .pkn-rem-section.is-hidden { display: none; }

/* 空状態 */
body.poikatsu-body .pkn-rem-empty {
  text-align: center;
  padding: 40px 24px;
  margin-bottom: 16px;
}
body.poikatsu-body .pkn-rem-empty-icon { font-size: 52px; margin-bottom: 10px; }
body.poikatsu-body .pkn-rem-empty-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--c-text);
  margin: 6px 0;
}
body.poikatsu-body .pkn-rem-empty-desc {
  font-size: 13px;
  color: var(--c-text-sub);
  line-height: 1.7;
  margin: 0 0 14px;
}

/* セクション */
body.poikatsu-body .pkn-rem-section { margin-bottom: 20px; }
body.poikatsu-body .pkn-rem-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  color: var(--c-text);
  margin: 0 0 10px;
}
body.poikatsu-body .pkn-rem-section-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--c-text-sub);
  background: var(--c-border-light);
  border-radius: 999px;
  padding: 2px 10px;
}
body.poikatsu-body .pkn-rem-list { display: flex; flex-direction: column; gap: 10px; }

/* リマインダーカード */
body.poikatsu-body .pkn-rem-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-left: 4px solid var(--c-text-sub);
}
body.poikatsu-body .pkn-rem-card.is-cancel         { border-left-color: var(--c-danger); }
body.poikatsu-body .pkn-rem-card.is-point-confirm  { border-left-color: var(--c-warning); }
body.poikatsu-body .pkn-rem-card.is-apply-deadline { border-left-color: var(--c-primary); }
body.poikatsu-body .pkn-rem-card.is-custom        { border-left-color: var(--c-text-sub); }

body.poikatsu-body .pkn-rem-card-icon {
  font-size: 28px;
  flex-shrink: 0;
  line-height: 1;
}
body.poikatsu-body .pkn-rem-card-body { flex: 1; min-width: 0; }
body.poikatsu-body .pkn-rem-card-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 5px;
  flex-wrap: wrap;
}
body.poikatsu-body .pkn-rem-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  color: var(--c-text-sub);
  background: var(--c-border-light);
  line-height: 1.4;
}
body.poikatsu-body .pkn-rem-badge.is-cancel         { color: var(--c-danger);  background: var(--c-danger-light); }
body.poikatsu-body .pkn-rem-badge.is-point-confirm  { color: var(--c-warning); background: var(--c-warning-light); }
body.poikatsu-body .pkn-rem-badge.is-apply-deadline { color: var(--c-primary); background: var(--c-primary-light); }
body.poikatsu-body .pkn-rem-badge.is-custom        { color: var(--c-text-sub); background: var(--c-border-light); }
body.poikatsu-body .pkn-rem-badge.is-urgent-badge  { color: var(--c-danger);  background: var(--c-danger-light); }

body.poikatsu-body .pkn-rem-card-title {
  font-size: 14px;
  font-weight: 800;
  color: var(--c-text);
  margin-bottom: 3px;
  word-break: break-word;
}
body.poikatsu-body .pkn-rem-card-desc {
  font-size: 12px;
  color: var(--c-text-sub);
  line-height: 1.6;
  word-break: break-word;
}
body.poikatsu-body .pkn-rem-card-offerlink {
  display: inline-block;
  font-size: 11px;
  color: var(--c-primary);
  text-decoration: none;
  margin-top: 4px;
}
body.poikatsu-body .pkn-rem-card-offerlink:hover { text-decoration: underline; }

body.poikatsu-body .pkn-rem-card-date {
  text-align: right;
  flex-shrink: 0;
  min-width: 96px;
}
body.poikatsu-body .pkn-rem-card-date-label {
  font-size: 11px;
  color: var(--c-text-sub);
  margin-bottom: 2px;
}
body.poikatsu-body .pkn-rem-card-date-value {
  font-size: 14px;
  font-weight: 800;
  color: var(--c-text);
}
body.poikatsu-body .pkn-rem-card-date-value.is-urgent { color: var(--c-danger); }
body.poikatsu-body .pkn-rem-card-date-days {
  font-size: 11px;
  color: var(--c-text-sub);
  margin-top: 2px;
}
body.poikatsu-body .pkn-rem-card-date-days.is-urgent {
  color: var(--c-danger);
  font-weight: 700;
}
body.poikatsu-body .pkn-rem-card-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-shrink: 0;
}
body.poikatsu-body .pkn-rem-card-actions .pkn-btn { white-space: nowrap; }

/* マイページ編集モーダルのリマインダー欄 */
body.poikatsu-body .pkn-save-reminder-block { border-top: 1px dashed var(--c-border); padding-top: 14px; }
body.poikatsu-body .pkn-save-reminder-toggle { margin-right: 6px; vertical-align: middle; }
body.poikatsu-body .pkn-save-reminder-fields {
  margin-top: 10px;
  padding: 12px;
  background: var(--c-border-light);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
body.poikatsu-body .pkn-save-reminder-row { display: flex; flex-direction: column; gap: 4px; }
body.poikatsu-body .pkn-save-sublabel {
  font-size: 12px;
  font-weight: 700;
  color: var(--c-text-sub);
}
body.poikatsu-body .pkn-save-reminder-clear { align-self: flex-start; }
body.poikatsu-body .pkn-save-required { color: var(--c-danger); margin-left: 2px; }

/* 下部ナビの未読バッジ */
body.poikatsu-body .pkn-bn-badge {
  position: absolute;
  top: -2px;
  right: -10px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--c-danger);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 16px;
  text-align: center;
  box-shadow: 0 0 0 2px #fff;
}
body.poikatsu-body .pkn-bn-icon { position: relative; display: inline-block; }

@media (max-width: 768px) {
  body.poikatsu-body .pkn-rem-card {
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 14px;
  }
  body.poikatsu-body .pkn-rem-card-icon { font-size: 22px; }
  body.poikatsu-body .pkn-rem-card-body { flex: 1 1 55%; min-width: 160px; }
  body.poikatsu-body .pkn-rem-card-date {
    flex: 0 0 auto;
    text-align: right;
    min-width: 72px;
  }
  body.poikatsu-body .pkn-rem-card-actions {
    flex: 1 1 100%;
    flex-direction: row;
    justify-content: flex-end;
    gap: 6px;
  }
  body.poikatsu-body .pkn-rem-card-actions .pkn-btn {
    padding: 6px 10px;
    font-size: 12px;
  }
  body.poikatsu-body .pkn-rem-head {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  body.poikatsu-body .pkn-rem-title { font-size: 20px; }
  body.poikatsu-body .pkn-rem-calendar-bar { gap: 2px; }
  body.poikatsu-body .pkn-rem-cal-cell { font-size: 9px; }
}

@media (max-width: 480px) {
  body.poikatsu-body .pkn-rem-card { padding: 12px; }
  body.poikatsu-body .pkn-rem-card-body { flex-basis: 100%; }
  body.poikatsu-body .pkn-rem-card-date {
    display: flex;
    gap: 6px;
    align-items: baseline;
    text-align: left;
    flex-basis: 100%;
  }
  body.poikatsu-body .pkn-rem-card-date-label { margin-bottom: 0; }
  body.poikatsu-body .pkn-rem-card-date-value { font-size: 13px; }
}

/* ==========================================================
   Login prompt (reminders page, logged-out 2-column layout)
   ========================================================== */
body.poikatsu-body .pkn-loginprompt {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  max-width: 960px;
  margin: 0 auto;
  padding: 40px 20px;
  align-items: start;
}
body.poikatsu-body .pkn-loginprompt-main {
  background: linear-gradient(180deg, var(--c-primary-light) 0%, #fff 55%);
  text-align: center;
  padding: 48px 36px 40px;
}
body.poikatsu-body .pkn-loginprompt-icon {
  font-size: 64px;
  line-height: 1;
  margin-bottom: 20px;
}
body.poikatsu-body .pkn-loginprompt-title {
  font-size: 22px;
  font-weight: 900;
  line-height: 1.5;
  margin: 0 0 12px;
  color: var(--c-text);
}
body.poikatsu-body .pkn-loginprompt-desc {
  font-size: 14px;
  color: var(--c-text-sub);
  line-height: 1.8;
  margin: 0 0 32px;
}
body.poikatsu-body .pkn-loginprompt-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 340px;
  padding: 16px 24px;
  border-radius: 12px;
  border: 2px solid var(--c-border);
  background: #fff;
  color: var(--c-text);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  margin: 0 auto 16px;
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}
body.poikatsu-body .pkn-loginprompt-google:hover {
  border-color: var(--c-primary);
  box-shadow: 0 6px 16px rgba(43, 150, 241, 0.15);
  transform: translateY(-1px);
}
body.poikatsu-body .pkn-loginprompt-g {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}
body.poikatsu-body .pkn-loginprompt-g svg { display: block; }
body.poikatsu-body .pkn-loginprompt-note {
  font-size: 12px;
  color: var(--c-text-sub);
  margin: 0;
  line-height: 1.6;
}
body.poikatsu-body .pkn-loginprompt-side {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
body.poikatsu-body .pkn-loginprompt-features {
  padding: 28px 24px;
}
body.poikatsu-body .pkn-loginprompt-features-title {
  font-size: 16px;
  font-weight: 800;
  margin: 0 0 16px;
  color: var(--c-text);
}
body.poikatsu-body .pkn-loginprompt-feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
body.poikatsu-body .pkn-loginprompt-feature {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--c-border);
}
body.poikatsu-body .pkn-loginprompt-feature:last-child { border-bottom: 0; }
body.poikatsu-body .pkn-loginprompt-feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--c-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
body.poikatsu-body .pkn-loginprompt-feature-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text);
  line-height: 1.5;
}
body.poikatsu-body .pkn-loginprompt-search {
  padding: 20px 24px;
  background: var(--c-primary-light);
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--c-text);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
body.poikatsu-body .pkn-loginprompt-search:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(43, 150, 241, 0.18);
}
body.poikatsu-body .pkn-loginprompt-search-icon {
  flex-shrink: 0;
  font-size: 28px;
  line-height: 1;
}
body.poikatsu-body .pkn-loginprompt-search-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
body.poikatsu-body .pkn-loginprompt-search-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--c-text);
  line-height: 1.5;
}
body.poikatsu-body .pkn-loginprompt-search-desc {
  font-size: 12px;
  color: var(--c-text-sub);
  line-height: 1.5;
}
body.poikatsu-body .pkn-loginprompt-search-arrow {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 800;
  color: var(--c-primary);
  white-space: nowrap;
}

@media (max-width: 768px) {
  body.poikatsu-body .pkn-loginprompt {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 24px 16px;
  }
  body.poikatsu-body .pkn-loginprompt-main { padding: 36px 20px 28px; }
  body.poikatsu-body .pkn-loginprompt-icon { font-size: 52px; }
  body.poikatsu-body .pkn-loginprompt-title { font-size: 19px; }
  body.poikatsu-body .pkn-loginprompt-desc { font-size: 13px; margin-bottom: 24px; }
  body.poikatsu-body .pkn-loginprompt-google { font-size: 15px; padding: 14px 20px; }
}

@media (max-width: 480px) {
  body.poikatsu-body .pkn-loginprompt-search {
    flex-wrap: wrap;
  }
  body.poikatsu-body .pkn-loginprompt-search-arrow {
    width: 100%;
    text-align: right;
  }
}

/* ==========================================================================
   Top Page (v3.15.0〜 / Step 11)
   プロトタイプ TopPage を再現。Hero / 3値 / 人気ランキング / カテゴリ。
   - ヒーローは primary → #6366f1 のグラデーション
   - 3値はデスクトップ 3 列、SP で 1 列
   - カテゴリはデスクトップ 4 列、SP で 2 列
   - 既存の .pkn-card / .pkn-btn / .pkn-badge を再利用する
   ========================================================================== */

/* ---------- Hero ---------- */
body.poikatsu-body .pkn-top-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--c-primary) 0%, #6366f1 100%);
  color: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 56px 32px 52px;
  text-align: center;
  margin-bottom: 36px;
}
body.poikatsu-body .pkn-top-hero-orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
body.poikatsu-body .pkn-top-hero-orb-1 {
  top: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  background: rgba(255, 255, 255, 0.10);
}
body.poikatsu-body .pkn-top-hero-orb-2 {
  bottom: -80px;
  left: -40px;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.06);
}
body.poikatsu-body .pkn-top-hero-title {
  position: relative;
  font-size: 34px;
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 0.02em;
  margin: 0 0 14px;
}
body.poikatsu-body .pkn-top-hero-lead {
  position: relative;
  font-size: 16px;
  line-height: 1.8;
  opacity: 0.92;
  margin: 0 0 30px;
}
body.poikatsu-body .pkn-top-hero-ctas {
  position: relative;
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
body.poikatsu-body .pkn-top-hero-cta-primary {
  box-shadow: 0 8px 20px rgba(255, 107, 53, 0.35);
}
body.poikatsu-body .pkn-top-hero-cta-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: none;
}
body.poikatsu-body .pkn-top-hero-cta-outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* ---------- 3 つの価値 ---------- */
body.poikatsu-body .pkn-top-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 40px;
}
body.poikatsu-body .pkn-top-value {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 20px 24px;
  color: var(--c-text);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
body.poikatsu-body .pkn-top-value:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
body.poikatsu-body .pkn-top-value-emoji {
  font-size: 44px;
  line-height: 1;
  margin-bottom: 14px;
}
body.poikatsu-body .pkn-top-value-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--c-text);
  margin-bottom: 10px;
}
body.poikatsu-body .pkn-top-value-desc {
  font-size: 13px;
  color: var(--c-text-sub);
  line-height: 1.8;
  margin: 0 0 14px;
  flex: 1;
}
body.poikatsu-body .pkn-top-value-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--c-primary);
  margin-top: auto;
  transition: color 0.18s ease, transform 0.18s ease;
}
body.poikatsu-body .pkn-top-value:hover .pkn-top-value-link {
  color: var(--c-primary-dark);
  transform: translateX(2px);
}

/* ---------- セクション見出し ---------- */
body.poikatsu-body .pkn-top-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
body.poikatsu-body .pkn-top-section-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--c-text);
  margin: 0 0 16px;
}
body.poikatsu-body .pkn-top-section-head .pkn-top-section-title {
  margin: 0;
}

/* ---------- 人気ランキング ---------- */
body.poikatsu-body .pkn-top-ranking {
  margin-bottom: 40px;
}
body.poikatsu-body .pkn-top-rank {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 22px;
  margin-bottom: 12px;
  color: var(--c-text);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
body.poikatsu-body .pkn-top-rank:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
body.poikatsu-body .pkn-top-rank-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--c-border);
  color: var(--c-text-sub);
  font-weight: 900;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}
body.poikatsu-body .pkn-top-rank-num.is-top3 {
  background: linear-gradient(135deg, var(--c-accent), #ff8f5e);
  color: #fff;
}
body.poikatsu-body .pkn-top-rank-body {
  flex: 1;
  min-width: 0;
}
body.poikatsu-body .pkn-top-rank-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--c-text);
  line-height: 1.4;
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.poikatsu-body .pkn-top-rank-meta {
  flex-shrink: 0;
  text-align: right;
}
body.poikatsu-body .pkn-top-rank-price {
  font-size: 22px;
  font-weight: 900;
  color: var(--c-accent);
  line-height: 1.1;
}
body.poikatsu-body .pkn-top-rank-price .pkn-yen {
  font-size: 13px;
  font-weight: 700;
  margin-left: 1px;
}
body.poikatsu-body .pkn-top-rank-site {
  font-size: 11px;
  color: var(--c-text-sub);
  margin-top: 2px;
}
body.poikatsu-body .pkn-top-ranking-empty {
  text-align: center;
  color: var(--c-text-sub);
  padding: 32px;
}

/* ---------- カテゴリから探す ---------- */
body.poikatsu-body .pkn-top-cats {
  margin-bottom: 24px;
}
body.poikatsu-body .pkn-top-cats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
body.poikatsu-body .pkn-top-cat {
  text-align: center;
  padding: 22px 10px;
  color: var(--c-text);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
body.poikatsu-body .pkn-top-cat:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: var(--c-primary-light);
}
body.poikatsu-body .pkn-top-cat-emoji {
  font-size: 34px;
  line-height: 1;
  margin-bottom: 8px;
}
body.poikatsu-body .pkn-top-cat-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.4;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
  body.poikatsu-body .pkn-top-hero {
    padding: 40px 22px 36px;
    margin-bottom: 26px;
    border-radius: 14px;
  }
  body.poikatsu-body .pkn-top-hero-title { font-size: 26px; }
  body.poikatsu-body .pkn-top-hero-lead  { font-size: 14px; margin-bottom: 22px; }
  body.poikatsu-body .pkn-top-hero-ctas  { gap: 10px; }
  body.poikatsu-body .pkn-top-hero-ctas .pkn-btn { padding: 13px 22px; font-size: 15px; }

  body.poikatsu-body .pkn-top-values {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 28px;
  }
  body.poikatsu-body .pkn-top-value        { padding: 22px 18px 18px; }
  body.poikatsu-body .pkn-top-value-emoji  { font-size: 38px; margin-bottom: 10px; }
  body.poikatsu-body .pkn-top-value-title  { font-size: 16px; margin-bottom: 6px; }
  body.poikatsu-body .pkn-top-value-desc   { font-size: 13px; margin-bottom: 10px; }
  body.poikatsu-body .pkn-top-value-link   { font-size: 12px; }

  body.poikatsu-body .pkn-top-section-title { font-size: 17px; }

  body.poikatsu-body .pkn-top-rank {
    padding: 14px 14px;
    gap: 12px;
  }
  body.poikatsu-body .pkn-top-rank-num   { width: 30px; height: 30px; font-size: 13px; }
  body.poikatsu-body .pkn-top-rank-name  { font-size: 14px; }
  body.poikatsu-body .pkn-top-rank-price { font-size: 18px; }

  body.poikatsu-body .pkn-top-cats-grid  { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  body.poikatsu-body .pkn-top-cat        { padding: 18px 10px; }
  body.poikatsu-body .pkn-top-cat-emoji  { font-size: 30px; }
}

@media (max-width: 480px) {
  body.poikatsu-body .pkn-top-hero-title { font-size: 22px; }
  body.poikatsu-body .pkn-top-hero-ctas .pkn-btn {
    width: 100%;
    justify-content: center;
  }
}

/* =========================================================
 * Legal pages support (v3.19.0〜)
 *
 * 1. .pkn-disclosure-bar  — ステマ規制対応の広告表記バナー
 *      header.php の <body> 直下、<header> の上に常設。
 *      本文同等以上の文字サイズ・背景色との明確な区別を満たす。
 *
 * 2. .pkn-legal-nav        — フッター下部の法務リンク 3 本
 *      .pkn-footer は SP で display:none になるため、独立ブロックとして
 *      <footer> の外に配置し、PC/SP 両方で表示される。
 *
 * 3. .poikatsu-legal-doc   — 法務固定ページの本文ラッパ
 *      docs/legal/*.md → md-to-wp-html.js で生成した HTML を
 *      <!-- wp:html --> でラップして固定ページに貼った前提。
 *      JIN テーマ側にもプラグイン CSS は読み込まれないため、wpautop
 *      回避のためのスタイル簡素化のみ。本格的な見栄え調整は JIN 側 CSS で。
 * ========================================================= */

/* ---------- Disclosure bar (ad/affiliate notice) ---------- */
.pkn-disclosure-bar {
  background: var(--c-warning-light);
  border-bottom: 1px solid var(--c-border);
  color: var(--c-text);
  font-size: 13px;
  line-height: 1.5;
  padding: 8px 16px;
  text-align: center;
}
.pkn-disclosure-bar-text {
  display: inline-block;
  max-width: 960px;
}
.pkn-disclosure-bar-link {
  color: var(--c-primary-dark);
  text-decoration: underline;
  margin-left: 6px;
}
.pkn-disclosure-bar-link:hover { color: var(--c-primary); }

/* ---------- Legal nav (footer-bottom link strip) ---------- */
.pkn-legal-nav {
  background: #fff;
  border-top: 1px solid var(--c-border);
  padding: 14px 16px;
  text-align: center;
  font-size: 12px;
  color: var(--c-text-muted);
}
.pkn-legal-nav-link {
  color: var(--c-text-sub);
  text-decoration: none;
  padding: 4px 6px;
}
.pkn-legal-nav-link:hover {
  color: var(--c-primary-dark);
  text-decoration: underline;
}
.pkn-legal-nav-sep {
  color: var(--c-text-muted);
  margin: 0 4px;
}

@media (max-width: 768px) {
  .pkn-disclosure-bar { font-size: 12px; padding: 7px 12px; }
  /* SP では .pkn-footer 自体が hidden だが .pkn-legal-nav は出す。
     ボトムナビ 68px の上に重ならないよう、padding-bottom で逃がす。 */
  .pkn-legal-nav { padding-bottom: 14px; margin-bottom: 8px; }
}

/* ---------- Legal pages (page-legal.php / [poikatsu_legal_page]) ----------
 * v3.19.0〜：JIN テーマをバイパスし、まるごとポイ活側のデザインで描画する。
 * .pkn-legal-page / .pkn-legal-article は外枠（カード風背景）。
 * .poikatsu-legal-doc は本文ラッパ（md-to-wp-html.js が wp:html ブロック内に出力）。
 */
.pkn-legal-page { padding-bottom: 56px; }

.pkn-legal-article {
  background: var(--c-card);
  border-radius: var(--radius, 16px);
  box-shadow: var(--shadow-sm);
  padding: 40px 48px;
  margin: 0 auto;
  max-width: 820px;
}

.poikatsu-legal-doc {
  font-size: 15px;
  line-height: 1.85;
  color: var(--c-text);
}
.poikatsu-legal-doc > *:first-child { margin-top: 0; }
.poikatsu-legal-doc > *:last-child  { margin-bottom: 0; }

.poikatsu-legal-doc h1 {
  font-size: 28px;
  font-weight: 800;
  margin: 0 0 28px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--c-primary);
  color: var(--c-text);
  letter-spacing: 0.01em;
}
.poikatsu-legal-doc h2 {
  font-size: 19px;
  font-weight: 700;
  margin: 40px 0 14px;
  padding-left: 12px;
  border-left: 4px solid var(--c-primary);
  color: var(--c-text);
  line-height: 1.5;
}
.poikatsu-legal-doc h3 {
  font-size: 16px;
  font-weight: 700;
  margin: 26px 0 10px;
  color: var(--c-primary-dark);
}
.poikatsu-legal-doc p { margin: 0 0 16px; }
.poikatsu-legal-doc ol,
.poikatsu-legal-doc ul {
  margin: 0 0 16px;
  padding-left: 1.7em;
}
.poikatsu-legal-doc li { margin-bottom: 8px; }
.poikatsu-legal-doc li > ul,
.poikatsu-legal-doc li > ol { margin: 8px 0; }
.poikatsu-legal-doc hr {
  border: 0;
  border-top: 1px solid var(--c-border);
  margin: 28px 0;
}
.poikatsu-legal-doc a {
  color: var(--c-primary-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-all;
}
.poikatsu-legal-doc a:hover { color: var(--c-primary); }
.poikatsu-legal-doc strong {
  font-weight: 700;
  background: linear-gradient(transparent 60%, var(--c-warning-light) 60%);
  padding: 0 1px;
}

@media (max-width: 768px) {
  .pkn-legal-article { padding: 28px 22px; border-radius: 12px; }
  .poikatsu-legal-doc h1 { font-size: 24px; }
  .poikatsu-legal-doc h2 { font-size: 18px; margin-top: 32px; }
}
@media (max-width: 480px) {
  .pkn-legal-article { padding: 22px 16px; }
  .poikatsu-legal-doc { font-size: 14px; line-height: 1.8; }
  .poikatsu-legal-doc h1 { font-size: 22px; }
  .poikatsu-legal-doc h2 { font-size: 17px; margin-top: 28px; padding-left: 10px; border-left-width: 3px; }
}

/* 印刷時はカード装飾を外して紙に最適化。
 * !important 使用理由: 既存の @media (max-width: 768px) で .pkn-bottomnav に
 * display:grid が当たっているため、プリンタによっては印刷時もそのまま grid 表示
 * されてしまう。print コンテキストでの強制非表示はカスケード上の正当な用途で、
 * CLAUDE.md section 2.6 の the_content 経由ページに対する例外条項にも該当する。
 */
@media print {
  .pkn-disclosure-bar,
  .pkn-header,
  .pkn-mm,
  .pkn-bottomnav,
  .pkn-footer,
  .pkn-legal-nav { display: none !important; }
  .pkn-legal-article {
    background: #fff;
    box-shadow: none;
    padding: 0;
    max-width: none;
  }
  .poikatsu-legal-doc strong { background: none; }
}
