:root {
  --ink: #2b3645;
  --muted: #718096;
  --line: #e4e8ef;
  --blue: #173a56;
  --light-blue: #e8f2fb;
  --accent: #ffd166;
  --pink: #e85d75;
  --bg: #f4f6f8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.site-header {
  background: #fff;
  border-bottom: 1px solid #e9edf3;
}

.site-logo {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 20px 14px;
  text-align: center;
}

.site-logo img {
  width: min(100%, 720px);
  margin: 0 auto;
}

.pickup-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 850px;
  margin: 26px auto 28px;
  padding: 0 18px;
}

.pickup-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid #dfe5ed;
  box-shadow: 0 3px 10px rgba(31, 41, 55, .08);
}

.pickup-card img {
  width: 100%;
}

.page-shell {
  max-width: 940px;
  margin: 0 auto 52px;
  padding: 0 18px;
}

.breadcrumbs {
  margin: 0 0 12px;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
}

.breadcrumbs a {
  color: #1f5f99;
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.article-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 6px 18px rgba(31, 41, 55, .08);
}

.article-header {
  padding: 28px 30px 18px;
}

.article-category {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 12px;
  background: #e85d75;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
}

.article-header h1 {
  margin: 16px 0 10px;
  color: #253052;
  font-size: clamp(24px, 4vw, 34px);
  font-weight: 900;
  line-height: 1.38;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.article-body {
  padding: 0 30px 34px;
}

.article-body p {
  margin: 0 0 22px;
}

.hero-figure {
  display: flex;
  justify-content: center;
  margin: 6px 0 26px;
  padding: 18px;
  background: #f7f8fa;
  border: 1px solid #dbe2ed;
  border-radius: 6px;
}

.hero-figure img,
.pcl-gymdeck img {
  border: 1px solid #e2e8f0;
}

.hero-figure img {
  width: min(100%, 360px);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(31, 41, 55, .16);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0 28px;
}

.summary-card {
  min-width: 0;
  padding: 14px;
  background: #f9fbff;
  border: 1px solid #dbe5f1;
  border-radius: 6px;
}

.summary-label,
.summary-note {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.summary-card strong {
  display: block;
  margin: 5px 0 6px;
  color: var(--blue);
  font-size: 21px;
  font-weight: 900;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.toc-box {
  margin: 28px 0 34px;
  padding: 16px 18px;
  background: #f7f8fa;
  border: 1px solid #d9dee8;
  border-radius: 6px;
}

.toc-title {
  margin: 0 0 8px;
  color: #253052;
  font-size: 15px;
  font-weight: 900;
}

.toc-box ol {
  margin: 0;
  padding-left: 22px;
}

.toc-box li {
  margin: 3px 0;
  font-weight: 800;
}

.toc-box a {
  color: #006d77;
}

.article-body h2 {
  margin: 38px 0 18px;
  padding: 12px 14px;
  background: var(--blue);
  border-left: 7px solid var(--accent);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.45;
}

.article-body h3 {
  margin: 28px 0 12px;
  padding: 9px 12px;
  background: #fff7d8;
  border-left: 6px solid var(--pink);
  color: #253052;
  font-size: 18px;
  font-weight: 900;
}

.analysis-panel,
.card-table,
.card-result {
  margin: 18px 0 30px;
  background: #fff;
  border: 1px solid #dbe2ed;
  border-radius: 6px;
}

.analysis-panel {
  padding: 16px;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(120px, 1fr) 56px;
  align-items: center;
  gap: 12px;
  max-width: 680px;
  min-height: 38px;
  font-size: 14px;
  font-weight: 900;
}

.bar-row span {
  line-height: 1.35;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.bar-track {
  width: 100%;
  max-width: 420px;
  height: 12px;
  overflow: hidden;
  background: #edf2f7;
  border-radius: 999px;
}

.bar-track i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #006d77, #e85d75);
  border-radius: inherit;
}

.bar-row strong {
  color: #006d77;
  text-align: right;
}

.focus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0 26px;
}

.focus-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  background: #f9fbff;
  border: 1px solid #dbe5f1;
  border-radius: 6px;
}

.focus-card__image {
  width: 74px;
  aspect-ratio: 63 / 88;
  object-fit: cover;
  border-radius: 4px;
  background: #eef2f7;
  box-shadow: 0 3px 9px rgba(15, 23, 42, .14);
}

.focus-card__image.is-hidden {
  display: none;
}

.focus-card__body {
  min-width: 0;
}

.focus-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.focus-card strong {
  display: block;
  margin: 5px 0 6px;
  color: var(--blue);
  font-size: 19px;
  font-weight: 900;
  line-height: 1.3;
}

.focus-card p {
  margin: 0;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}

.card-search {
  margin: 24px 0 12px;
  padding: 15px;
  background: #f7f8fa;
  border: 1px solid #d9dee8;
  border-radius: 6px;
}

.card-search label {
  display: block;
  margin: 0 0 8px;
  color: #253052;
  font-size: 14px;
  font-weight: 900;
}

.card-search__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 92px;
  gap: 10px;
}

.card-search input {
  min-width: 0;
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid #b8c2d1;
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
}

.card-search button,
.card-hints button {
  min-height: 42px;
  padding: 8px 12px;
  border: 1px solid #123047;
  border-radius: 6px;
  background: #123047;
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.card-result {
  overflow: hidden;
}

.card-result__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  background: #fff7d8;
  color: #253052;
}

