/* ========================================
   外来魚バスターズ - Infographic Prototype
   ======================================== */

.InfographicShell {
  max-width: 1040px;
}

.InfographicHero {
  margin-top: 22px;
  padding: 28px 30px;
  background: linear-gradient(135deg, #90e0ef 0%, #ade8f4 100%);
  color: #023e8a;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,150,200,0.15);
}

.InfographicEyebrow {
  margin: 0 0 6px 0;
  color: #0077b6;
  font-size: 13px;
  font-weight: bold;
}

.InfographicHero h1 {
  margin: 0;
  color: #023e8a;
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: 0;
}

.InfographicLead {
  max-width: 720px;
  margin: 12px 0 0 0;
  color: #005f86;
  line-height: 1.8;
}

.KpiGrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.KpiTile {
  min-height: 118px;
  box-sizing: border-box;
  padding: 16px;
  background: #fff;
  border: 1px solid #d6e7ea;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(7, 59, 76, 0.08);
}

.KpiLabel,
.KpiUnit {
  display: block;
  color: #5d747b;
  font-size: 13px;
}

.KpiTile strong {
  display: block;
  margin-top: 8px;
  color: #073b4c;
  font-size: 32px;
  line-height: 1.05;
  letter-spacing: 0;
}

.Panel {
  margin-top: 14px;
  padding: 18px;
  background: #fff;
  border: 1px solid #d6e7ea;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(7, 59, 76, 0.08);
}

.PanelHeader {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.PanelHeader h2 {
  margin: 0;
  color: #073b4c;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: 0;
}

.PanelHeader p {
  margin: 4px 0 0 0;
  color: #607982;
  font-size: 13px;
  line-height: 1.6;
}

.ControlPanel {
  display: grid;
  grid-template-columns: 1fr 1fr 1.3fr;
  gap: 16px;
  align-items: end;
}

.ControlLabel {
  display: block;
  margin-bottom: 8px;
  color: #415b63;
  font-size: 13px;
  font-weight: bold;
}

.Segmented {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  background: #edf5f6;
  border-radius: 8px;
}

.Segmented button,
.PanelHeader select {
  min-height: 36px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #31505a;
  font: inherit;
  font-size: 13px;
  font-weight: bold;
  cursor: pointer;
}

.Segmented button.is-active {
  background: #118ab2;
  color: #fff;
  box-shadow: 0 1px 6px rgba(17, 138, 178, 0.26);
}

.PanelHeader select {
  min-width: 120px;
  padding: 0 10px;
  background: #edf5f6;
  border-color: #c7dde2;
}

.RangeControls {
  display: grid;
  gap: 10px;
}

.RangeControls label {
  display: grid;
  grid-template-columns: 56px 42px 1fr;
  align-items: center;
  gap: 8px;
  color: #415b63;
  font-size: 13px;
  font-weight: bold;
}

.RangeControls output {
  color: #073b4c;
  text-align: right;
}

.RangeControls input {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: #d8e8eb;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.RangeControls input::-webkit-slider-thumb {
  width: 18px;
  height: 18px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #118ab2;
  box-shadow: 0 1px 6px rgba(7, 59, 76, 0.25);
  appearance: none;
  -webkit-appearance: none;
}

.RangeControls input::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #118ab2;
  box-shadow: 0 1px 6px rgba(7, 59, 76, 0.25);
}

.RangeControls input::-moz-range-track {
  height: 6px;
  border: 0;
  border-radius: 999px;
  background: transparent;
}

.ChartFrame {
  min-height: 330px;
  overflow: hidden;
}

.ChartFrame svg {
  display: block;
  width: 100%;
  height: auto;
}

.ChartAxis {
  stroke: #bfd5da;
  stroke-width: 1;
}

.ChartGrid {
  stroke: #e8f1f3;
  stroke-width: 1;
}

.ChartBar {
  fill: #118ab2;
  cursor: pointer;
  transition: opacity 0.2s, fill 0.2s;
}

.ChartBar:hover,
.ChartBar.is-selected {
  fill: #ef476f;
}

.ChartLabel,
.ChartValue {
  fill: #415b63;
  font-size: 11px;
}

.ChartValue {
  font-weight: bold;
}

.TextLink {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid #c7dde2;
  border-radius: 6px;
  color: #0b6f8f;
  font-size: 13px;
  font-weight: bold;
  text-decoration: none;
}

.TextLink:hover {
  background: #edf5f6;
  text-decoration: none;
}

.InsightGrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}

.MonthHeatmap {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.MonthCell {
  min-height: 78px;
  box-sizing: border-box;
  padding: 10px;
  border-radius: 8px;
  background: #edf5f6;
  color: #073b4c;
  border: 1px solid rgba(7, 59, 76, 0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.32);
}

.MonthCell strong {
  display: block;
  font-size: 15px;
}

.MonthCell span {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.35;
}

.MonthCell.is-hot {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.18);
}

.CalendarLegend {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
  margin: -2px 0 10px 0;
  color: #607982;
  font-size: 12px;
}

.LegendSwatch {
  width: 20px;
  height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(7, 59, 76, 0.12);
}

.CalendarHeatmap {
  overflow-x: auto;
}

