/* プラン詳細・資料室図解 */

:root {
  --plan-ink: #1a1a1a;
  --plan-muted-ink: #4a4a4a;
  --plan-line: #d7d2c8;
  --plan-paper: #f4f1ea;
  --plan-soft: #e8e6e0;
  --plan-white: #fbfaf7;
}

.plan-hero__price {
  margin: 6px 0 10px;
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  font-weight: 700;
  line-height: 1.1;
  color: #1a1a1a;
}

.plan-hero__price span {
  margin-left: 8px;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: #5c5c5c;
}

.plan-illust {
  contain: inline-size;
  inline-size: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 18px 0 0;
  border: 1px solid var(--plan-line);
  background: var(--plan-white);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(26, 26, 26, 0.035);
}

.plan-illust:empty,
.plan-illust:not(:has(svg)) {
  /* SVG未挿入時は場所だけ確保(公開前にCodexが埋める) */
  min-height: 120px;
  background:
    repeating-linear-gradient(45deg, #f4f1ea 0 12px, #fbfaf7 12px 24px);
}

.plan-illust svg {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  overflow: hidden;
  fill: none;
  stroke: var(--plan-ink);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  shape-rendering: geometricPrecision;
}

.plan-illust svg :is(path, rect, circle, ellipse, line, polyline, polygon) {
  vector-effect: non-scaling-stroke;
}

.plan-illust svg text {
  fill: var(--plan-ink);
  stroke: none;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.plan-illust .illust-paper { fill: var(--plan-paper); }
.plan-illust .illust-soft { fill: var(--plan-soft); }
.plan-illust .illust-screen { fill: #fff; }
.plan-illust .illust-ink { fill: var(--plan-ink); }
.plan-illust .illust-dash {
  stroke: #77736c;
  stroke-dasharray: 7 8;
}
.plan-illust .illust-ground { stroke-width: 1.5; }
.plan-illust .illust-arrow { stroke-width: 2.4; }
.plan-illust .illust-check { stroke: #fff; stroke-width: 2.5; }
.plan-illust .illust-label { font-size: 16px; }
.plan-illust .illust-kicker { font-size: 19px; font-weight: 700; }
.plan-illust .illust-note { fill: var(--plan-muted-ink); font-size: 15px; }
.plan-illust .illust-step-no {
  font-family: 'Noto Serif JP', serif;
  font-size: 25px;
  font-weight: 700;
}
.plan-illust .illust-mini { font-size: 10px; font-weight: 700; }
.plan-illust .illust-label--light { fill: #fff; }

.plan-illust .illust-stage rect {
  fill: var(--plan-paper);
}

.plan-illust .illust-stage.is-current rect {
  fill: var(--plan-ink);
  stroke-width: 2.5;
}

.plan-illust .illust-stage.is-current text {
  fill: #fff;
}

.plan-illust--hero {
  margin-top: 22px;
  background:
    linear-gradient(180deg, rgba(232, 230, 224, 0.38), rgba(251, 250, 247, 0) 38%),
    var(--plan-white);
}
.plan-illust--flow, .plan-illust--wide, .plan-illust--compare { margin-bottom: 14px; }

.plan-fit-grid,
.plan-include-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 8px;
}

.plan-include-grid { grid-template-columns: repeat(2, 1fr); }

.plan-fit-card,
.plan-include-card {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--plan-line);
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 8px 22px rgba(26, 26, 26, 0.025);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.plan-fit-card p { margin: 12px 0 0; }

.plan-include-card h3 {
  margin: 12px 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
}

.plan-include-card p { margin: 0; font-size: 0.92rem; color: #4a4a4a; }

.plan-fit-card .plan-illust--icon,
.plan-include-card .plan-illust--icon {
  inline-size: 56px;
  margin: 0;
  border: 0;
  background: transparent;
  min-height: 56px;
  box-shadow: none;
}

.plan-fit-card .plan-illust--icon:not(:has(svg)),
.plan-include-card .plan-illust--icon:not(:has(svg)) {
  min-height: 56px;
  width: 56px;
  background: #f4f1ea;
  border-radius: 50%;
}

.plan-illust--icon svg { width: 56px; height: 56px; }

.plan-cta { margin-top: 28px; }
.text-center { text-align: center; }

/* pのグローバルmax-width(38em)で箱が左に寄り、中央見出しとズレるのを防ぐ */
.plan-cta p,
p.text-center {
  margin-inline: auto;
}

.guide-grid > section,
.faq,
.work-page section {
  min-width: 0;
}

@media (hover: hover) and (pointer: fine) {
  .plan-fit-card:hover,
  .plan-include-card:hover {
    transform: translateY(-2px);
    border-color: #aaa59b;
    box-shadow: 0 12px 30px rgba(26, 26, 26, 0.07);
  }
}

@media (max-width: 920px) {
  .plan-fit-grid { grid-template-columns: 1fr; }
  .plan-include-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .plan-hero__price span {
    display: block;
    margin: 8px 0 0;
    line-height: 1.5;
  }

  .plan-illust {
    margin-top: 14px;
    border-radius: 3px;
    box-shadow: none;
  }

  .plan-illust--hero { margin-top: 18px; }

  .plan-fit-card,
  .plan-include-card {
    padding: 18px;
  }

  .plan-illust .illust-dash { stroke-dasharray: 5 6; }
}
