@charset "UTF-8";
/* ==========================================================================
   winter-math-mock.css｜高1の冬休みの過ごし方コラム専用CSS（v1.0）
   作成：2026-12-02（Antigravity）
   接頭辞：wm-（winter math mock）
   前提：style.css（v4.1）＋ type-column.css（v1.16）の後に読み込む
   ========================================================================== */

/* ===== 冒頭右列 HTML/CSS概念図（summer-reflection.css 準拠） ===== */
.wm-hero-figure {
  max-width: none;
  margin: 0;
}

.wm-concept {
  padding: clamp(14px, 1.8vw, 20px);
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}

.wm-concept-title {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--navy);
  word-break: auto-phrase;
  text-wrap: balance;
}

.wm-concept-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
}

.wm-concept-item {
  position: relative;
  padding: 10px 14px;
  background: var(--bg-white);
  border: 2px solid var(--navy);
  border-radius: var(--radius);
}

.wm-concept-item--start {
  background: #edf3fa;
}

.wm-concept-item--goal {
  background: #faf2f0;
  border-color: var(--accent);
}

.wm-concept-item:not(:last-child)::after {
  content: "↓";
  position: absolute;
  left: 50%;
  top: calc(100% + 1px);
  transform: translateX(-50%);
  font-size: 14px;
  font-weight: 700;
  line-height: 18px;
  color: var(--navy);
}

.wm-concept-item strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  color: var(--navy);
  word-break: auto-phrase;
  text-wrap: balance;
}

.wm-concept-item--goal strong {
  color: var(--accent);
}

.wm-concept-item span {
  display: block;
  margin-top: 3px;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text);
  word-break: auto-phrase;
  text-wrap: balance;
}

/* ===== 第2節 青帯内の1日リズム図 ===== */
.wm-daily-figure {
  margin: 24px 0 0;
  padding: 18px 20px 20px;
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.col-body p.wm-daily-title {
  margin: 0 0 14px;
  font-family: var(--serif);
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--navy);
  text-align: center;
}

.wm-daily-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.wm-daily-step {
  position: relative;
  padding: 12px 14px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  border-radius: var(--radius);
}

.wm-daily-label {
  display: inline-block;
  margin-bottom: 4px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent);
}

.wm-daily-step strong {
  display: block;
  font-size: 14px;
  line-height: 1.45;
  color: var(--navy);
  word-break: auto-phrase;
  text-wrap: balance;
}

.wm-daily-step span:last-child {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text-muted);
  text-wrap: pretty;
}

/* ===== 第3節 例題枠・数直線ウィジェット ===== */
.wm-example-box {
  margin: 24px 0 26px;
  padding: 24px 24px 22px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  border-radius: var(--radius);
}

.wm-example-title {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--navy);
}

.wm-problem-card {
  margin: 14px 0 18px;
  padding: 14px 18px;
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-left: 3px solid var(--navy-soft);
  border-radius: var(--radius);
  font-size: 15px;
  line-height: 1.8;
}

.col-body .wm-problem-card p {
  margin: 0;
}

.col-body p.wm-problem-label {
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.wm-var {
  font-family: 'Cambria Math', Georgia, 'Times New Roman', serif;
  font-style: italic;
}

.wm-widget {
  margin: 18px 0 20px;
  padding: 18px 18px 16px;
  background: var(--bg-white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
}

.wm-widget-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.col-body p.wm-widget-caption {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  word-break: auto-phrase;
  text-wrap: balance;
}

.col-body p.wm-widget-hint {
  margin: 0;
  font-size: 12px;
  color: var(--text-muted);
}

.wm-svg-wrap {
  width: 100%;
  margin: 6px 0 10px;
}

.wm-svg {
  display: block;
  width: 100%;
  height: auto;
  touch-action: none;
  user-select: none;
  cursor: ew-resize;
}

.wm-tick-dot {
  fill: #c7d3df;
  transition: fill 0.12s ease;
}

.wm-tick-badge {
  fill: #ffffff;
  stroke: #c4d0dc;
  stroke-width: 1.5;
  transition: fill 0.12s ease, stroke 0.12s ease;
}

.wm-tick-label {
  fill: #6e7d8c;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 600;
  text-anchor: middle;
  transition: fill 0.12s ease;
}

.wm-tick.is-in .wm-tick-dot {
  fill: #062852;
}

.wm-tick.is-in .wm-tick-badge {
  fill: #062852;
  stroke: #062852;
}

.wm-tick.is-in .wm-tick-label {
  fill: #ffffff;
  font-weight: 700;
}

.wm-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.wm-slider-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.wm-slider-label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy);
  min-width: 92px;
}