.CalendarGrid {
  display: grid;
  grid-template-columns: 58px repeat(12, minmax(48px, 1fr));
  gap: 5px;
  min-width: 760px;
}

.CalendarHead,
.CalendarYear,
.CalendarCell {
  min-height: 34px;
  box-sizing: border-box;
  border-radius: 6px;
}

.CalendarHead,
.CalendarYear {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #415b63;
  font-size: 12px;
  font-weight: bold;
}

.CalendarCell {
  position: relative;
  padding: 6px;
  border: 1px solid rgba(7, 59, 76, 0.1);
  color: #073b4c;
  cursor: pointer;
}

.CalendarCell.is-hot {
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.CalendarCell strong {
  display: block;
  font-size: 12px;
  line-height: 1.1;
}

.CalendarCell span {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  line-height: 1.25;
}

.EfficiencyGrid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.EfficiencyTile {
  min-height: 86px;
  padding: 10px;
  box-sizing: border-box;
  background: #f7fbfb;
  border: 1px solid #e2eef0;
  border-radius: 8px;
}

.EfficiencyTile span {
  display: block;
  color: #607982;
  font-size: 11px;
  font-weight: bold;
  line-height: 1.3;
}

.EfficiencyTile strong {
  display: block;
  margin-top: 5px;
  color: #073b4c;
  font-size: 20px;
  line-height: 1.1;
}

.EfficiencyTile small {
  display: block;
  margin-top: 4px;
  color: #607982;
  font-size: 10px;
  line-height: 1.35;
}

.MilestoneTrack {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.MilestoneCard {
  position: relative;
  min-height: 156px;
  padding: 14px;
  box-sizing: border-box;
  background: #f7fbfb;
  border: 1px solid #d6e7ea;
  border-radius: 8px;
}

.MilestoneCard::before {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  margin-bottom: 10px;
  background: #118ab2;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(17, 138, 178, 0.12);
}

.MilestoneCard strong {
  display: block;
  color: #073b4c;
  font-size: 22px;
  line-height: 1.1;
}

.MilestoneCard span,
.MilestoneCard small {
  display: block;
  color: #607982;
  font-size: 12px;
  line-height: 1.5;
}

.MilestoneCard span {
  margin-top: 8px;
}

.MilestoneCard a {
  display: inline-block;
  margin-top: 10px;
  color: #0b6f8f;
  font-size: 12px;
  font-weight: bold;
}

.SpeciesBars {
  display: grid;
  gap: 12px;
}

.SpeciesRow {
  display: grid;
  grid-template-columns: 92px 1fr 74px;
  align-items: center;
  gap: 10px;
}

.SpeciesName,
.SpeciesValue {
  color: #415b63;
  font-size: 13px;
  font-weight: bold;
}

.SpeciesValue {
  text-align: right;
}

.SpeciesTrack {
  height: 12px;
  overflow: hidden;
  background: #edf5f6;
  border-radius: 999px;
}

.SpeciesFill {
  height: 100%;
  min-width: 2px;
  border-radius: 999px;
}

.RankingList {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.RankingList li {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 9px 10px;
  background: #f7fbfb;
  border: 1px solid #e2eef0;
  border-radius: 8px;
  cursor: pointer;
}

.RankingList li:hover {
  border-color: #9bcbd5;
  background: #edf7f8;
}

.RankNo {
  color: #ef476f;
  font-weight: bold;
}

.RankDate {
  color: #073b4c;
  font-weight: bold;
}

.RankMeta,
.RankValue {
  color: #607982;
  font-size: 12px;
}

.RankValue {
  color: #073b4c;
  font-weight: bold;
  white-space: nowrap;
}

.PhotoStrip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.PhotoCard {
  overflow: hidden;
  border: 1px solid #e2eef0;
  border-radius: 8px;
  background: #f7fbfb;
}

.PhotoCard button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.PhotoCard img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.PhotoCard span {
  display: block;
  padding: 8px;
  color: #415b63;
  font-size: 12px;
  font-weight: bold;
}

.EmptyState {
  padding: 18px;
  color: #607982;
  background: #f7fbfb;
  border: 1px dashed #c7dde2;
  border-radius: 8px;
  text-align: center;
}

@media screen and (max-width: 900px) {
  .InfographicShell {
    width: 95%;
  }

  .KpiGrid,
  .ControlPanel,
  .InsightGrid,
  .MilestoneTrack {
    grid-template-columns: 1fr 1fr;
  }

  .EfficiencyGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .RangeControls {
    grid-column: 1 / -1;
  }
}

@media screen and (max-width: 620px) {
  .InfographicHero {
    padding: 22px 18px;
  }

  .InfographicHero h1 {
    font-size: 26px;
  }

  .KpiGrid,
  .ControlPanel,
  .InsightGrid,
  .PhotoStrip,
  .MilestoneTrack {
    grid-template-columns: 1fr;
  }

  .EfficiencyGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .KpiTile {
    min-height: 96px;
  }

  .MonthHeatmap {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .PanelHeader {
    display: block;
  }

  .PanelHeader select,
  .TextLink {
    margin-top: 10px;
  }

  .RankingList li {
    grid-template-columns: 28px 1fr;
  }

  .RankValue {
    grid-column: 2;
  }
}
