/* Lucent 会社ホームページ
   色は下の変数にまとめている。LINEの緑はLINEのボタンだけに使う。 */
:root {
  color-scheme: light;
  --ink: #0F1F3D;
  --ink-soft: #46536B;
  --line: #DCE1EA;
  --paper: #FFFFFF;
  --tint: #EEF2F9;
  --blue: #1F56C9;
  --line-green: #06C755;
  --done: #DCEFE3;
  --done-ink: #17613A;
  --now: #DCE7FB;
  --now-ink: #1B4BAF;
  --wait: #FBEBD3;
  --wait-ink: #8A4E0A;
  --radius: 16px;
  --en: "Jost", "Noto Sans JP", sans-serif;
  --ja: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--ja);
  font-size: 16px;
  line-height: 1.9;
  letter-spacing: .02em;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ol, dl, dd, figure { margin: 0; padding: 0; }
ol { list-style: none; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* ヒーロー */
.hero { padding: 12px; }
.hero-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: calc(100svh - 24px);
  border-radius: var(--radius);
  overflow: hidden;
  color: #fff;
  background: linear-gradient(115deg, #0A1730 0%, #0F2452 55%, #16366F 100%);
}
.hero-light { position: absolute; inset: 0; width: 100%; height: 100%; }
.sheen-slow { animation: drift 22s ease-in-out infinite alternate; }
.sheen-fast { animation: drift 14s ease-in-out infinite alternate-reverse; }
@keyframes drift {
  from { transform: translate(-40px, 16px); }
  to   { transform: translate(60px, -24px); }
}

.site-header {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 32px;
  padding: 24px clamp(20px, 4vw, 44px);
}
.brand {
  font-family: var(--en);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: .04em;
  line-height: 1;
  color: #fff;
  text-decoration: none;
}
.brand-dark { color: var(--ink); }
.site-nav { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.site-nav a { color: #fff; font-size: 14px; text-decoration: none; }
.site-nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.hero-card :focus-visible { outline-color: #fff; }

.hero-copy {
  position: relative;
  margin-top: auto;
  padding: 0 clamp(20px, 4vw, 44px) clamp(40px, 8vh, 80px);
}
.hero-copy h1 {
  font-size: clamp(29px, 8vw, 92px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .03em;
}
.hero-copy p { margin-top: 20px; font-size: clamp(15px, 1.6vw, 18px); }

/* メッセージ */
.message { padding: clamp(72px, 11vw, 128px) 0; text-align: center; }
.message p { font-size: clamp(16px, 1.8vw, 19px); line-height: 2; }
.message p + p { margin-top: 10px; }

.message .message-lead { margin-bottom: 20px; font-size: clamp(21px, 3vw, 30px); font-weight: 700; line-height: 1.6; }

/* 代表の話 */
.story { background: var(--tint); }
.story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.timeline { border-left: 2px solid var(--blue); }
.timeline li { position: relative; padding: 0 0 26px 24px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 9px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue);
}
.timeline span { display: block; font-size: 18px; font-weight: 700; line-height: 1.6; color: var(--blue); }
.timeline p { font-size: 15px; color: var(--ink-soft); }
.story-photo { display: block; width: 100%; height: auto; margin-bottom: 24px; border-radius: var(--radius); }
.story-text p + p { margin-top: 18px; }
.story-text .sign { margin-top: 24px; font-weight: 700; }

/* 補修の前後 */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 24px; }
.ba figure { position: relative; }
.ba img { display: block; width: 100%; height: auto; border-radius: 10px; }
.ba figcaption {
  position: absolute;
  left: 8px;
  top: 8px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
}
.ba figcaption.is-after { background: var(--blue); }

/* ヒーローのボタン */
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.hero-actions .pill-glass { border-color: rgba(255, 255, 255, .7); background: transparent; color: #fff; }
.hero-actions .pill-glass:hover { background: #fff; color: var(--ink); }

/* 色のついた帯 */
.section-tint { background: var(--tint); }

/* 困りごと */
.troubles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 0; padding: 0; list-style: none; }
.troubles li {
  display: flex;
  align-items: center;
  min-height: 92px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
}
.troubles-note { margin-top: 20px; color: var(--ink-soft); }

/* 理由 */
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.reasons li { padding: 28px; border-radius: var(--radius); background: #fff; }
.reasons .num { font-family: var(--en); font-size: 15px; color: var(--blue); }
.reasons h3 { margin-top: 6px; font-size: 19px; line-height: 1.6; }
.reasons p { margin-top: 8px; font-size: 14px; color: var(--ink-soft); }
.split-wide { margin-top: 16px; }
.split-wide > div { border: 0; background: #fff; }
.split-wide h4 { font-size: 16px; }
.split-wide p { font-size: 14px; }

/* 実例 */
.detail-label .case-tag {
  display: inline-block;
  margin-right: 10px;
  padding: 1px 10px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-family: var(--ja);
  font-size: 12px;
  font-weight: 700;
}
#case .demo { border: 1px solid var(--line); }

/* 作れるもの */
.make { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0; padding: 0; list-style: none; }
.make li { padding: 24px; border-radius: var(--radius); background: #fff; }
.make h3 { font-size: 17px; line-height: 1.6; }
.make p { margin-top: 8px; font-size: 14px; color: var(--ink-soft); }
.make-note { margin-top: 20px; color: var(--ink-soft); }

/* 進め方 */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; counter-reset: flow; }
.flow li { counter-increment: flow; padding-top: 14px; border-top: 3px solid var(--blue); }
.flow li::before { content: "STEP " counter(flow); font-family: var(--en); font-size: 13px; color: var(--blue); }
.flow strong { display: block; margin-top: 2px; font-size: 16px; line-height: 1.6; }
.flow span { display: block; margin-top: 4px; font-size: 13px; line-height: 1.8; color: var(--ink-soft); }

/* 本業 */
.parts-mini { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.parts-mini h3 { margin: 10px 0 16px; font-size: clamp(21px, 2.6vw, 28px); font-weight: 700; line-height: 1.5; word-break: auto-phrase; }
.parts-mini .ba { margin-top: 0; }
.values-lead { max-width: 44em; margin-bottom: 32px; color: #E3E9F4; }

/* お問い合わせ */
.contact-main { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius); background: #fff; }
.contact-main h3 { font-size: 21px; line-height: 1.6; }
.contact-main p { margin-top: 8px; font-size: 15px; color: var(--ink-soft); }
.contact-main .actions { margin-top: 0; flex-direction: column; }
.hours a { text-underline-offset: 3px; }

/* スマホの固定窓口 */
.cta-bar { display: none; }

/* 人とAIの線引き */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 24px; }
.split > div { padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; }
.split h4 { font-size: 15px; }
.split p { margin-top: 4px; font-size: 13px; line-height: 1.8; color: var(--ink-soft); }

/* 見出し */
.section { padding: clamp(40px, 7vw, 80px) 0; }
.section-head { margin-bottom: clamp(28px, 4vw, 44px); }
.en {
  font-family: var(--en);
  font-size: clamp(38px, 5vw, 56px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: .02em;
  color: var(--blue);
}
.ja { margin-top: 4px; font-size: 14px; font-weight: 500; }

/* 事業一覧 */
.service-index { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.service-index a {
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100%;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: border-color .2s, transform .2s;
}
.service-index a:hover { border-color: var(--blue); transform: translateY(-2px); }
.service-index .num { font-family: var(--en); font-size: 15px; color: var(--blue); }
.service-index strong { font-size: 18px; line-height: 1.6; }
.service-index span:last-child { font-size: 14px; line-height: 1.8; color: var(--ink-soft); }

/* 事業の詳細 */
.detail { padding: clamp(56px, 8vw, 96px) 0; scroll-margin-top: 16px; }
.detail-tint { background: var(--tint); }
.two-col { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.two-col > * { min-width: 0; }
.detail-label { font-size: 14px; font-weight: 500; color: var(--ink-soft); }
.detail-label span { margin-right: 10px; font-family: var(--en); color: var(--blue); }
.detail h3 {
  margin: 10px 0 20px;
  font-size: clamp(20px, 5.4vw, 36px);
  font-weight: 700;
  line-height: 1.5;
  word-break: auto-phrase;
}
.body { color: var(--ink-soft); }
.note { margin-top: 24px; font-size: 14px; color: var(--ink-soft); }

.points { margin-top: 28px; border-top: 1px solid var(--line); }
.points > div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.points dt { font-weight: 700; }
.points dd { font-size: 14px; color: var(--ink-soft); }

.panel { padding: clamp(24px, 3vw, 36px); background: var(--tint); border-radius: var(--radius); }
.panel h4 { margin-bottom: 18px; font-size: 18px; }

.steps { counter-reset: step; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 18px 44px;
  font-size: 14px;
  color: var(--ink-soft);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: var(--en);
  font-size: 14px;
  line-height: 1;
}
.steps strong { display: block; font-size: 16px; color: var(--ink); }
.area { padding: 14px 0 0; border-top: 1px solid var(--line); font-weight: 500; }
.area span { display: block; font-size: 13px; font-weight: 400; color: var(--ink-soft); }

/* ボタン */
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 22px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
.pill::after { content: "→"; font-family: var(--en); }
.pill:hover { background: var(--ink); color: #fff; }
.pill-solid { background: var(--ink); color: #fff; }
.pill-solid:hover { background: var(--blue); border-color: var(--blue); }
.pill-line { background: var(--line-green); border-color: var(--line-green); color: #06281A; }
.pill-line:hover { background: #05B24C; border-color: #05B24C; color: #06281A; }

/* ボードの見本 */
.demo { padding: clamp(20px, 3vw, 28px); background: #fff; border-radius: var(--radius); }
.bubble {
  width: fit-content;
  max-width: 90%;
  margin: 0 0 16px auto;
  padding: 10px 16px;
  border-radius: 16px 16px 4px 16px;
  background: #B7EDC8;
  font-size: 14px;
  line-height: 1.6;
}
.board-scroll { overflow-x: auto; }
.board { width: 100%; min-width: 340px; border-collapse: separate; border-spacing: 4px; font-size: 13px; line-height: 1.4; }
.board caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.board th { padding: 8px 6px; font-weight: 500; text-align: left; white-space: nowrap; }
.board thead th { color: var(--ink-soft); font-size: 12px; text-align: center; }
.board thead th:first-child { text-align: left; }
.board td { padding: 8px 4px; border-radius: 6px; background: #F3F5F9; color: var(--ink-soft); text-align: center; white-space: nowrap; }
.board td.done { background: var(--done); color: var(--done-ink); }
.board td.now { background: var(--now); color: var(--now-ink); font-weight: 500; }
.board td.wait { background: var(--wait); color: var(--wait-ink); }
.board .is-updated th { color: var(--blue); }
.demo figcaption { margin-top: 12px; font-size: 12px; color: var(--ink-soft); }

/* AI社員の流れ */
.relay { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 24px; }
.relay li { font-size: 14px; font-weight: 500; }
.relay li + li::before {
  content: "→";
  margin-right: 10px;
  font-family: var(--en);
  color: var(--blue);
}
.roles > div { display: grid; grid-template-columns: 7.5em 1fr; gap: 8px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 1.7; }
.roles > div:first-child { border-top: 0; padding-top: 0; }
.roles dt { font-weight: 700; }
.roles dd { color: var(--ink-soft); }

/* 大事にしていること */
.values-wrap, .contact-wrap { padding: 12px; scroll-margin-top: 12px; }
.values-card {
  padding: clamp(48px, 7vw, 88px) max(20px, calc((100% - 1120px) / 2));
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
}
.values-card .en { color: #A9C6FF; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.values dt { font-size: 20px; font-weight: 700; line-height: 1.6; }
.values dd { margin-top: 10px; font-size: 14px; color: #C6D0E2; }

/* 会社概要 */
.company-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; align-items: center; }
.company-mark {
  font-family: var(--en);
  font-size: clamp(44px, 6vw, 68px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: .04em;
  text-align: center;
}
.company-mark span { display: block; margin-top: 8px; font-family: var(--ja); font-size: 13px; font-weight: 400; letter-spacing: .3em; color: var(--ink-soft); }
.profile { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.8; }
.profile th, .profile td { padding: 16px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.profile th { width: 10em; padding-right: 16px; font-weight: 500; }
.profile small { color: var(--ink-soft); font-size: 13px; }
.profile a { text-underline-offset: 3px; }

/* お問い合わせ */
.contact-card-outer {
  padding: clamp(48px, 7vw, 80px) max(20px, calc((100% - 1120px) / 2));
  border-radius: var(--radius);
  background: var(--tint);
}
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.contact-card { display: flex; flex-direction: column; padding: clamp(24px, 3vw, 36px); background: #fff; border-radius: var(--radius); }
.contact-card h3 { font-size: 19px; line-height: 1.6; }
.contact-card p { margin-top: 10px; font-size: 14px; color: var(--ink-soft); }
.contact-card .actions { margin-top: auto; padding-top: 24px; }
.hours { margin-top: 20px; font-size: 13px; color: var(--ink-soft); }

/* フッター */
.site-footer { padding: 40px 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: 13px; }
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.copyright { font-family: var(--en); font-size: 13px; color: var(--ink-soft); }

/* タブレット以下 */
@media (max-width: 860px) {
  .service-index, .two-col, .values, .contact-grid, .company-grid, .story-grid, .reasons, .parts-mini, .contact-main { grid-template-columns: 1fr; }
  .troubles, .make { grid-template-columns: repeat(2, 1fr); }
  .flow { grid-template-columns: 1fr; }
  .troubles li { min-height: 0; font-size: 14px; }
  .has-cta-bar { padding-bottom: 72px; }
  .cta-bar {
    position: fixed;
    z-index: 10;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 8px;
    padding: 8px;
    background: rgba(15, 31, 61, .94);
  }
  .cta-bar a { padding: 11px 8px; border-radius: 8px; font-size: 15px; font-weight: 700; line-height: 1.4; text-align: center; text-decoration: none; }
  .cta-line { background: var(--line-green); color: #06281A; }
  .cta-tel { background: #fff; color: var(--ink); }
  .company-grid { gap: 24px; }
  .company-mark { text-align: left; }
  .message { text-align: left; }
  .message .wrap { width: min(1120px, 100% - 32px); }
}

/* スマホ */
@media (max-width: 480px) {
  .site-nav { gap: 2px 16px; }
  .site-nav a { font-size: 13px; }
  .pill { width: 100%; }
  .split { grid-template-columns: 1fr; }
  .demo { padding: 16px 12px; }
  .board { min-width: 0; border-spacing: 3px; font-size: 12px; }
  .board th { padding: 6px 2px; }
  .board td { padding: 7px 1px; }
  .profile th { width: 6.5em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sheen-slow, .sheen-fast { animation: none; }
  .service-index a { transition: none; }
}
