:root {
  color-scheme: light;
  --navy-950: #071526;
  --navy-900: #0a2039;
  --navy-800: #12304f;
  --ink: #10233a;
  --muted: #53677c;
  --cyan: #08a9c4;
  --cyan-dark: #007b94;
  --cyan-soft: #dff8fc;
  --yellow: #ffd54a;
  --yellow-soft: #fff7d3;
  --red: #b92f46;
  --red-soft: #fff0f2;
  --green: #087d65;
  --green-soft: #e8faf5;
  --paper: #f4f8fb;
  --white: #fff;
  --line: #cfdae5;
  --shadow: 0 18px 50px rgba(7, 32, 57, 0.1);
  --radius: 20px;
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 128px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans JP", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}
.skip-link {
  position: fixed;
  left: 12px;
  top: 8px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--yellow);
  color: var(--navy-950);
  font-weight: 900;
}
.skip-link:focus { transform: translateY(0); }
.wrap { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(7, 21, 38, 0.97);
  color: var(--white);
  box-shadow: 0 4px 18px rgba(7, 21, 38, 0.2);
  backdrop-filter: blur(12px);
}
.header-main {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--white);
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.25;
}
.brand-mark {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 2px solid var(--cyan);
  border-radius: 11px 4px 11px 4px;
  background: var(--yellow);
  color: var(--navy-950);
  font-size: 17px;
  font-weight: 950;
  transform: rotate(-3deg);
}
.brand small { display: block; color: #9edee8; font-size: 10px; letter-spacing: 0.08em; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid #37536e;
  border-radius: 10px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}
