/* LIZARD LLC 共通スタイル。CSP（style-src 'self'）のため、スタイルはこのファイルだけに書く。 */
@font-face {
  font-family: "Lizard Display";
  src: url("/fonts/LizardDisplay-Regular.woff2?v=4718d406e8") format("woff2");
  font-display: swap;
}

:root {
  --blue: #003B5C;
  --blue-deep: #002A42;
  --yellow: #FFF44F;
  --ink: #1a1f24;
  --muted: #5b6670;
  --line: #d9e1e7;
  --paper: #ffffff;
  --tint: #f2f6f9;
  --display: "Lizard Display", "Helvetica Neue", Arial, sans-serif;
  --text: system-ui, -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic", sans-serif;
  --wrap: 960px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  overflow-x: hidden;
  font-family: var(--text);
  font-size: 16px;
  line-height: 1.8;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; box-shadow: 0 0 0 5px var(--blue); }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- ヘッダ ---- */
.site-header { background: var(--tint); color: var(--blue); border-bottom: 3px solid var(--yellow); }
.site-header__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 14px 16px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--blue); text-decoration: none; }
.brand__mark { width: 40px; height: 40px; flex: none; }
.brand__name { font-family: var(--display); font-size: 26px; line-height: 1; letter-spacing: 0.02em; }
.site-header ul { list-style: none; display: flex; flex-wrap: wrap; gap: 2px 18px; margin: 0; padding: 0; }
.site-header nav a {
  font-family: var(--display); font-size: 15px; letter-spacing: 0.06em;
  color: var(--blue); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent;
}
.site-header nav a:hover { border-bottom-color: rgba(0, 59, 92, 0.35); }
.site-header nav a[aria-current="page"], .site-header nav a.is-section { color: var(--blue); border-bottom-color: var(--blue); }

