/* Shared layout for the news articles linked from the ニュース list in ../index.html.
   Tokens copied from ../index.html so the articles read as the same site.
   Text column 760px. Breakpoint: 734px (phone). */
:root {
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --bg-grey: #f5f5f7;
  --rule: #d2d2d7;
  --blue: #1f4fff;
  --blue-tint: #eaf0ff;
  --radius: 28px;
  --gutter: 22px;
  --nav-h: 48px;
  --font: "Inter", "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: #fff; color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.85;
  -webkit-font-smoothing: antialiased; word-break: auto-phrase; text-wrap: pretty; overflow-wrap: break-word;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

/* ---------- Nav (same bar as the top page) ---------- */
.gnav {
  position: sticky; top: 0; z-index: 10; height: var(--nav-h);
  background: rgba(251, 251, 253, 0.8); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.gnav-inner { max-width: calc(1024px + 2 * var(--gutter)); height: 100%; margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.gnav-logo { font-family: "Inter", sans-serif; font-weight: 800; font-size: 17px; letter-spacing: 0.08em; color: var(--text); }
.gnav-back { font-size: 12px; color: rgba(0, 0, 0, 0.8); }
.gnav-cta { font-size: 12px; color: #fff; background: var(--blue); padding: 4px 12px; border-radius: 980px; white-space: nowrap; }
.gnav-cta:hover { text-decoration: none; }

/* ---------- Article ---------- */
.article { max-width: calc(760px + 2 * var(--gutter)); margin: 0 auto; padding: 72px var(--gutter) 96px; }
.article-date { display: block; font-family: "Inter", sans-serif; font-variant-numeric: tabular-nums; font-size: 15px; color: var(--text-2); }
.article-title { margin: 12px 0 0; font-size: clamp(28px, 4.4vw, 44px); font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
.lead { margin: 28px 0 0; font-size: clamp(18px, 2vw, 21px); line-height: 1.75; }
.article h2 { margin: 64px 0 0; font-size: clamp(22px, 2.8vw, 28px); font-weight: 700; line-height: 1.4; }
.article p { margin: 16px 0 0; }
.note { font-size: 13px; color: var(--text-2); line-height: 1.7; }

.figure { margin: 32px 0 0; }
.figure img { border-radius: 20px; width: 100%; height: auto; background: var(--bg-grey); }
.figure figcaption { margin: 12px 4px 0; font-size: 14px; color: var(--text-2); line-height: 1.6; }

/* Quoted outside forecast or claim, set off from the body text. */
.quote { margin: 24px 0 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--rule); color: var(--text-2); }

/* Three-layer cards (customer AI / orchestration AI / business AI). */
.layers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 28px 0 0; padding: 0; list-style: none; }
.layers li { background: var(--bg-grey); border-radius: 20px; padding: 22px 22px 24px; }
.layers li.mid { background: var(--blue-tint); }
.layers li.mid h3 { color: var(--blue); }
.layers h3 { margin: 0; font-size: 17px; font-weight: 700; }
/* Keeps a long katakana term from breaking mid-word; the heading wraps only between phrases. */
.layers .ph { display: inline-block; }
.layers p { margin: 8px 0 0; font-size: 14px; color: var(--text-2); line-height: 1.7; }

/* Patent number / product URL block. */
.fact { margin: 28px 0 0; padding: 22px 28px; background: var(--bg-grey); border-radius: var(--radius); }
.fact dl { margin: 0; display: grid; grid-template-columns: 7em minmax(0, 1fr); gap: 6px 16px; font-size: 15px; }
.fact dt { color: var(--text-2); }
.fact dd { margin: 0; }

/* Company profile at the foot of each article. */
.profile { margin: 72px 0 0; padding: 28px 0 0; border-top: 1px solid var(--rule); }
.profile h2 { margin: 0; font-size: 19px; }
.profile dl { margin: 16px 0 0; display: grid; grid-template-columns: 7em minmax(0, 1fr); gap: 8px 16px; font-size: 15px; }
.profile dt { color: var(--text-2); }
.profile dd { margin: 0; }

.back { margin: 56px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 32px; }
.btn-pill { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 11px 24px; border-radius: 980px; background: var(--text); color: #fff; font-size: 17px; font-weight: 500; }
.btn-pill:hover { text-decoration: none; background: #000; }
.more-link { font-size: 17px; }

.footer { background: var(--bg-grey); border-top: 1px solid var(--rule); font-size: 12px; color: var(--text-2); }
.footer-inner { max-width: calc(1024px + 2 * var(--gutter)); margin: 0 auto; padding: 20px var(--gutter); }

@media (max-width: 734px) {
  .article { padding-top: 48px; }
  .article h2 { margin-top: 48px; }
  .layers { grid-template-columns: minmax(0, 1fr); }
  .fact { padding: 18px 20px; }
  .fact dl, .profile dl { grid-template-columns: minmax(0, 1fr); gap: 0 0; }
  .fact dd, .profile dd { margin-bottom: 10px; }
}
