/* ============================================================
   XenoX 業務改善支援ページ専用スタイル
   - 共通の土台 xm.css の後に読み込む
   - 「5つの約束」は土台の .xm-why（性分 → だから）を使う
   ============================================================ */

/* このファイルで使う色（モックの値そのまま） */
.xm {
  --white-25: rgba(255, 255, 255, .25);
  --white: #fff;
  --text-2: #3a3d45;
  --text-5: #5d616b;
  --muted: #6d717a;
  --muted-dark: #9aa0ad;
  --muted-2: #a0a4ad;
  --rule-2: #d6d5ce;
  --term-bg: #191b22;
  --term-fg: #e6e6e6;
  --term-warn: #ffb84d;
  --app-blue: #2f6fd6;
  --app-green: #44b97a;
}


/* ---------- ヒーロー ---------- */
.xm-cs-hero .xm-h1 { font-size: clamp(30px, 4vw, 56px); }
.xm-cs-hero .xm-hero__lede { word-break: auto-phrase; margin: 18px 0 0; font-size: clamp(16px, 1.5vw, 19px); font-weight: 700; color: var(--ink); max-width: 540px; }
@media (max-width: 960px) { .xm-cs-hero .xm-hero__lede { margin-left: auto; margin-right: auto; } }
.xm-cs-visual { position: relative; }
.xm-cs-visual .xm-mania { top: auto; bottom: -96px; right: -16px; width: 130px; height: 130px; }
@media (max-width: 767px) { .xm-cs-visual .xm-mania { width: 100px; height: 100px; bottom: -40px; } }
.xm-term .warn { color: var(--term-warn); }
.xm-term > div { white-space: pre-wrap; }
.xm-imgnote { margin: 8px 0 0; font-size: 11.5px; color: var(--muted); }
.xm-cs-badges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 30px; }
@media (max-width: 960px) { .xm-cs-badges { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.xm-cs-badges div { background: var(--white); border: 2px solid var(--ink); border-radius: 12px; box-shadow: var(--sh-sm); padding: 9px 12px; font-size: 12.5px; font-weight: 700; line-height: 1.5; text-align: left; }
.xm-cs-badges div b { display: block; font-family: var(--en); font-size: 20px; line-height: 1.2; }
.xm-cs-badges div:first-child { background: var(--yellow); }

/* ---------- kintoneマニアとは ---------- */
.xm-maker { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 36px; 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-maker__tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
@media (max-width: 760px) { .xm-maker__tags { justify-content: center; } }
.xm-maker .xm-lead { text-align: left; margin-left: 0; }
@media (max-width: 760px) { .xm-maker .xm-lead { text-align: center; margin-left: auto; } }

/* ---------- 5つの約束の中の「画面」 ---------- */
.xm-doc { font-size: 13.5px; line-height: 1.8; }
.xm-doc .h { margin: 0 0 4px; font-family: var(--mono); font-weight: 700; color: var(--navy); font-size: 13px; }
.xm-doc ul { list-style: none; margin: 0 0 10px; padding: 0; }
.xm-doc li { display: flex; gap: 10px; align-items: baseline; padding: 4px 0; border-bottom: 1px dashed var(--rule-2); }
.xm-doc li b { flex: none; min-width: 7em; font-size: 12px; color: var(--muted); font-weight: 700; }
.xm-doc .done { display: inline-block; margin-top: 6px; background: var(--yellow); border: 2px solid var(--ink); border-radius: 999px; padding: 2px 14px; font-weight: 900; font-size: 14px; box-shadow: var(--sh-sm); }
.xm-cmp { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.xm-cmp th, .xm-cmp td { padding: 7px 8px; border-bottom: 1px dashed var(--rule-2); text-align: left; vertical-align: top; }
.xm-cmp thead th { font-size: 12px; color: var(--muted); }
.xm-cmp .x { color: var(--muted-2); text-decoration: line-through; }
.xm-cmp .o { font-weight: 900; }
.xm-cmp .o::before { content: "✓ "; color: var(--green); }
.xm-usage { display: grid; gap: 10px; }
.xm-usage div { display: grid; grid-template-columns: 6em minmax(0, 1fr); gap: 10px; align-items: center; font-size: 13.5px; }
.xm-usage b { font-size: 12px; color: var(--muted); }
.xm-usage i { display: block; height: 16px; border: 2px solid var(--ink); border-radius: 999px; background: linear-gradient(90deg, var(--yellow) var(--w), var(--white) var(--w)); }
.xm-usage p { margin: 6px 0 0; font-weight: 900; font-size: 14px; }
.xm-apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.xm-apps span { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 13.5px; padding: 7px 10px; border: 2px solid var(--ink); border-radius: 10px; background: var(--white); box-shadow: var(--sh-sm); }
.xm-apps span::before { content: ""; flex: none; width: 18px; height: 18px; border-radius: 5px; background: var(--app-blue); border: 2px solid var(--ink); }
.xm-apps span:nth-child(3n+2)::before { background: var(--yellow); }
.xm-apps span:nth-child(3n)::before { background: var(--app-green); }
.xm-apps .xm-apps__dash { grid-column: 1 / -1; justify-content: center; background: var(--ink); color: var(--white); }
.xm-apps .xm-apps__dash::before { background: var(--yellow); }
.xm-chat { display: grid; gap: 8px; font-size: 13.5px; }
.xm-chat p { margin: 0; padding: 8px 12px; border: 2px solid var(--ink); border-radius: 12px; max-width: 88%; line-height: 1.6; }
.xm-chat .q { background: var(--white); justify-self: start; border-bottom-left-radius: 2px; }
.xm-chat .a { background: var(--yellow-2); justify-self: end; border-bottom-right-radius: 2px; }

/* ---------- 経営者の物差し ---------- */
.xm-yard { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 36px; }
@media (max-width: 860px) { .xm-yard { grid-template-columns: minmax(0, 1fr); } }
.xm-yard div { background: var(--white); border: var(--bd); border-radius: 18px; box-shadow: var(--sh-sm); padding: 22px; text-align: left; }
.xm-yard b { display: block; font-size: 19px; line-height: 1.5; margin-bottom: 6px; word-break: auto-phrase; }
.xm-yard p { margin: 0; font-size: 14px; color: var(--text-2); }
.xm-yard__tail { margin: 28px 0 0; font-size: clamp(20px, 2.6vw, 28px); font-weight: 900; }

/* ---------- 対応範囲 ---------- */
.xm-svcs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 36px; }
@media (max-width: 960px) { .xm-svcs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .xm-svcs { grid-template-columns: minmax(0, 1fr); } }
.xm-svc { background: var(--white); border: var(--bd); border-radius: 18px; box-shadow: var(--sh-sm); padding: 20px; }
.xm-svc .xm-svc__no { margin: 0 0 6px; font-family: var(--en); font-weight: 700; font-size: 12px; letter-spacing: .14em; color: var(--navy); }
.xm-svc h3 { margin: 0 0 6px; font-size: 17px; line-height: 1.5; word-break: auto-phrase; }
.xm-svc p { margin: 0; font-size: 13.5px; color: var(--text-2); }
.xm-svcs__note { margin: 18px 0 0; text-align: center; font-size: 14px; font-weight: 700; }

/* ---------- 導入の流れ（7段階・縦の年表） ---------- */
.xm-timeline { list-style: none; margin: 40px auto 0; padding: 0; max-width: 860px; position: relative; }
.xm-timeline::before { content: ""; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 3px; background: repeating-linear-gradient(var(--ink) 0 8px, transparent 8px 14px); }
.xm-timeline li { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; margin-bottom: 16px; }
.xm-timeline .no { position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--yellow); border: var(--bd); font-family: var(--en); font-weight: 700; font-size: 18px; box-shadow: var(--sh-sm); }
.xm-timeline .box { background: var(--white); border: var(--bd); border-radius: 16px; box-shadow: var(--sh-sm); padding: 16px 20px; }
.xm-timeline h3 { margin: 0 0 4px; font-size: 17px; line-height: 1.5; }
.xm-timeline p { margin: 0; font-size: 14px; color: var(--text-2); }

/* ---------- 料金 ---------- */
.xm-prices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 40px; text-align: left; }
@media (max-width: 860px) { .xm-prices { grid-template-columns: minmax(0, 1fr); } }
.xm-pricecard { position: relative; background: var(--white); border: var(--bd); border-radius: 20px; box-shadow: var(--sh); padding: 26px 24px; display: flex; flex-direction: column; gap: 10px; }
.xm-pricecard--local { background: var(--yellow-2); }
.xm-pricecard .xm-pricecard__label { margin: 0; font-weight: 900; font-size: 18px; }
.xm-pricecard .xm-pricecard__price { margin: 0; font-family: var(--en); font-weight: 700; font-size: clamp(34px, 4vw, 44px); line-height: 1.1; }
.xm-pricecard .xm-pricecard__price small { font-family: "Noto Sans JP", sans-serif; font-size: 15px; font-weight: 700; margin-left: 4px; }
.xm-pricecard .xm-pricecard__sub { margin: 0; font-size: 13px; color: var(--text-5); }
.xm-pricecard p { margin: 0; font-size: 14px; color: var(--text-2); }
.xm-pricecard ul { margin: 6px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.xm-pricecard li { position: relative; padding-left: 24px; font-size: 14px; font-weight: 700; }
.xm-pricecard li::before { content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 900; }
.xm-off { position: absolute; top: -16px; right: 18px; background: var(--red); color: var(--white); font-weight: 900; border: var(--bd); border-radius: 12px; padding: 4px 14px; box-shadow: var(--sh-sm); transform: rotate(3deg); }
.xm-maint { margin-top: 24px; background: var(--term-bg); color: var(--term-fg); border: var(--bd); border-radius: 18px; box-shadow: var(--sh); padding: 22px 24px; text-align: left; }
.xm-maint h3 { margin: 0 0 12px; color: var(--white); font-size: 18px; }
.xm-maint dl { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 860px) { .xm-maint dl { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .xm-maint dl { grid-template-columns: minmax(0, 1fr); } }
.xm-maint dt { font-size: 12px; color: var(--muted-dark); }
.xm-maint dd { margin: 2px 0 0; font-weight: 900; color: var(--yellow); }
.xm-maint__out { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--white-25); font-size: 13.5px; }
.xm-maint__out b { color: var(--white); }
.xm-maint__out ul { margin: 8px 0; padding: 0 0 0 1.2em; }
.xm-maint__out p { margin: 0; color: var(--muted-dark); }

/* ---------- 締めのチェック ---------- */
.xm-checks { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.xm-checks span { font-weight: 700; font-size: 14px; padding: 4px 14px; border: 2px solid var(--white); border-radius: 999px; }
.xm-checks span::before { content: "✓ "; color: var(--yellow); }

/* ---------- AIで作れる時代に（発想力） ---------- */
.xm-ideas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 36px; }
@media (max-width: 860px) { .xm-ideas { grid-template-columns: minmax(0, 1fr); } }
.xm-ideas > div { background: var(--white); border: var(--bd); border-radius: 18px; box-shadow: var(--sh); padding: 22px; }
.xm-ideas .xm-ideas__q { margin: 0 0 8px; font-size: 20px; font-weight: 900; }
.xm-ideas .xm-ideas__q::before { content: "？"; display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: 8px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--ink); font-size: 16px; vertical-align: 2px; }
.xm-ideas p { margin: 0; font-size: 14.5px; color: var(--text-2); }