/* ---- 本文 ---- */
main { max-width: var(--wrap); margin: 0 auto; padding: 32px 16px 56px; }
.page-title {
  font-family: var(--display); font-weight: normal; font-size: clamp(30px, 6vw, 44px);
  line-height: 1.2; color: var(--blue); margin: 8px 0 24px; letter-spacing: 0.02em;
}
.page-title span { display: block; font-family: var(--text); font-size: 15px; font-weight: 600; color: var(--muted); letter-spacing: 0.08em; margin-top: 6px; }
.lead { font-size: 18px; line-height: 1.9; margin: 0 0 28px; }
.breadcrumb { margin: 0 0 8px; font-family: var(--display); font-size: 14px; letter-spacing: 0.06em; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a::before { content: "← "; }
.section { margin: 40px 0; }
.section__title {
  font-family: var(--display); font-weight: normal; font-size: 22px; letter-spacing: 0.06em;
  color: var(--blue); margin: 0 0 16px; padding-bottom: 8px; border-bottom: 3px solid var(--yellow);
}
.section__subtitle { font-size: 18px; color: var(--blue); margin: 0 0 12px; }
.section__subtitle span { font-family: var(--display); font-weight: normal; font-size: 13px; color: var(--muted); letter-spacing: 0.06em; margin-left: 8px; }
.section__more { margin: 16px 0 0; text-align: right; }
.empty { color: var(--muted); }
.muted { color: var(--muted); }
.note { color: var(--muted); font-size: 14px; }

/* 表示用書体は大文字のみ。小文字を含む名前（quakePGA など）は本文書体で組む */
.text-face { font-family: var(--text) !important; font-weight: 700; letter-spacing: 0 !important; }

/* ---- カード（トップの WORKS） ---- */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card__link {
  display: flex; flex-direction: column; height: 100%;
  border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  text-decoration: none; color: var(--ink); background: var(--paper);
}
.card__link:hover { border-color: var(--blue); }
.card__image { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.card__label { font-family: var(--display); font-size: 18px; color: var(--blue); padding: 14px 16px 0; letter-spacing: 0.03em; }
.card__text { padding: 4px 16px 16px; font-size: 14px; color: var(--muted); }

/* ---- WORKS 一覧 ---- */
.works-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.works-item__link {
  display: grid; grid-template-columns: 1fr; text-decoration: none; color: var(--ink);
  border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--paper);
}
.works-item__link:hover { border-color: var(--blue); }
.works-item__image { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.works-item__body { display: flex; flex-direction: column; gap: 4px; padding: 18px 20px; }
.works-item__label { font-family: var(--display); font-size: 22px; color: var(--blue); letter-spacing: 0.03em; }
.works-item__title { font-weight: 600; }
.works-item__text { color: var(--muted); font-size: 15px; }
@media (min-width: 720px) {
  .works-item__link:has(.works-item__image) { grid-template-columns: 320px 1fr; }
  .works-item__image { height: 100%; }
}

/* ---- 会社概要 ---- */
.profile { display: grid; grid-template-columns: 1fr; margin: 0; border-top: 1px solid var(--line); }
.profile dt { font-weight: 600; color: var(--blue); padding: 14px 0 0; }
.profile dd { margin: 0; padding: 2px 0 14px; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) {
  .profile { grid-template-columns: 12em 1fr; }
  .profile dt { padding: 14px 16px 14px 0; border-bottom: 1px solid var(--line); }
  .profile dd { padding: 14px 0; }
}

/* ---- メンバー ---- */
.member__header { margin-bottom: 8px; }
.member__role { margin: 0; color: var(--muted); font-size: 14px; letter-spacing: 0.04em; }
.member__name { font-size: 28px; margin: 4px 0 0; color: var(--ink); }
.member__name span { font-family: var(--display); font-weight: normal; font-size: 18px; color: var(--blue); margin-left: 12px; letter-spacing: 0.04em; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--yellow); }
.timeline li { display: grid; grid-template-columns: 4.5em 1fr; gap: 0 12px; padding: 8px 0 8px 16px; }
.timeline__year { font-family: var(--display); color: var(--blue); grid-row: span 2; }
.timeline__org { font-weight: 600; }
.timeline__org span { font-weight: normal; color: var(--muted); font-size: 14px; margin-left: 6px; }
.timeline__text { color: var(--ink); }
.patents { width: 100%; border-collapse: collapse; font-size: 14px; }
.patents th, .patents td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.patents th { background: var(--tint); color: var(--blue); font-weight: 600; white-space: nowrap; }
.patents td:nth-child(1), .patents td:nth-child(2) { white-space: nowrap; }
@media (max-width: 640px) {
  .patents thead { display: none; }
  .patents tr { display: grid; grid-template-columns: auto 1fr; gap: 0 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .patents td { border: 0; padding: 0; }
  .patents td:nth-child(3), .patents td:nth-child(4) { grid-column: 1 / -1; }
  .patents td:nth-child(4) { color: var(--muted); }
}

/* ---- 実績詳細 ---- */
.billboard { margin: 0 0 24px; border-radius: 8px; overflow: hidden; background: var(--blue); }
.billboard img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.billboard--natural { max-width: 560px; background: none; }
.billboard--shot { background: none; border: 1px solid var(--line); }
.billboard--shot img { aspect-ratio: auto; object-fit: contain; }
.billboard--natural img { aspect-ratio: auto; object-fit: contain; }
.table-scroll { overflow-x: auto; margin: 0 0 16px; }
.data-table { border-collapse: collapse; font-size: 14px; min-width: 100%; }
.data-table th, .data-table td { padding: 8px 12px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.data-table th { background: var(--tint); color: var(--blue); font-weight: 600; }
.prose h2 { font-size: 20px; color: var(--blue); margin: 36px 0 12px; padding-left: 12px; border-left: 4px solid var(--yellow); }
.prose p, .prose ul { margin: 0 0 14px; }
.prose var { font-family: "Times New Roman", serif; font-style: italic; }
.equation { margin: 20px 0; padding: 16px; background: var(--tint); border-radius: 8px; overflow-x: auto; text-align: center; }
.equation img { max-width: none; height: auto; vertical-align: middle; }

/* ---- リンク集 ---- */
.link-list { list-style: none; margin: 0; padding: 0; }
.link-list li { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; }
.link-list a { font-weight: 600; }
.link-list span { color: var(--muted); font-size: 14px; }

/* ---- フッタ ---- */
.site-footer { background: var(--blue-deep); color: #c9d6df; font-size: 14px; }
.site-footer__inner { max-width: var(--wrap); margin: 0 auto; padding: 28px 16px; }
.site-footer p { margin: 0 0 4px; }
.site-footer a { color: #fff; }
.site-footer__name { font-family: var(--display); color: var(--yellow); font-size: 18px; letter-spacing: 0.03em; }
.site-footer__name span { font-family: var(--text); color: #c9d6df; font-size: 13px; margin-left: 8px; }
.site-footer__copy { margin-top: 12px !important; color: #8fa5b4; }
/* 画面写真（縦横比はそのまま、切り取らない） */
.screenshot { margin: 24px 0 32px; }
.screenshot img { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; }
.screenshot figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }
.visually-hidden + .section { margin-top: 0; }