.header-link.x { border-color: var(--cyan); background: var(--cyan); color: var(--navy-950); }
.category-nav { border-top: 1px solid #203b55; overflow-x: auto; scrollbar-width: thin; }
.category-list {
  min-width: max-content;
  min-height: 47px;
  display: flex;
  align-items: stretch;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.category-list a {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border-bottom: 3px solid transparent;
  color: #d6e5f0;
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
}
.category-list a:hover, .category-list a[aria-current="page"] { color: #fff; border-color: var(--yellow); }

.hero {
  position: relative;
  overflow: hidden;
  padding: 48px 0 36px;
  background:
    linear-gradient(135deg, rgba(8, 169, 196, 0.14), transparent 42%),
    linear-gradient(180deg, #fff 0%, #edf7fa 100%);
  border-bottom: 1px solid var(--line);
}
.hero::after {
  content: "";
  position: absolute;
  width: 330px;
  height: 330px;
  right: -130px;
  top: -160px;
  border: 48px solid rgba(255, 213, 74, 0.34);
  border-radius: 45% 55% 50% 50%;
  transform: rotate(18deg);
  pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 38px; align-items: end; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--cyan-dark);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 22px; height: 4px; background: var(--yellow); border-radius: 99px; }
h1, h2, h3 { line-height: 1.28; letter-spacing: -0.025em; }
h1 { max-width: 760px; margin: 12px 0 14px; font-size: clamp(36px, 5.5vw, 68px); }
h1 .accent { color: var(--cyan-dark); }
.lead { max-width: 760px; margin: 0; color: var(--muted); font-size: clamp(16px, 2vw, 20px); }
.hero-meta {
  padding: 20px;
  border: 1px solid #b9d4df;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}
.hero-meta strong { display: block; margin-bottom: 6px; font-size: 15px; }
.hero-meta p { margin: 0; color: var(--muted); font-size: 13px; }
.sync-state { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.sync-state span { color: var(--green); font-weight: 900; }

.section { padding: 58px 0; }
.section-white { background: var(--white); }
.section-dark { background: var(--navy-900); color: var(--white); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 24px; }
.section-head h2 { margin: 7px 0 0; font-size: clamp(27px, 3.5vw, 42px); }
.section-head > p { max-width: 650px; margin: 0; color: var(--muted); }
.section-dark .section-head > p { color: #bed1df; }
.section-dark .eyebrow { color: #8de1ee; }

.priority-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.priority-item {
  min-height: 82px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}
.priority-item strong { display: block; font-size: 14px; }
.priority-item span { color: var(--muted); font-size: 12px; }
.priority-item.urgent { border-color: #e7a4af; background: var(--red-soft); }
.priority-item.result { border-color: #a4ddd3; background: var(--green-soft); }

.filter-row { display: flex; gap: 8px; margin: 0 0 20px; padding: 2px 0 6px; overflow-x: auto; }
.filter-chip {
  min-height: 44px;
  flex: 0 0 auto;
  padding: 0 16px;
  border: 1px solid #aac0d2;
  border-radius: 999px;
  background: #fff;
  color: var(--navy-800);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
}
.filter-chip[aria-pressed="true"] { border-color: var(--navy-900); background: var(--navy-900); color: #fff; }
.event-list { display: grid; gap: 14px; }
.event-card {
  position: relative;
  padding: 22px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--cyan);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 9px 30px rgba(7, 32, 57, 0.06);
}
.event-card[data-urgency="urgent"] { border-left-color: var(--red); }
.event-card[data-urgency="result"] { border-left-color: var(--green); }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--cyan-soft);
  color: #006a7d;
  font-size: 12px;
  font-weight: 950;
}
.status.urgent { background: var(--red-soft); color: var(--red); }
.status.result { background: var(--green-soft); color: var(--green); }
.card-top time { color: var(--muted); font-size: 12px; }
.event-card h3 { margin: 13px 0 3px; font-size: clamp(19px, 2.4vw, 25px); }
.seller { margin: 0; color: var(--muted); font-size: 13px; font-weight: 750; }
.event-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 22px; margin: 18px 0; }
.event-facts div { padding-top: 8px; border-top: 1px solid #e5edf3; }
.event-facts dt { color: var(--muted); font-size: 11px; font-weight: 800; }
.event-facts dd { margin: 2px 0 0; font-size: 14px; font-weight: 750; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.verified { color: var(--muted); font-size: 12px; }
.source-link, .button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid var(--cyan-dark);
  border-radius: 10px;
  background: var(--cyan-dark);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
}
.button.secondary { background: #fff; color: var(--navy-800); border-color: #9eb4c7; }
.empty-state {
  padding: 34px 24px;
  border: 1px dashed #8ea8bc;
  border-radius: 16px;
  background: #fff;
  text-align: center;
}
.empty-state strong { display: block; margin-bottom: 6px; font-size: 18px; }
.empty-state p { margin: 0 auto 18px; max-width: 650px; color: var(--muted); }
.data-error { border-color: #db91a0; background: var(--red-soft); }

.category-grid, .guide-grid, .policy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.category-card, .guide-card, .policy-card {
  min-height: 100%;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  text-decoration: none;
}
.category-card:hover, .guide-card:hover { border-color: var(--cyan); box-shadow: var(--shadow); }
.category-card .index { color: var(--cyan-dark); font-size: 12px; font-weight: 950; letter-spacing: 0.1em; }
.category-card h3, .guide-card h3, .policy-card h3 { margin: 10px 0 7px; font-size: 19px; }
.category-card p, .guide-card p, .policy-card p { margin: 0; color: var(--muted); font-size: 14px; }

.source-panel { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 22px; }
.source-panel > div { padding: 24px; border: 1px solid rgba(255,255,255,.16); border-radius: 16px; background: rgba(255,255,255,.06); }
.source-panel h3 { margin-top: 0; }
.source-panel p, .source-panel li { color: #c7d7e3; font-size: 14px; }
.source-panel ul { margin-bottom: 0; padding-left: 20px; }
.source-panel .button { margin-top: 8px; background: var(--yellow); border-color: var(--yellow); color: var(--navy-950); }

.ad-zone { padding: 26px; border: 2px solid #c69b15; border-radius: 16px; background: var(--yellow-soft); }
.ad-badge { display: inline-flex; padding: 4px 9px; border: 1px solid #9c7600; border-radius: 6px; background: #fff4bb; color: #5d4700; font-size: 12px; font-weight: 950; }
.ad-zone h2 { margin: 12px 0 7px; font-size: 25px; }
.ad-zone p { margin: 0; color: #655a37; }
.ad-zone .button { margin-top: 17px; background: #5a4706; border-color: #5a4706; }
.display-ad {
  width: 100%;
  min-height: 132px;
  margin: 28px auto;
  padding: 12px;
  border: 1px solid #aab5bf;
  border-radius: 8px;
  background: repeating-linear-gradient(-45deg, #f5f6f7, #f5f6f7 10px, #eef0f2 10px, #eef0f2 20px);
  color: #59636d;
  text-align: center;
}
.display-ad[hidden] { display: none; }
html[data-pokeca-ads="enabled"] .display-ad[hidden] { display: block; visibility: hidden; }
.display-ad.ad-leaderboard { max-width: 970px; min-height: 122px; }
.display-ad.ad-article { min-height: 250px; }
.ad-disclosure { display: block; margin-bottom: 7px; font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.ad-preview { display: grid; min-height: 88px; place-items: center; font-size: 12px; }

.page-hero { padding: 42px 0 30px; background: #e9f7fa; border-bottom: 1px solid var(--line); }
.page-hero h1 { margin-bottom: 9px; font-size: clamp(32px, 4.7vw, 52px); }
.page-hero p { max-width: 760px; margin: 0; color: var(--muted); }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 15px; color: var(--muted); font-size: 12px; }
.breadcrumbs a { min-height: 36px; display: inline-flex; align-items: center; }
.content-stack { display: grid; gap: 18px; }
.info-panel { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.info-panel h2 { margin: 0 0 12px; font-size: 24px; }
.info-panel h3 { margin-top: 24px; }
.info-panel p:last-child, .info-panel ul:last-child { margin-bottom: 0; }
.info-panel li + li { margin-top: 7px; }
.timeline { margin: 0; padding: 0; list-style: none; }
.timeline li { position: relative; padding: 0 0 20px 28px; }
.timeline li::before { content: ""; position: absolute; left: 5px; top: 9px; width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); }
.timeline li::after { content: ""; position: absolute; left: 9px; top: 20px; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child { padding-bottom: 0; }
.timeline li:last-child::after { display: none; }
.note { padding: 15px 17px; border-left: 4px solid var(--yellow); background: var(--yellow-soft); color: #5e522c; }
.correction-log { margin: 0; padding-left: 20px; }
.contact-box { display: flex; align-items: center; justify-content: space-between; gap: 22px; }

.site-footer { padding: 42px 0; background: var(--navy-950); color: #c9d8e4; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 0.7fr; gap: 34px; }
.footer-grid strong { color: #fff; }
.footer-grid p { max-width: 720px; margin: 8px 0 0; font-size: 13px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 15px; align-content: start; }
.footer-links a { min-height: 36px; display: inline-flex; align-items: center; color: #fff; font-size: 13px; }
.copyright { margin-top: 24px; padding-top: 18px; border-top: 1px solid #263e55; font-size: 11px; }

@media (max-width: 900px) {
  .hero-grid, .source-panel { grid-template-columns: 1fr; }
  .priority-bar { grid-template-columns: repeat(2, 1fr); }
  .category-grid, .guide-grid, .policy-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-meta { max-width: 650px; }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 112px; }
  .wrap { width: min(var(--max), calc(100% - 28px)); }
  .header-main { min-height: 55px; }
  .brand { font-size: 12px; }
  .brand small { font-size: 9px; }
  .brand-mark { width: 33px; height: 33px; }
  .header-link:not(.x) { display: none; }
  .header-link.x { min-height: 40px; padding-inline: 12px; font-size: 12px; }
  .category-list a { padding-inline: 12px; }
  .hero { padding-top: 34px; }
  .section { padding: 44px 0; }
  .section-head { display: block; }
  .section-head > p { margin-top: 11px; }
  .priority-bar, .category-grid, .guide-grid, .policy-grid { grid-template-columns: 1fr; }
  .event-card { padding: 18px; }
  .event-facts { grid-template-columns: 1fr; }
  .card-foot, .contact-box { align-items: stretch; flex-direction: column; }
  .source-link, .contact-box .button { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .display-ad, .display-ad.ad-leaderboard, .display-ad.ad-article { min-height: 250px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