.wm-slider {
  flex: 1 1 180px;
  min-width: 140px;
  accent-color: var(--navy);
  cursor: pointer;
  height: 28px;
}

.wm-preset-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.wm-preset-title {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-right: 4px;
}

.wm-preset-btn {
  appearance: none;
  border: 1px solid var(--line-strong);
  background: var(--bg-surface);
  color: var(--navy);
  border-radius: 4px;
  padding: 6px 12px;
  font-family: 'Cambria Math', Georgia, var(--sans);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.wm-preset-btn:hover {
  background: var(--bg-slate);
  border-color: var(--navy);
}

.wm-preset-btn.is-active,
.wm-preset-btn[aria-pressed="true"] {
  background: var(--navy);
  border-color: var(--navy);
  color: #ffffff;
}

.wm-status {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--bg-surface);
  border: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.7;
}

.wm-status.is-match {
  background: #edf4fb;
  border-color: #9cb9d8;
}

.wm-status.is-miss {
  background: var(--accent-soft);
  border-color: #dec0ba;
}

.col-body p.wm-status-main {
  margin: 0 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.wm-badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.45;
}

.wm-status.is-match .wm-badge {
  background: var(--navy);
  color: #ffffff;
}

.wm-status.is-miss .wm-badge {
  background: var(--accent);
  color: #ffffff;
}

.col-body p.wm-status-note {
  margin: 0;
  font-size: 13.5px;
  color: var(--text);
}

.wm-check-cases {
  list-style: none;
  margin: 14px 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wm-check-cases li {
  padding: 11px 14px;
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 14.5px;
  line-height: 1.75;
  text-wrap: pretty;
}

.col-body p.wm-conclusion-line {
  margin: 14px 0 0;
  padding: 12px 16px;
  background: var(--bg-white);
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 15px;
}

/* ===== 第4節 石色帯内のまとめビジュアル ===== */
.wm-summary-panel {
  margin: 26px 0 0;
  padding: 20px 20px 22px;
  background: var(--bg-white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  border-radius: var(--radius);
}

.col-body p.wm-summary-title {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--navy);
  text-align: center;
  word-break: auto-phrase;
  text-wrap: balance;
}

.wm-summary-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.wm-summary-card {
  padding: 14px 14px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.wm-summary-card--goal {
  background: var(--accent-soft);
  border-color: #dec0ba;
}

.wm-summary-phase {
  display: inline-block;
  margin-bottom: 4px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--navy-soft);
}

.wm-summary-card--goal .wm-summary-phase {
  color: var(--accent);
}

.wm-summary-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--navy);
  word-break: auto-phrase;
  text-wrap: balance;
}

.wm-summary-card--goal strong {
  color: var(--accent);
}

.col-body .wm-summary-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--text);
  text-wrap: pretty;
}

/* ===== レスポンシブ ===== */
@media (max-width: 960px) {
  .wm-hero-figure {
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  .wm-daily-grid,
  .wm-summary-cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
}

@media (max-width: 600px) {
  .wm-concept {
    padding: 12px;
  }

  .wm-concept-item {
    padding: 9px 10px;
  }

  .wm-concept-item strong {
    font-size: 13.5px;
  }

  .wm-concept-item span {
    font-size: 12px;
  }

  .wm-daily-figure,
  .wm-summary-panel {
    padding: 16px 14px;
  }

  .wm-example-box {
    padding: 18px 14px;
  }

  .wm-widget {
    padding: 14px 12px;
  }

  .wm-preset-btn {
    padding: 6px 10px;
    font-size: 13px;
  }
}
