/* プロダクトの詳細ページ共通スタイル（site-mocks/fields/*.html から読む）。
   トークン・ヘッダー・言語切替・フッターは index.html と揃えてある。
   本体ページは自己完結の <style> のままにしてあり、
   3枚目以降の重複（詳細ページ4枚）だけをこのファイルへ共通化している。 */
:root {
  --ink: #111111;
  --body: #3f3f46;
  --muted: #71717a;
  --paper: #ffffff;
  --card: #f7f7f5;
  --pill-gray: #ececec;
  --akane: #B8542F;
  --ai: #34558B;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: Inter, "Noto Sans JP", -apple-system, "system-ui", "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
.pixel { font-family: "Zen Kaku Gothic New", "Noto Sans JP", sans-serif; font-weight: 700; }
.mono { font-family: "Geist Mono", ui-monospace, monospace; }

/* 言語切替（index.html と同じ機構: data-lang 二値 + .ja/.en スパン） */
.en { display: none; }
html[data-lang="en"] .ja { display: none; }
html[data-lang="en"] .en { display: revert; }
.langbtn {
  appearance: none; display: inline-flex; align-items: center; gap: 8px;
  margin-left: auto; border: 1px solid #e4e4e0; background: #fff;
  border-radius: 999px; padding: 9px 16px; cursor: pointer;
  font: 600 13px Inter, "Noto Sans JP", sans-serif; color: var(--muted);
}
.langbtn:hover { border-color: #c9c9c4; }
.langbtn .bar { width: 1px; height: 12px; background: #e4e4e0; }
.langbtn .lj, .langbtn .le { transition: color .15s; }
html[data-lang="ja"] .langbtn .lj { color: var(--ink); }
html[data-lang="en"] .langbtn .le { color: var(--ink); }

/* Header */
header {
  display: flex; align-items: center; gap: 40px;
  padding: 22px 60px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand svg { width: 26px; height: 26px; }
.brand span { font-weight: 700; font-size: 17px; letter-spacing: 0.04em; }
nav { display: flex; gap: 28px; }
nav a {
  color: var(--ink); text-decoration: none; font-size: 15px;
  display: inline-flex; align-items: center; gap: 4px;
}

.wrap { max-width: 880px; margin: 0 auto; padding: 0 60px; }

/* 「プロダクトへもどる」 */
.back {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 34px; font-size: 14px; color: var(--muted); text-decoration: none;
}
.back:hover { color: var(--ink); }
.back svg { width: 13px; height: 13px; }

/* 領域のヒーロー（カード画像をそのまま大きく使う） */
.field-hero {
  position: relative; margin-top: 22px; height: 340px;
  border-radius: 22px; overflow: hidden; background: #e5e5e2;
}
.field-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.field-hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0) 38%, rgba(0,0,0,.66) 100%);
}
.fh-body { position: absolute; z-index: 1; left: 34px; right: 34px; bottom: 30px; color: #fff; }
.fh-meta { display: block; font-size: 12.5px; letter-spacing: .06em; color: rgba(255,255,255,.8); margin-bottom: 10px; }
.fh-body h1 { font-size: 40px; line-height: 1.25; font-weight: 700; }

.lead {
  margin-top: 40px; font-size: 20px; line-height: 1.7; font-weight: 500;
  color: var(--ink);
}

.fsec { margin-top: 46px; }
.fsec h2 {
  font-size: 13px; letter-spacing: .1em; font-weight: 600; color: var(--muted);
  text-transform: uppercase; margin-bottom: 14px;
}
.fsec p { font-size: 16px; line-height: 1.8; color: var(--body); }
.fsec p + p { margin-top: 14px; }
.flist { list-style: none; }
.flist li {
  position: relative; padding-left: 22px; font-size: 16px; line-height: 1.75; color: var(--body);
}
.flist li + li { margin-top: 12px; }
.flist li::before {
  content: ''; position: absolute; left: 0; top: .72em;
  width: 8px; height: 8px; border-radius: 2px; background: #d4d4d0;
}
.flist li.on::before { background: var(--akane); }

.fnote {
  margin-top: 40px; padding: 18px 22px; background: var(--card);
  border-radius: 12px; font-size: 13.5px; line-height: 1.7; color: var(--muted);
}

/* 次のプロダクトへ（現状はページが2枚のみで、常に1リンクだけを持つ） */
.field-nav {
  display: flex; justify-content: space-between; gap: 20px;
  margin-top: 70px; padding-top: 26px; border-top: 1px solid #ececea;
}
.field-nav a {
  display: flex; flex-direction: column; gap: 5px;
  text-decoration: none; color: var(--ink); font-size: 15.5px; font-weight: 600;
  max-width: 46%;
}
.field-nav a:last-child { text-align: right; }
/* リンクが1つだけのときは右寄せにする（space-between は複数子要素前提のため） */
.field-nav a:only-child { margin-left: auto; }
.field-nav .fn-label { font-size: 11.5px; letter-spacing: .08em; color: var(--muted); font-weight: 500; }
.field-nav a:hover .fn-name { text-decoration: underline; text-underline-offset: 3px; }

/* Final CTA（本体ページと同じ見え方） */
.final { text-align: center; padding: 110px 24px 100px; }
.final p { color: var(--body); max-width: 520px; margin: 0 auto; font-size: 16.5px; line-height: 1.65; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 32px; }
.btn {
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  border-radius: 999px; padding: 15px 26px;
  font-size: 15px; font-weight: 600; text-decoration: none;
  border: none; cursor: pointer;
}
.btn svg { width: 16px; height: 16px; }
.btn-black { background: #0a0a0a; color: #fff; }
.btn-gray { background: var(--pill-gray); color: var(--ink); }
.btn-gray svg { width: 13px; height: 13px; }

footer { border-top: 1px solid #ececea; padding: 34px 60px; display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; color: var(--muted); }
footer .fl { display: flex; align-items: center; gap: 10px; }
footer .fl svg { width: 18px; height: 18px; }
footer nav { gap: 22px; }
footer nav a { font-size: 13.5px; color: var(--body); }

/* 全ページ共通の基本スタイル（プロダクト別テーマは廃止し統一）。 */
body {
  --field-accent: var(--akane);
  --field-soft: var(--card);
}
body .back,
body .langbtn,
body nav a,
body .btn,
body .field-nav a {
  transition: color .2s ease, border-color .2s ease, background-color .2s ease, transform .2s ease;
}
body .back:focus-visible,
body .langbtn:focus-visible,
body nav a:focus-visible,
body .btn:focus-visible,
body .field-nav a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--field-accent) 55%, white);
  outline-offset: 4px;
}
body .flist li.on::before { background: var(--field-accent); }

@media (max-width: 900px) {
  header { padding: 18px 24px; gap: 20px; }
  header nav { display: none; }
  .wrap { padding: 0 24px; }
  .field-hero { height: 260px; }
  .fh-body { left: 22px; right: 22px; bottom: 22px; }
  .fh-body h1 { font-size: 29px; }
  .lead { font-size: 17.5px; }
  footer { flex-direction: column; gap: 16px; text-align: center; padding: 28px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body .back,
  body .langbtn,
  body nav a,
  body .btn,
  body .field-nav a { transition: none; }
}
