/* ============================================================
   XenoX 企業情報ページ専用スタイル
   - 共通の土台 xm.css の後に読み込む
   ============================================================ */

/* このファイルで使う色（モックの値そのまま） */
.xm {
  --ink-30: rgba(21, 23, 28, .3);
  --white: #fff;
  --text-2: #3a3d45;
  --text-3: #4a4e57;
  --text-5: #5d616b;
  --muted: #6d717a;
  --text-1: #2c2f36;
  --rule-2: #d6d5ce;
  --rule: #dcdbd4;
  --dark-lead: #c9d1ea;
  --dark-lead-2: #d5dbef;
}


/* ---------- ヒーロー（ミッション） ---------- */
.xm-co-hero .xm-h1 { font-size: clamp(32px, 4.6vw, 60px); }
.xm-co-hero .xm-hero__lede { word-break: auto-phrase; margin: 18px 0 0; font-size: clamp(17px, 1.7vw, 21px); font-weight: 700; color: var(--ink); }
.xm-co-visual { position: relative; }
.xm-co-visual .xm-mania { top: auto; bottom: -70px; right: -14px; width: 130px; height: 130px; }
@media (max-width: 767px) { .xm-co-visual .xm-mania { width: 96px; height: 96px; bottom: -44px; } }
.xm-co-facts { font-size: 14px; }
.xm-co-facts .h { margin: 0 0 8px; font-family: var(--mono); font-weight: 700; color: var(--navy); font-size: 13.5px; }
.xm-co-facts dl { margin: 0; }
.xm-co-facts dl > div { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--rule-2); }
.xm-co-facts dl > div:last-child { border-bottom: 0; padding-right: 96px; }
.xm-co-facts dt { font-size: 12px; font-weight: 700; color: var(--muted); padding-top: 2px; }
.xm-co-facts dd { margin: 0; font-weight: 700; line-height: 1.6; }
@media (max-width: 767px) { .xm-co-facts dl > div:last-child { padding-right: 70px; } }

/* ---------- 企業理念（友情・努力・笑利） ---------- */
.xm-co-ph { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 40px; }
@media (max-width: 860px) { .xm-co-ph { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; } }
.xm-co-ph__card { background: var(--white); border: var(--bd); border-radius: 22px; box-shadow: var(--sh); padding: 26px 24px 24px; text-align: center; }
.xm-co-ph__card:nth-child(2) { background: var(--yellow); }
.xm-co-ph__card:nth-child(3) { background: var(--navy-2); color: var(--white); }
.xm-co-ph .xm-co-ph__no { margin: 0; font-family: var(--en); font-weight: 700; font-size: 13px; letter-spacing: .16em; }
.xm-co-ph .xm-co-ph__word { margin: 4px 0 12px; font-size: clamp(54px, 6.4vw, 76px); font-weight: 900; line-height: 1.1; letter-spacing: .06em; }
.xm-co-ph__card:nth-child(3) .xm-co-ph__word { color: var(--yellow); }
.xm-co-ph p { margin: 0; font-size: 15px; line-height: 1.85; text-align: left; word-break: auto-phrase; }
.xm-co-ph__card:nth-child(1) p:last-child { color: var(--text-2); }
.xm-co-ph__card:nth-child(3) p:last-child { color: var(--dark-lead-2); }

/* 3つの理念をまとめる一文（カードの下で締める） */
.xm .xm-co-ph__tail { margin: 48px 0 0; text-align: center; font-size: clamp(24px, 3.6vw, 42px); font-weight: 900; line-height: 1.35; }
@media (max-width: 767px) { .xm .xm-co-ph__tail { margin-top: 36px; } }

/* ---------- ビジョン ---------- */
.xm-co-sub { margin: 14px 0 0; font-weight: 700; color: var(--dark-lead); }

/* ---------- バリュー（4つの主義） ---------- */
.xm-co-vals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-top: 40px; }
@media (max-width: 1000px) { .xm-co-vals { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .xm-co-vals { grid-template-columns: minmax(0, 1fr); } }
.xm-co-val { background: var(--white); border: var(--bd); border-radius: 18px; box-shadow: var(--sh-sm); padding: 20px 20px 22px; position: relative; }
.xm-co-val .xm-co-val__q { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--text-5); }
.xm-co-val .xm-co-val__q b { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--ink); font-family: var(--en); font-size: 12px; color: var(--ink); }
.xm-co-val h3 { margin: 12px 0 8px; font-size: 26px; font-weight: 900; line-height: 1.3; }
.xm-co-val p:last-child { margin: 0; font-size: 14.5px; color: var(--text-2); word-break: auto-phrase; }

