/* 下層ページ（サービス／Agent Lab／導入事例／ブログ／会社概要）
   style.css のトークンと部品を使い、読みもの向けのレイアウトだけをここで足す。
   本文は画面中央の広い列。3Dは画面全体の背景として後ろで動く。 */

body.page { overflow-x: hidden; overflow-y: auto; height: auto; }
.page .hd { background: rgba(3, 10, 18, 0.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.hd-nav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -1px 0 var(--signal); }

.doc { position: relative; z-index: 2; width: min(1040px, calc(100% - var(--gutter) * 2)); margin: 0 auto; padding-bottom: 96px; }

/* ページ冒頭 */
.page-hero { min-height: 92vh; display: flex; flex-direction: column; justify-content: flex-end; padding: 120px 0 72px; }
.crumb { font-size: 12px; color: var(--mute); margin-bottom: 22px; }
.crumb a { color: var(--ice); }
.crumb a:hover { color: #fff; }
.page-hero h1 {
  font-family: var(--f-display); font-weight: 400; letter-spacing: 0.02em; line-height: 1.28;
  font-size: clamp(32px, min(4.2vw, 6.6vh), 64px); text-shadow: 0 2px 40px rgba(3, 10, 18, 0.8);
}
.page-hero .lead { margin-top: 24px; font-size: clamp(15px, 1.25vw, 17px); color: #cdd8e5; max-width: 40em; text-shadow: 0 1px 16px rgba(3, 10, 18, 0.9); }
.page-hero .hero-act { margin: 32px 0 0; }

/* 本文の節：3Dの上に、すりガラスの帯として重ねる */
.sec {
  position: relative; margin-top: 28px; padding: clamp(28px, 4vw, 56px) clamp(24px, 5vw, 64px);
  background: rgba(3, 10, 18, 0.6); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  border: 1px solid var(--line);
}
.sec::before {
  content: ""; position: absolute; left: -1px; top: -1px; width: 14px; height: 14px;
  border-left: 2px solid var(--ice); border-top: 2px solid var(--ice);
}
.sec h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(22px, 2vw, 30px); letter-spacing: 0.03em; line-height: 1.45; margin-bottom: 18px; }
.sec h3 { font-size: 17px; font-weight: 700; letter-spacing: 0.03em; margin-bottom: 6px; }
.sec p { font-size: 15px; color: #c3cfdd; max-width: 46em; }
.sec p + p { margin-top: 12px; }
.sec .lead { color: #d6e0eb; margin-bottom: 26px; }
.sec .note { margin-top: 18px; margin-bottom: 0; }
.sec .text-link { display: inline-block; margin-top: 20px; }
.sec-cta { border-color: rgba(95, 227, 207, 0.35); }
.sec-cta .panel-row { margin-bottom: 0; }

/* サービス：事業ごとの行 */
.svc { display: grid; grid-template-columns: 13em 1fr; gap: 6px 40px; padding: 26px 0; border-top: 1px solid var(--line); }
.svc:first-of-type { border-top: 0; padding-top: 4px; }
.svc-name { font-family: var(--f-latin); font-weight: 600; font-size: 22px; letter-spacing: -0.01em; line-height: 1.3; }
.svc-name small { display: block; font-family: var(--f-ja); font-weight: 400; font-size: 12px; color: var(--mute); margin-top: 6px; letter-spacing: 0; }
.svc h3 { font-size: 18px; }
.svc dl { display: flex; gap: 10px; margin-top: 12px; font-size: 13px; }
.svc dt { color: var(--mute); }
.svc .text-link { margin-top: 12px; }

/* 4事業の循環・工程など、順番に意味がある並び */
.seq { list-style: none; display: grid; }
.seq li { display: grid; grid-template-columns: 44px 1fr; gap: 4px; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15px; color: #c3cfdd; }
.seq li:first-child { border-top: 0; }
.seq b { font-family: var(--f-hud); font-weight: 300; font-size: 12px; color: var(--signal); padding-top: 4px; }

/* エージェントの一覧（2列） */
.agent-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.agent-grid li { padding: 20px 20px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.agent-grid span { font-size: 12px; color: var(--signal); }
.agent-grid h3 { font-family: var(--f-latin); font-weight: 600; font-size: 17px; margin: 4px 0 8px; letter-spacing: -0.01em; }
.agent-grid p { font-size: 13.5px; }

/* 実績の数字 */
.page .stats { margin-bottom: 0; }

/* 課題の一覧 */
.issues { list-style: none; display: grid; gap: 8px; margin-top: 20px; }
.issues li { position: relative; padding: 10px 14px 10px 36px; background: rgba(169, 195, 229, 0.05); font-size: 14px; color: #cdd8e5; }
.issues li::before { content: ""; position: absolute; left: 14px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; border: 1.5px solid var(--mute); }

/* 導入前後 */
.ba-item { padding: 26px 0; border-top: 1px solid var(--line); }
.ba-item:first-of-type { border-top: 0; padding-top: 4px; }
.ba-item > span { font-size: 12px; color: var(--signal); }
.ba-item h3 small { display: block; margin-top: 2px; font-size: 13px; font-weight: 500; color: var(--mute); letter-spacing: 0.02em; }
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-top: 12px; max-width: 880px; }
.ba > div { padding: 14px 16px; background: rgba(169, 195, 229, 0.05); }
.ba > div:last-child { background: rgba(95, 227, 207, 0.08); }
.ba h4 { font-family: var(--f-latin); font-weight: 600; font-size: 12px; color: var(--mute); margin-bottom: 6px; }
.ba > div:last-child h4 { color: var(--signal); }
.ba ul { list-style: none; display: grid; gap: 4px; }
.ba li { font-size: 13.5px; color: #cdd8e5; line-height: 1.65; }

/* 業務の変化（表） */
.changes { width: 100%; border-collapse: collapse; font-size: 14px; }
.changes th, .changes td { text-align: left; vertical-align: top; padding: 14px 12px; border-top: 1px solid var(--line); line-height: 1.7; }
.changes thead th { font-size: 12px; font-weight: 500; color: var(--mute); border-top: 0; padding-top: 0; }
.changes tbody th { width: 8.5em; font-weight: 700; color: #fff; }
.changes td { color: #c3cfdd; }
.changes td:last-child { color: #e2ebf3; }

/* 会社概要の表 */
.info { display: grid; grid-template-columns: 10em 1fr; max-width: 760px; }
.info dt, .info dd { padding: 14px 0; border-top: 1px solid var(--line); font-size: 15px; }
.info dt { color: var(--mute); font-size: 13px; padding-top: 16px; }
.info dt:first-of-type, .info dt:first-of-type + dd { border-top: 0; padding-top: 0; }

/* 代表プロフィール */
.profile { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: start; }
.profile img { width: 100%; height: auto; display: block; filter: grayscale(0.25) contrast(1.02); border: 1px solid var(--line); }
.profile .role { font-size: 13px; color: var(--mute); margin-bottom: 12px; }
.profile-facts { display: grid; grid-template-columns: 6em 1fr; gap: 8px 16px; margin-top: 18px; font-size: 14px; }
.profile-facts dt { color: var(--mute); font-size: 13px; }
.profile-facts ul { list-style: none; display: grid; gap: 2px; }

/* チーム体制 */
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; margin-top: 8px; }
.team > div { padding: 18px 20px; background: rgba(169, 195, 229, 0.05); }
.team span { font-size: 12px; color: var(--signal); }

/* 沿革 */
.timeline { list-style: none; position: relative; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 4px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 20px; }
.timeline li::before { content: ""; position: absolute; left: -22px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--abyss); border: 1px solid var(--signal); }
.timeline time { display: block; font-family: var(--f-latin); font-weight: 600; font-size: 13px; color: var(--ice); }
.timeline p { font-size: 14.5px; }

/* ブログ */
.posts { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px 32px; }
.post a { display: grid; gap: 16px; align-items: start; }
.post img { width: 100%; height: auto; aspect-ratio: 1734 / 907; object-fit: cover; display: block; border: 1px solid var(--line); transition: border-color 0.25s; }
.post span { font-size: 12px; color: var(--signal); }
.post h2 { font-family: var(--f-ja); font-weight: 700; font-size: 18px; line-height: 1.6; letter-spacing: 0.01em; margin: 4px 0 8px; transition: color 0.2s; }
.post p { font-size: 14px; color: #b9c6d6; }
.post a:hover h2 { color: var(--signal); }
.post a:hover img { border-color: var(--signal); }

/* Agent Lab：ページ内のメールデモ */
.sec .steps { margin-top: 4px; }
.sec .mail-card p { color: inherit; }
.sec .mail-card p + p { margin-top: 0; }

/* フッター */
.page .ft { position: relative; z-index: 2; margin: 0 auto; padding: 48px 0 40px; width: min(1040px, calc(100% - var(--gutter) * 2)); }

/* スマートフォン */
@media (max-width: 860px) {
  .page-hero { min-height: 88vh; padding: 140px 0 48px; }
  .sec { padding: 30px 20px 28px; background: rgba(3, 10, 18, 0.78); }
  .svc { grid-template-columns: 1fr; }
  .agent-grid, .ba, .team { grid-template-columns: 1fr; }
  .profile { grid-template-columns: 1fr; }
  .profile img { max-width: 200px; }
  .changes thead { display: none; }
  .changes tr { display: grid; padding: 12px 0; border-top: 1px solid var(--line); }
  .changes th, .changes td { border: 0; padding: 2px 0; }
  .changes tbody th { width: auto; }
  .changes td::before { content: attr(data-label); display: block; font-size: 11px; color: var(--mute); }
}

/* 見出しは文節の切れ目で折り返す（1文字だけ次の行に落ちないように） */
.page-hero h1, .sec h2, .sec h3, .post h2 { word-break: auto-phrase; }