.card-result__label {
  display: block;
  color: #697386;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.3;
}

.card-result__head strong {
  display: block;
  margin-top: 3px;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.2;
}

.card-result__head > span {
  flex: 0 0 auto;
  color: #006d77;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.5;
  text-align: right;
}

.copy-note {
  padding: 12px 16px;
  border-bottom: 1px solid #edf0f5;
  color: #475569;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
}

.adoption-chart {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.adoption-row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 52px;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  font-size: 13px;
  font-weight: 900;
}

.adoption-bar {
  height: 16px;
  overflow: hidden;
  background: #edf2f7;
  border-radius: 999px;
}

.adoption-bar i {
  display: block;
  height: 100%;
  min-width: 2px;
  background: linear-gradient(90deg, #006d77, #e85d75);
  border-radius: inherit;
}

.adoption-row strong {
  color: #006d77;
  text-align: right;
}

.chart-empty {
  padding: 12px;
  background: #f9fbff;
  border: 1px dashed #b8c2d1;
  border-radius: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.card-hints {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: -18px 0 30px;
}

.card-hints span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.card-hints button {
  min-height: 32px;
  padding: 6px 10px;
  background: #fff;
  color: #123047;
  font-size: 12px;
}

.card-table {
  overflow: hidden;
}

.table-head,
.table-row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) 90px minmax(0, 1.4fr);
  gap: 10px;
  align-items: center;
  padding: 11px 14px;
  border-top: 1px solid #edf0f5;
}

.table-head {
  border-top: 0;
  background: #fff7d8;
  color: #253052;
  font-size: 13px;
  font-weight: 900;
}

.table-row {
  font-size: 14px;
  font-weight: 800;
}

.table-row:nth-child(odd) {
  background: #fafbfe;
}

.pcl-gymdecks {
  clear: both;
  margin: 18px 0 34px;
  color: #1f2937;
  line-height: 1.5;
}

.pcl-gymdecks__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  background: #123047;
  color: #fff;
  border-radius: 6px 6px 0 0;
}

.pcl-gymdecks__title {
  min-width: 0;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.35;
}

.pcl-gymdecks__count {
  flex: 0 0 auto;
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.pcl-gymdecks__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 14px;
  background: #fff;
  border: 1px solid #d9dee8;
  border-top: 0;
  border-radius: 0 0 6px 6px;
}

.pcl-gymdecks__empty {
  grid-column: 1 / -1;
  padding: 18px 14px;
  background: #fff;
  border: 1px solid #d9dee8;
  border-radius: 6px;
  color: #596579;
  font-weight: 800;
}

.pcl-gymdeck {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 12px;
  background: #fff;
  border: 1px solid #d9dee8;
  border-radius: 6px;
}

.pcl-gymdeck__head {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.pcl-gymdeck__shop {
  min-width: 0;
  overflow: hidden;
  color: #1f2937;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pcl-gymdeck__date {
  flex: 0 0 auto;
  color: #697386;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.pcl-gymdeck__name {
  min-width: 0;
  overflow: hidden;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pcl-gymdeck img {
  width: 100%;
  max-width: 100%;
  margin: 0;
  border-radius: 6px;
  background: #f6f8fb;
  cursor: zoom-in;
}

.pcl-gymdeck__code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #123047;
  border-radius: 6px;
  background: #fff;
  color: #123047;
  font: inherit;
  line-height: 1.2;
  cursor: pointer;
}

.pcl-gymdeck__code-label {
  color: #697386;
  font-size: 11px;
  font-weight: 900;
}

.pcl-gymdeck__code-value {
  font-size: 13px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.deck-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99998;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(10, 14, 24, .86);
}

.deck-lightbox.is-open {
  display: flex;
}

.deck-lightbox img {
  max-width: min(96vw, 1120px);
  max-height: 86vh;
  border-radius: 6px;
  background: #fff;
}

.deck-lightbox button {
  position: fixed;
  top: 16px;
  right: 16px;
  min-width: 42px;
  min-height: 42px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 6px;
  background: #111827;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  cursor: pointer;
}

.site-footer {
  padding: 28px 18px 36px;
  color: #94a3b8;
  text-align: center;
}

@media (max-width: 720px) {
  body {
    font-size: 15px;
  }

  .pickup-strip,
  .summary-grid,
  .focus-grid,
  .pcl-gymdecks__grid {
    grid-template-columns: 1fr;
  }

  .pcl-gymdecks__bar {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .pcl-gymdecks__grid {
    padding: 10px;
    gap: 12px;
  }

  .pcl-gymdeck {
    padding: 10px;
  }

  .pcl-gymdeck__shop,
  .pcl-gymdeck__name {
    white-space: normal;
  }

  .article-header,
  .article-body {
    padding-left: 18px;
    padding-right: 18px;
  }

  .bar-row {
    grid-template-columns: 1fr 48px;
    gap: 8px;
  }

  .bar-track {
    grid-column: 1 / -1;
    order: 3;
    max-width: none;
  }

  .focus-card {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .focus-card__image {
    width: 64px;
  }

  .table-head,
  .table-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .card-search__row,
  .card-result__head,
  .adoption-row {
    grid-template-columns: 1fr;
  }

  .card-result__head {
    display: grid;
  }

  .card-result__head > span,
  .adoption-row strong {
    text-align: left;
  }
}