/* ---------- 代表挨拶 ---------- */
.xm-co-msg { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 56px; align-items: start; }
@media (max-width: 900px) { .xm-co-msg { grid-template-columns: minmax(0, 1fr); gap: 36px; } }
.xm-co-msg__photo { margin: 0; position: relative; max-width: 340px; }
@media (max-width: 900px) { .xm-co-msg__photo { margin: 0 auto; width: min(300px, 82%); } }
.xm-co-msg__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: var(--bd); border-radius: 22px; box-shadow: var(--sh); background: var(--paper-2); transform: rotate(-2deg); }
.xm-co-msg__photo figcaption {
  position: absolute; left: -12px; bottom: 18px; background: var(--yellow); border: var(--bd); border-radius: 14px; box-shadow: var(--sh-sm);
  padding: 8px 16px 10px; line-height: 1.35; transform: rotate(2deg);
}
.xm-co-msg__photo figcaption span { display: block; font-size: 12px; font-weight: 700; }
.xm-co-msg__photo figcaption b { display: block; font-size: 22px; font-weight: 900; letter-spacing: .06em; }
.xm-co-msg__photo figcaption i { display: block; font-style: normal; font-family: var(--en); font-size: 11.5px; letter-spacing: .1em; color: var(--text-3); }
.xm-co-msg .xm-h2 { font-size: clamp(26px, 3.4vw, 40px); }
.xm-co-msg__text p { margin: 0 0 1.1em; font-size: 16px; line-height: 2; color: var(--text-1); text-wrap: pretty; word-break: auto-phrase; }
.xm-co-msg__sign { margin: 24px 0 0; text-align: right; font-size: 13px; font-weight: 700; color: var(--text-5); }
.xm-co-msg__sign b { display: block; margin-top: 2px; font-size: 22px; font-weight: 900; color: var(--ink); letter-spacing: .08em; }

/* ---------- 会社概要 ---------- */
.xm-co-profile { max-width: 860px; margin: 36px auto 0; background: var(--white); border: var(--bd); border-radius: 20px; box-shadow: var(--sh); overflow: hidden; }
.xm-co-profile > div { display: grid; grid-template-columns: 9em minmax(0, 1fr); border-bottom: 1.5px solid var(--rule); }
.xm-co-profile > div:last-child { border-bottom: 0; }
.xm-co-profile dt { padding: 16px 20px; background: var(--paper); font-weight: 900; font-size: 14px; border-right: 1.5px solid var(--rule); }
.xm-co-profile dd { margin: 0; padding: 16px 20px; font-size: 15px; line-height: 1.8; word-break: auto-phrase; }
.xm-co-profile dd a { font-weight: 700; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.xm-co-profile ul { margin: 0; padding: 0; list-style: none; }
.xm-co-profile li { position: relative; padding-left: 18px; }
.xm-co-profile li::before { content: ""; position: absolute; left: 0; top: .72em; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); border: 2px solid var(--ink); }
@media (max-width: 600px) {
  .xm-co-profile > div { grid-template-columns: minmax(0, 1fr); }
  .xm-co-profile dt { padding: 10px 16px 6px; border-right: 0; font-size: 12.5px; }
  .xm-co-profile dd { padding: 8px 16px 14px; }
}

/* ---------- 事業（2つの入口） ---------- */
.xm-co-doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; margin-top: 36px; }
@media (max-width: 860px) { .xm-co-doors { grid-template-columns: minmax(0, 1fr); } }
.xm-co-door { display: flex; flex-direction: column; gap: 10px; text-decoration: none; border: var(--bd); border-radius: 22px; box-shadow: var(--sh); padding: 26px 26px 22px; transition: transform .15s, box-shadow .15s; }
.xm-co-door:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--ink); }
.xm-co-door--plugin { background: var(--yellow); }
.xm-co-door--consult { background: var(--white); }
.xm-co-door .xm-co-door__tag { margin: 0; align-self: flex-start; font-size: 12.5px; font-weight: 700; padding: 2px 12px; border: 2px solid var(--ink); border-radius: 999px; background: var(--white); }
.xm-co-door--plugin .xm-co-door__tag { background: var(--ink); color: var(--white); }
.xm-co-door h3 { margin: 0; font-size: clamp(22px, 2.5vw, 28px); line-height: 1.4; }
.xm-co-door p:not(.xm-co-door__tag) { margin: 0; font-size: 14.5px; color: var(--text-2); }
.xm-co-door__more { margin-top: auto; padding-top: 12px; border-top: 2px dashed var(--ink-30); display: flex; justify-content: space-between; align-items: center; font-weight: 900; }
.xm-co-door__more .xm-arw { width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--white); display: grid; place-items: center; font-size: 13px; }
