/* トップページ専用（2026-10-19・案 C）。/legal・/privacy・404 は従来どおり style.css を使う。
 * 色・書体は brand/DESIGN.md（文字 #1A1A1A・補助 #555/#666・アクセント teal #1F6F63 の 1 色・地 #FFF / #F4F7F5）。
 * 書体は /fonts/fonts.css（自前配信）。外部の書体サービスは読まない。 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #1A1A1A;
  --sub: #555;
  --muted: #666;
  --teal: #1F6F63;
  --tint: #F4F7F5;
  --line: #E1E7E4;
}

html { scroll-behavior: smooth; }
body {
  font-family: "IBM Plex Sans JP", -apple-system, "Hiragino Sans", sans-serif;
  font-weight: 500;
  color: var(--ink);
  background: #fff;
  line-height: 1.85;
}
a { color: var(--teal); }
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

/* ── nav ── */
nav { border-bottom: 1px solid var(--line); background: #fff; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-brand { display: flex; align-items: center; gap: 8px; font-family: Poppins, sans-serif; font-weight: 600; font-size: 1.2rem; color: var(--ink); text-decoration: none; }
.nav-links { display: flex; gap: 24px; list-style: none; font-size: .9rem; }
.nav-links a { color: var(--sub); text-decoration: none; }
.nav-links a:hover { color: var(--ink); }
.nav-brand:hover { text-decoration: none; }

/* ── hero: 左に文・右に図（中央寄せの縦一列をやめる） ── */
.hero { padding: 88px 0 96px; }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: 3rem; font-weight: 700; line-height: 1.3; letter-spacing: .02em; margin-bottom: 28px; }
.hero-lead { font-size: 1.15rem; color: var(--ink); border-left: 3px solid var(--teal); padding-left: 16px; margin-bottom: 20px; line-height: 1.9; }
.hero-text > p:not(.hero-lead) { color: var(--sub); margin-bottom: 32px; max-width: 30em; }
/* PR #7: 「micoa（ミ／コア）」の分断を止める。 */
.brand-name { color: var(--ink); font-weight: 700; white-space: nowrap; }
.hero-figure { width: 100%; max-width: 420px; justify-self: center; }
.hero-figure text { font-family: "IBM Plex Sans JP", sans-serif; font-weight: 700; font-size: 14px; fill: var(--ink); }
.hero-figure .fig-you { fill: #fff; font-size: 13px; }

.btn-primary, .btn-outline {
  display: inline-block; padding: 12px 28px; border-radius: 999px;
  font-weight: 700; font-size: .95rem; text-decoration: none;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-outline { border: 2px solid var(--ink); color: var(--ink); }
/* 地色が暗いので、明るくする向きでないと変化が見えない（style.css と同じ理由）。 */
.btn-primary:hover { background: #333; }
.btn-outline:hover { background: var(--ink); color: #fff; }

/* ── 見出し ── */
.eyebrow { font-family: Poppins, sans-serif; font-weight: 600; font-size: .8rem; letter-spacing: .2em; color: var(--teal); margin-bottom: 8px; }
.section-title { font-size: 2rem; font-weight: 700; line-height: 1.4; margin-bottom: 16px; }
.section-lead { color: var(--sub); max-width: 34em; }

/* ── 三つの役目: 3 列カードをやめ、図と文を左右交互に ── */
.roles { padding: 96px 0; }
.roles .section-title { margin-bottom: 48px; }
.role { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 32px 0; }
.role + .role { border-top: 1px solid var(--line); }
.role-reverse .role-figure { order: 2; }
.role-figure { width: 100%; max-width: 360px; justify-self: center; }
.fig-q { font-family: Poppins, sans-serif; font-weight: 600; font-size: 24px; fill: var(--teal); }
.role-no { font-family: Poppins, sans-serif; font-weight: 600; font-size: 2.6rem; line-height: 1; color: var(--teal); }
.role h3 { font-size: 1.5rem; font-weight: 700; margin: 8px 0 12px; }
.role p { color: var(--sub); max-width: 26em; }

/* ── できること: 地を変え、左に見出し（固定）・右に番号付きの一覧 ── */
.works { background: var(--tint); padding: 96px 0; }
.works-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: start; }
.works-head { position: sticky; top: 32px; }
.works-head .section-lead { margin-bottom: 28px; }
.works-head .note { font-size: .85rem; color: var(--muted); margin-top: 12px; }
.works-list { list-style: none; counter-reset: w; }
.works-list li { counter-increment: w; position: relative; padding: 0 0 36px 64px; border-left: 2px solid #C9D1CD; margin-left: 20px; }
.works-list li:last-child { padding-bottom: 0; border-left-color: transparent; }
.works-list li::before {
  content: counter(w, decimal-leading-zero);
  position: absolute; left: -21px; top: 0;
  width: 40px; height: 40px; border-radius: 50%;
  background: #fff; border: 2px solid var(--teal); color: var(--teal);
  font-family: Poppins, sans-serif; font-weight: 600; font-size: .9rem;
  display: grid; place-items: center;
}
.works-list h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 6px; line-height: 2.2; }
.works-list p { color: var(--sub); }

/* ── つくっているもの: 製品を大きく見せる ── */
.products { padding: 96px 0; }
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin: 48px 0 32px; }
.phone { background: var(--tint); border-radius: 24px; padding: 32px; }
.phone img { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 12px 32px rgba(26, 26, 26, .12); }
.product-badge { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--teal); border: 1.5px solid var(--teal); border-radius: 999px; padding: 2px 12px; }
.showcase h3 { font-size: 1.8rem; font-weight: 700; margin: 12px 0; }
.showcase-text > p:not(.product-links) { color: var(--sub); margin-bottom: 24px; }
.product-links { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; font-size: .9rem; }
.note { color: var(--muted); font-size: .9rem; }
.note-center { text-align: center; }

/* ── footer ── */
footer { border-top: 1px solid var(--line); padding: 32px 0; font-size: .85rem; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.footer-links { display: flex; gap: 20px; list-style: none; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--ink); }

/* ── スマホ ── */
@media (max-width: 760px) {
  .container { padding: 0 16px; }
  /* 🔴 style.css の @media 600px と同じ手当て（320px 前後で nav がはみ出し・footer の
     「特定商取引法に基づく表記」が単語の途中で割れた・PR #78 のレビューで実測）。
     nowrap で文字単位の分割を止め、flex-wrap で項目単位の折り返しに逃がす。 */
  .nav-inner { flex-wrap: wrap; height: auto; min-height: 56px; padding-top: 10px; padding-bottom: 10px; gap: 6px 12px; }
  .nav-links { gap: 6px 12px; flex-wrap: wrap; font-size: .8rem; }
  .nav-links a { white-space: nowrap; }
  .footer-links { flex-wrap: wrap; gap: 8px 16px; }
  .footer-links a { white-space: nowrap; }
  .hero { padding: 48px 0 56px; }
  .hero-inner, .role, .works-inner, .showcase { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: 2.1rem; }
  .hero-figure { max-width: 300px; }
  .role-reverse .role-figure { order: 0; }
  .roles, .works, .products { padding: 64px 0; }
  .works-head { position: static; }
  .section-title { font-size: 1.6rem; }
  .phone { padding: 20px; }
}
