.mpsim,
    .mpsim * { box-sizing: border-box; }
    .mpsim {
      color: #333;
      background: #f5f7f7;
      font-family: -apple-system, BlinkMacSystemFont, "Noto Sans JP", "Yu Gothic", Meiryo, sans-serif;
    }
    .mpsim {
      --teal: #148d9a;
      --teal-dark: #08727d;
      --teal-pale: #e9f6f7;
      --yellow: #f4d735;
      --ink: #333;
      --muted: #6f7779;
      --line: #dce3e4;
      max-width: 1180px;
      margin: 0 auto;
      padding: 36px 22px 80px;
    }
    .mpsim button,
    .mpsim input,
    .mpsim select { font: inherit; }
    .mpsim a { color: inherit; }
    .mpsim__topline {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      margin-bottom: 28px;
      padding-bottom: 18px;
      border-bottom: 3px solid var(--teal);
    }
    .mpsim__brand {
      color: var(--teal);
      font-weight: 900;
      font-size: 25px;
      letter-spacing: .03em;
    }
    .mpsim__brand-star { color: var(--yellow); }
    .mpsim__prototype {
      padding: 6px 11px;
      border: 1px solid #efc33c;
      border-radius: 3px;
      color: #715a0a;
      background: #fff8d6;
      font-size: 12px;
      font-weight: 700;
    }
    .mpsim__hero {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 340px;
      gap: 46px;
      align-items: end;
      margin-bottom: 30px;
    }
    .mpsim__eyebrow {
      margin: 0 0 10px;
      color: var(--teal);
      font-size: 14px;
      font-weight: 800;
      letter-spacing: .12em;
    }
    .mpsim h1 {
      margin: 0;
      color: #252b2c;
      font-size: clamp(31px, 5vw, 52px);
      line-height: 1.18;
      letter-spacing: -.025em;
    }
    .mpsim__intro {
      margin: 18px 0 0;
      max-width: 690px;
      color: #62696b;
      font-size: 16px;
      line-height: 1.9;
    }
    .mpsim__hero-note {
      padding: 22px 24px;
      background: var(--teal-pale);
      border-left: 5px solid var(--teal);
      line-height: 1.7;
      font-size: 14px;
    }
    .mpsim__layout {
      display: grid;
      grid-template-columns: 360px minmax(0, 1fr);
      gap: 26px;
      align-items: start;
    }
    .mpsim__panel,
    .mpsim__results {
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 4px;
      box-shadow: 0 8px 28px rgba(22, 71, 77, .07);
    }
    .mpsim__panel {
      position: sticky;
      top: 18px;
      padding: 25px;
    }
    .mpsim__section-title {
      margin: 0 0 18px;
      color: #2f393b;
      font-size: 20px;
    }
    .mpsim__mode {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 6px;
      margin-bottom: 20px;
      padding: 4px;
      background: #edf1f1;
      border-radius: 4px;
    }
    .mpsim__mode input { position: absolute; opacity: 0; pointer-events: none; }
    .mpsim__mode label {
      padding: 10px 8px;
      border-radius: 3px;
      text-align: center;
      cursor: pointer;
      color: #657073;
      font-size: 13px;
      font-weight: 700;
    }
    .mpsim__mode input:checked + label {
      background: #fff;
      color: var(--teal-dark);
      box-shadow: 0 2px 8px rgba(20, 55, 60, .12);
    }
    .mpsim__field { margin-bottom: 17px; }
    .mpsim__field label,
    .mpsim__group-label {
      display: block;
      margin-bottom: 7px;
      color: #394547;
      font-size: 13px;
      font-weight: 800;
    }
    .mpsim__required { color: #d25151; }
    .mpsim__input-wrap { position: relative; }
    .mpsim__input,
    .mpsim__select {
      width: 100%;
      min-height: 46px;
      padding: 10px 42px 10px 12px;
      border: 1px solid #bdc9cb;
      border-radius: 3px;
      color: #263234;
      background: #fff;
      outline: none;
    }
    .mpsim__input:focus,
    .mpsim__select:focus {
      border-color: var(--teal);
      box-shadow: 0 0 0 3px rgba(20, 141, 154, .14);
    }
    .mpsim__unit {
      position: absolute;
      top: 50%;
      right: 13px;
      transform: translateY(-50%);
      color: #70797b;
      font-size: 13px;
    }
    .mpsim__checks {
      display: grid;
      gap: 8px;
      margin: 8px 0 22px;
    }
    .mpsim__check {
      display: flex;
      align-items: center;
      gap: 9px;
      padding: 9px 10px;
      border: 1px solid #e3e8e9;
      border-radius: 3px;
      cursor: pointer;
      font-size: 13px;
    }
    .mpsim__check input { accent-color: var(--teal); }
    .mpsim__button {
      width: 100%;
      min-height: 50px;
      border: 0;
      border-radius: 3px;
      color: #fff;
      background: var(--teal);
      cursor: pointer;
      font-weight: 800;
      letter-spacing: .04em;
      box-shadow: 0 4px 0 #08717a;
      transition: transform .15s ease, background .15s ease;
    }
    .mpsim__button:hover { background: var(--teal-dark); }
    .mpsim__button:active { transform: translateY(2px); box-shadow: 0 2px 0 #075e66; }
    .mpsim__fineprint {
      margin: 15px 0 0;
      color: #7a8385;
      font-size: 11px;
      line-height: 1.65;
    }
    .mpsim__results { padding: 25px; min-height: 650px; }
    .mpsim__summary {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 1px;
      overflow: hidden;
      margin-bottom: 25px;
      border: 1px solid var(--line);
      border-radius: 4px;
      background: var(--line);
    }
    .mpsim__metric { padding: 17px 14px; background: #f9fbfb; }
    .mpsim__metric-label { display: block; margin-bottom: 5px; color: #788184; font-size: 12px; }
    .mpsim__metric-value { color: #263234; font-size: 22px; font-weight: 900; }
    .mpsim__metric-value--teal { color: var(--teal); }
    .mpsim__result-head {
      display: flex;
      align-items: end;
      justify-content: space-between;
      gap: 18px;
      margin-bottom: 15px;
    }
    .mpsim__result-head h2 { margin: 0; color: #2d3739; font-size: 22px; }
    .mpsim__count { color: var(--teal); font-size: 14px; font-weight: 800; }
    .mpsim__grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 17px;
    }
    .mpsim__card {
      display: flex;
      flex-direction: column;
      min-width: 0;
      overflow: hidden;
      border: 1px solid #dfe6e7;
      border-radius: 4px;
      background: #fff;
      transition: transform .18s ease, box-shadow .18s ease;
    }
    .mpsim__card:hover {
      transform: translateY(-3px);
      box-shadow: 0 10px 25px rgba(17, 77, 84, .13);
    }
    .mpsim__image-wrap {
      position: relative;
      aspect-ratio: 4 / 3;
      overflow: hidden;
      background: #f4f7f7;
      border-bottom: 1px solid #e6ebec;
    }
    .mpsim__image {
      width: 100%;
      height: 100%;
      object-fit: contain;
      mix-blend-mode: multiply;
    }
    .mpsim__image-placeholder {
      display: flex;
      width: 100%;
      height: 100%;
      align-items: center;
      justify-content: center;
      padding: 24px;
      color: var(--teal-dark);
      background:
        linear-gradient(135deg, rgba(20, 141, 154, .05) 25%, transparent 25%) 0 0 / 24px 24px,
        linear-gradient(315deg, rgba(20, 141, 154, .05) 25%, transparent 25%) 0 0 / 24px 24px,
        var(--teal-pale);
      text-align: center;
      font-size: 15px;
      font-weight: 900;
      line-height: 1.5;
    }
    .mpsim__badge {
      position: absolute;
      top: 10px;
      left: 10px;
      padding: 5px 8px;
      border-radius: 2px;
      color: #fff;
      background: var(--teal);
      font-size: 11px;
      font-weight: 800;
    }
    .mpsim__badge--near { background: #b78835; }
    .mpsim__card-body { display: flex; flex: 1; flex-direction: column; padding: 16px; }
    .mpsim__category { margin-bottom: 7px; color: var(--teal); font-size: 11px; font-weight: 800; }
    .mpsim__name {
      margin: 0 0 13px;
      min-height: 48px;
      color: #30393b;
      font-size: 16px;
      line-height: 1.5;
    }
    .mpsim__variant {
      margin: -5px 0 13px;
      color: #747e80;
      font-size: 11px;
      line-height: 1.55;
    }
    .mpsim__price-row {
      display: flex;
      align-items: end;
      justify-content: space-between;
      gap: 12px;
      padding-top: 13px;
      border-top: 1px solid #edf0f1;
    }
    .mpsim__price-label { color: #7a8385; font-size: 11px; }
    .mpsim__price { color: #252e30; font-size: 22px; font-weight: 900; }
    .mpsim__price small { font-size: 12px; }
    .mpsim__total { color: #687174; font-size: 12px; text-align: right; }
    .mpsim__tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 13px 0 16px; }
    .mpsim__tag { padding: 4px 7px; background: #f1f4f4; color: #667174; font-size: 10px; }
    .mpsim__link {
      display: block;
      margin-top: auto;
      padding: 10px 12px;
      border: 1px solid var(--teal);
      border-radius: 3px;
      color: var(--teal-dark);
      text-align: center;
      text-decoration: none;
      font-size: 13px;
      font-weight: 800;
    }
    .mpsim__link:hover { color: #fff; background: var(--teal); }
    .mpsim__empty {
      grid-column: 1 / -1;
      padding: 50px 20px;
      border: 1px dashed #bccacc;
      text-align: center;
      color: #657174;
      line-height: 1.8;
    }
    .mpsim__empty strong { display: block; margin-bottom: 5px; color: #364244; font-size: 18px; }
    .mpsim__more {
      display: none;
      width: min(360px, 100%);
      min-height: 46px;
      margin: 24px auto 0;
      border: 1px solid var(--teal);
      border-radius: 3px;
      color: var(--teal-dark);
      background: #fff;
      cursor: pointer;
      font-weight: 800;
    }
    .mpsim__more:hover { color: #fff; background: var(--teal); }
    @media (max-width: 860px) {
      .mpsim__hero { grid-template-columns: 1fr; gap: 20px; }
      .mpsim__layout { grid-template-columns: 1fr; }
      .mpsim__panel { position: static; }
    }
    @media (max-width: 560px) {
      .mpsim { padding: 24px 14px 55px; }
      .mpsim__topline { align-items: flex-start; }
      .mpsim__brand { font-size: 20px; }
      .mpsim__hero-note { padding: 16px; }
      .mpsim__panel, .mpsim__results { padding: 18px; }
      .mpsim__summary { grid-template-columns: 1fr; }
      .mpsim__grid { grid-template-columns: 1fr; }
      .mpsim__result-head { align-items: flex-start; flex-direction: column; gap: 5px; }
    }
