/* ============================================================
   XenoX プランのページ専用スタイル（スタンダード／プレミアム／エンタープライズ）
   - 共通の土台 xm.css の後に読み込む
   - 一覧ページでは読み込まない
   ============================================================ */

/* このファイルで使う色（モックの値そのまま） */
.xm {
  --ink-18: rgba(21, 23, 28, .18);
  --white: #fff;
  --muted: #6d717a;
  --gray: #555;
  --rule-2: #d6d5ce;
}



/* ---------- 料金 ---------- */
.xm-price { font-family: var(--en); font-weight: 700; font-size: clamp(44px, 7vw, 72px); line-height: 1; }
.xm-price small { font-size: .32em; font-family: "Noto Sans JP", sans-serif; margin-left: 6px; }
.xm-strike { text-decoration: line-through; text-decoration-thickness: 3px; text-decoration-color: var(--red); color: var(--muted); }


/* プランの切り替え */
.xm-plantabs { display: inline-flex; gap: 4px; padding: 4px; border: var(--bd); border-radius: 999px; background: var(--white); box-shadow: var(--sh-sm); margin-bottom: 18px; flex-wrap: wrap; max-width: 100%; }
.xm-plantabs a { padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; text-decoration: none; }
.xm-plantabs a.is-cur { background: var(--ink); color: var(--white); }
@media (max-width: 480px) { .xm-plantabs { flex-wrap: nowrap; } .xm-plantabs a { padding: 6px 10px; font-size: 12px; white-space: nowrap; } }
/* ヒーローの料金の行。1カラムの幅では中央に寄せる（xm.css のヒーロー中央寄せに合わせる） */
.xm-hero__price { margin-top: 26px; display: flex; gap: 18px; align-items: flex-end; flex-wrap: wrap; }
@media (max-width: 960px) { .xm-hero__price { justify-content: center; } .xm-hero .xm-delta { display: table; margin-left: auto; margin-right: auto; } }
/* プランのアイコンとバッジ（ヒーロー） */
.xm-plantitle { display: flex; align-items: center; gap: 14px; margin-bottom: 6px; }
.xm-plantitle img { width: 64px; height: 64px; flex: none; filter: drop-shadow(3px 3px 0 var(--ink)); }
.xm-plantitle p { margin: 0; }
@media (max-width: 960px) { .xm-plantitle { justify-content: center; } }
/* 下のプランとの差（ヒーロー） */
.xm-delta { display: inline-block; margin-top: 18px; text-align: left; background: var(--white); border: var(--bd); border-radius: 14px; padding: 10px 16px; box-shadow: var(--sh-sm); font-weight: 700; line-height: 1.7; }
.xm-delta b { font-family: var(--en); font-size: 1.25em; }
.xm-delta em { font-style: normal; background: linear-gradient(transparent 60%, var(--yellow) 60%); }
/* 料金の内訳 */
.xm-calc { font-family: var(--mono); font-size: 14px; }
.xm-calc table { width: 100%; border-collapse: collapse; }
.xm-calc td { padding: 6px 0; border-bottom: 1px dashed var(--rule-2); vertical-align: top; }
.xm-calc td small { display: block; font-family: "Noto Sans JP", sans-serif; font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.xm-calc td:last-child { text-align: right; white-space: nowrap; padding-left: 12px; }
.xm-calc .xm-calc__sum td { border-bottom: 0; padding-top: 12px; font-weight: 700; }
.xm-calc .xm-calc__plan { margin-top: 14px; background: var(--yellow-2); border: 2px solid var(--ink); border-radius: 12px; padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px; font-family: "Noto Sans JP", sans-serif; font-weight: 900; }
.xm-calc .xm-calc__plan b { font-family: var(--en); font-size: 30px; }
.xm-save-badge { display: inline-flex; align-items: baseline; gap: 6px; background: var(--red); color: var(--white); font-weight: 900; border: var(--bd); border-radius: 14px; padding: 6px 16px; box-shadow: var(--sh-sm); transform: rotate(-3deg); }
.xm-save-badge b { font-family: var(--en); font-size: 30px; }
/* このプランで増えるもの */
.xm-scenes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 40px; }
@media (max-width: 960px) { .xm-scenes { grid-template-columns: minmax(0, 1fr); } }
.xm-scene { background: var(--white); border: var(--bd); border-radius: 18px; box-shadow: var(--sh); padding: 22px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.xm-scene__no { font-family: var(--en); font-weight: 700; font-size: 12px; letter-spacing: .14em; color: var(--navy); }
.xm-scene h3 { margin: 0; font-size: 20px; line-height: 1.45; word-break: keep-all; overflow-wrap: anywhere; }
.xm-scene__before { font-size: 14px; color: var(--muted); padding-left: 12px; border-left: 3px solid var(--paper-2); }
.xm-scene__after { font-size: 15px; font-weight: 700; padding-left: 12px; border-left: 3px solid var(--yellow); }
.xm-scene__tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 2px dashed var(--ink-18); }
.xm-scene__tools a { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; text-decoration: none; background: var(--paper); border: 2px solid var(--ink); border-radius: 999px; padding: 3px 10px 3px 8px; }
.xm-scene__tools img { width: 24px; height: 24px; }
/* こんな会社に */
.xm-fit { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 36px; }
@media (max-width: 860px) { .xm-fit { grid-template-columns: minmax(0, 1fr); } }
.xm-fit > div { background: var(--white); border: var(--bd); border-radius: 18px; padding: 22px 24px; box-shadow: var(--sh-sm); }
.xm-fit h3 { margin: 0 0 12px; font-size: 18px; }
.xm-fit ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.xm-fit li { position: relative; padding-left: 28px; line-height: 1.65; }
.xm-fit li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--green); color: var(--white); font-size: 12px; display: grid; place-items: center; margin-top: 3px; }
.xm-fit .xm-fit__other { background: var(--paper-2); }
.xm-fit .xm-fit__other li::before { content: "→"; background: var(--navy); }
.xm-fit .xm-fit__other a { font-weight: 700; }
/* つくっている人 */
.xm-maker { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 32px; align-items: center; }
@media (max-width: 760px) { .xm-maker { grid-template-columns: minmax(0, 1fr); text-align: center; } .xm-maker .xm-face { margin: 0 auto; } }
.xm-face { width: 210px; height: 210px; border-radius: 50%; border: var(--bd); box-shadow: var(--sh); background: var(--yellow); overflow: hidden; }
.xm-face img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transform: scale(1.08) translateY(4%); }
.xm-face__cap { margin: 14px 0 0; text-align: center; font-weight: 900; font-size: 17px; line-height: 1.4; }
.xm-face__cap small { display: block; font-size: 12px; font-weight: 700; color: var(--gray); }
.xm-maker__tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
@media (max-width: 760px) { .xm-maker__tags { justify-content: center; } }
/* マニアだから（の図） */
.xm-mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.xm-mini li { display: flex; gap: 10px; align-items: center; }
.xm-mini img { width: 30px; height: 30px; }
.xm-mini .xm-chk { margin-left: auto; color: var(--green); font-weight: 900; }
.xm-set { display: grid; gap: 10px; font-size: 14px; }
.xm-set label { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 2px solid var(--ink); border-radius: 10px; padding: 10px 12px; background: var(--white); }
.xm-toggle { width: 42px; height: 24px; flex: none; border-radius: 999px; background: var(--navy); position: relative; border: 2px solid var(--ink); }
.xm-toggle::after { content: ""; position: absolute; top: 2px; right: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--white); }
.xm-log { font-family: var(--mono); font-size: 13px; line-height: 2; }
.xm-log .v { background: var(--ink); color: var(--yellow); padding: 0 6px; border-radius: 4px; margin-right: 6px; }
/* 比較表の補足 */
.xm-table th small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.5; }
.xm-table thead a { color: inherit; }
/* プランの比較表：左の列を狭め、プランの列は1行に収める（入らない幅では表だけ横にスクロール） */
.xm-compare { table-layout: fixed; min-width: 640px; }
.xm-compare col.xm-compare__label { width: 40%; }
.xm-compare thead th:not(:first-child), .xm-compare td { white-space: nowrap; }
/* 幅が狭いときは、横にはみ出さないよう表を画面幅に収める。プラン名や金額は改行してよい */
@media (max-width: 720px) {
  .xm-compare { min-width: 0; font-size: 13px; }
  .xm-compare col.xm-compare__label { width: 34%; }
  .xm-compare th, .xm-compare td { padding: 10px 8px; }
  .xm-compare thead th:not(:first-child), .xm-compare td { white-space: normal; word-break: normal; overflow-wrap: anywhere; }
  .xm-compare thead th { font-size: 12px; line-height: 1.4; }
  .xm-compare th small { font-size: 11px; }
}
@media (max-width: 400px) {
  .xm-compare { font-size: 12px; }
  .xm-compare th, .xm-compare td { padding: 8px 5px; }
}

/* 最後の帯から、下の既存の「お見積り」と契約カードへつなぐ */
.xm-next { margin: 26px 0 0; font-weight: 700; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.xm-next span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); color: var(--ink); border: var(--bd); font-size: 18px; }
@media (prefers-reduced-motion: no-preference) { .xm-next span { animation: xm-bob 2.4s ease-in-out infinite; } }

/* 見積・契約カード・ログイン案内・マイページへ・右上のリボンの見た目は contract-xm.css（プラグインのページと共通） */
