/* EggAI の商品サイト（自治体・プラント・建設）共通（2026-10-17）
   白地・太いゴシック・EggAI の青。角丸・影・英語の小見出し・大きな数字のカードは使わない。主役は実際の書類・図面の画面 */
:root { --ink:#1a1f29; --ink2:#3a4252; --sub:#5b6575; --line:#dfe4ec; --bg:#f4f6f9; --brand:#2b5faa; --brand-d:#224d8c; --brand50:#eef3fa;
  --red:#d7263d; --yellow:#f2b705; --green:#1e8e3e; --font:"Noto Sans JP","Hiragino Sans","Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.8 var(--font); color: var(--ink); background: #fff; letter-spacing: .02em; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.45; font-weight: 900; margin: 0; word-break: auto-phrase; }
p { margin: 0; }
.wrap { width: min(1240px, 100% - 32px); margin: 0 auto; }
.narrow { width: min(760px, 100% - 32px); margin: 0 auto; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px; z-index: 99; }

/* ヘッダー */
.site-header { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 0; z-index: 20; }
.header-in { display: flex; align-items: center; gap: 24px; height: 68px; }
.logo { font-weight: 900; font-size: 21px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.logo small { font-size: 13px; font-weight: 700; color: var(--sub); margin-left: 10px; padding-left: 10px; border-left: 1px solid var(--line); }
.gnav { display: flex; gap: 20px; margin-left: auto; font-size: 14px; font-weight: 500; }
.gnav a { color: var(--ink2); text-decoration: none; white-space: nowrap; }
.gnav a:hover, .gnav a[aria-current] { color: var(--brand); }

/* ボタン */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 4px; border: 2px solid var(--brand);
  font: 700 15px/1.3 var(--font); text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn-p { background: var(--brand); color: #fff; } .btn-p:hover { background: var(--brand-d); border-color: var(--brand-d); }
.btn-o { background: #fff; color: var(--brand); } .btn-o:hover { background: var(--brand50); }
.btn-s { padding: 9px 16px; font-size: 14px; } .btn-l { padding: 16px 30px; font-size: 16px; } .btn-block { width: 100%; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* 書き出し（共通） */
.eyebrow { font-size: 14px; font-weight: 700; color: var(--brand); }
.hero h1, .page-head h1 { font-size: clamp(30px, 4.2vw, 46px); line-height: 1.38; margin-top: 12px; }
.hero h1 .ln { display: block; }
.lead { font-size: 16.5px; color: var(--ink2); margin-top: 18px; }
.shot { margin: 0; border: 1px solid var(--line); background: #fff; }
.shot figcaption, .cap { font-size: 12.5px; color: var(--sub); padding: 6px 10px; }
.note { font-size: 12.5px; color: var(--sub); margin-top: 8px; }
.hero { padding: 52px 0 48px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 500px) minmax(0, 1fr); gap: 52px; align-items: start; }

/* 自治体：画面を主役に（2枚を重ねる） */
.trust { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink2); }
.trust b { color: var(--ink); margin-right: 8px; } .trust a { margin-right: 10px; font-weight: 500; text-decoration: none; }
.stack { position: relative; min-height: 600px; }
.stack .s1 { position: absolute; right: 0; top: 0; width: 92%; }
.stack .s2 { position: absolute; left: 0; top: 270px; width: 86%; padding: 0 0 0; box-shadow: 0 0 0 8px #fff; }
.stack .cap { position: absolute; left: 0; bottom: -4px; }
.lbl { font-size: 12.5px; font-weight: 700; color: var(--ink2); padding: 6px 10px; border-bottom: 1px solid var(--line); background: #fff; }
.lbl b { color: var(--brand); margin-right: 8px; }

/* プラント：方眼に図面 */
.hero-plant { background-color: #fff; background-image: linear-gradient(#e9eef6 1px, transparent 1px), linear-gradient(90deg, #e9eef6 1px, transparent 1px); background-size: 24px 24px; }
.hero-plant .hero-grid { grid-template-columns: minmax(0, 470px) minmax(0, 1fr); }
.std { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 6px; font-size: 14px; color: var(--ink2); }
.std li { padding: 2px 0 2px 12px; border-left: 3px solid var(--brand); background: #fff; }
.joint { margin-top: 22px; font-size: 13.5px; color: var(--ink2); background: #fff; padding: 10px 14px; border: 1px solid var(--line); }

/* 建設：照合の画面を横いっぱいに、安全色の凡例 */
.con-top { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.con-top .lead { margin-top: 0; }
.legend { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--ink2); }
.sw { display: inline-block; width: 14px; height: 14px; margin-right: 8px; vertical-align: -2px; }
.sw-red { background: var(--red); } .sw-yellow { background: var(--yellow); } .sw-green { background: var(--green); }
.shot.wide { margin-top: 32px; }

/* ページの書き出し */
.page-head { padding: 40px 0 44px; border-bottom: 1px solid var(--line); }
.head-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.crumb { font-size: 13px; color: var(--sub); margin-bottom: 14px; } .crumb a { color: var(--sub); }

/* 部品 */
.sec { padding: 64px 0; border-bottom: 1px solid var(--line); }
.sec.tone-gray { background: var(--bg); }
.sec h2 { font-size: clamp(24px, 2.8vw, 30px); }
.sec-lead { font-size: 16px; color: var(--ink2); margin-top: 12px; max-width: 820px; }
.sec-text p { margin-top: 14px; max-width: 860px; color: var(--ink2); }
.points { list-style: none; counter-reset: pt; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 40px; }
.points li { counter-increment: pt; padding: 18px 0 18px 46px; border-top: 1px solid var(--line); position: relative; }
.points li::before { content: counter(pt); position: absolute; left: 0; top: 18px; font-weight: 900; font-size: 22px; color: var(--brand); width: 30px; }
.points h3 { font-size: 18px; } .points p { color: var(--ink2); margin-top: 6px; font-size: 15px; }
.steps { list-style: none; counter-reset: st; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-top: 3px solid var(--brand); }
.steps li { counter-increment: st; padding: 14px 14px 0 0; }
.steps li::before { content: counter(st); display: block; font-weight: 900; color: var(--brand); font-size: 13px; }
.steps b { display: block; font-size: 17px; } .steps span { display: block; font-size: 13.5px; color: var(--sub); line-height: 1.6; margin-top: 4px; }
.media { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; align-items: start; margin-top: 26px; }
.media.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); } .media.flip .shot { order: 2; }
.media-text p { color: var(--ink2); margin-bottom: 12px; }
.ticks { padding-left: 1.2em; margin: 8px 0 0; color: var(--ink2); } .ticks li { margin: 4px 0; }
.videos { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px; margin-top: 26px; }
.video h3 { font-size: 17px; margin-top: 10px; } .video p { font-size: 14.5px; color: var(--ink2); margin-top: 4px; }
.yt { position: relative; aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--line); }
.yt-play { all: unset; cursor: pointer; display: block; width: 100%; height: 100%; position: relative; }
.yt-play img { width: 100%; height: 100%; object-fit: cover; opacity: .92; }
.yt-btn { position: absolute; left: 12px; bottom: 12px; background: var(--brand); color: #fff; font: 700 14px/1 var(--font); padding: 9px 14px; }
.yt iframe { width: 100%; height: 100%; border: 0; }
.spec { width: 100%; border-collapse: collapse; margin-top: 24px; font-size: 15px; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.spec th { width: 220px; background: var(--bg); color: var(--ink2); font-weight: 700; }
.cases { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 36px; margin-top: 24px; }
.case { border-top: 3px solid var(--brand); padding: 16px 0 22px; }
.case-org { font-size: 14px; font-weight: 700; color: var(--brand); } .case h3 { font-size: 18px; margin-top: 6px; }
.case p { font-size: 14.5px; color: var(--ink2); margin-top: 6px; } .case-status { font-weight: 700; color: var(--ink) !important; }
.products { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0; margin-top: 26px; border-top: 1px solid var(--line); }
.product { display: block; padding: 22px 28px 24px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.product + .product { padding-left: 28px; border-left: 1px solid var(--line); }
.prod { display: inline-block; font-size: 13px; font-weight: 900; color: #fff; background: var(--brand); padding: 2px 10px; }
.product h3 { font-size: 20px; margin-top: 10px; } .product p { color: var(--ink2); margin-top: 8px; font-size: 15px; }
.more { display: inline-block; margin-top: 12px; font-weight: 700; font-size: 15px; text-decoration: none; }
.faq { margin: 24px 0 0; } .faq dt { font-weight: 700; padding: 16px 0 4px; border-top: 1px solid var(--line); }
.faq dt::before { content: "Q. "; color: var(--brand); } .faq dd { margin: 0 0 16px; color: var(--ink2); font-size: 15px; }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 30px; background: var(--brand50); }
.cta-band p { font-weight: 700; font-size: 18px; }
.col-list { list-style: none; padding: 0; margin: 20px 0 0; } .col-list li { border-top: 1px solid var(--line); }
.col-list a { display: block; padding: 14px 0; color: var(--ink); text-decoration: none; font-weight: 500; }
.col-list .date { color: var(--sub); font-size: 13px; margin-right: 16px; }

/* 資料請求 */
.request { padding: 64px 0; background: var(--bg); }
.req-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 48px; align-items: start; }
.req-copy h2 { font-size: 28px; } .req-copy p { color: var(--ink2); margin-top: 12px; }
.docs { list-style: none; padding: 0; margin: 20px 0 0; } .docs li { padding: 12px 0; border-top: 1px solid var(--line); }
.docs b { display: block; } .docs span { font-size: 14px; color: var(--sub); }
.form { background: #fff; border: 1px solid var(--line); padding: 26px; display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: 14.5px; }
.form .lab { display: block; }
.form input:not([type="checkbox"]), .form textarea { width: 100%; padding: 11px 13px; border: 1px solid #ccd3de; border-radius: 4px; font: 400 16px/1.5 var(--font); }
.form .invalid { border-color: var(--red) !important; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.req { font-style: normal; font-size: 11px; color: #fff; background: var(--red); padding: 1px 6px; margin-left: 8px; vertical-align: 1px; }
.opt { font-size: 11px; color: var(--sub); background: var(--bg); padding: 1px 6px; margin-left: 8px; font-weight: 500; }
.form fieldset { border: 0; padding: 0; margin: 0; } .form legend { font-weight: 700; font-size: 14.5px; margin-bottom: 6px; }
.check { display: flex !important; grid-template-columns: none; align-items: center; gap: 10px; font-weight: 500 !important; }
.hp { position: absolute; left: -9999px; }
.form-msg { font-size: 14px; } .form-msg.error { color: var(--red); }
.dl { list-style: none; padding: 0; margin: 0; } .dl li { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); }

/* 記事 */
.article { padding: 44px 0 64px; } .article h1 { font-size: clamp(26px, 3.4vw, 36px); }
.article .date { color: var(--sub); font-size: 14px; margin-top: 8px; }
.art-items { list-style: none; counter-reset: ai; padding: 0; margin: 28px 0; }
.art-items li { counter-increment: ai; border-top: 1px solid var(--line); padding: 18px 0; }
.art-items h2 { font-size: 20px; } .art-items h2::before { content: counter(ai) ". "; color: var(--brand); }
.art-items p { margin-top: 8px; color: var(--ink2); }
.art-cta { background: var(--brand50); padding: 22px 24px; margin: 28px 0; } .art-cta p { font-weight: 700; margin-bottom: 12px; }
.sources h2, .others h2 { font-size: 18px; margin-top: 28px; } .sources ul { padding-left: 1.2em; font-size: 14px; }
.prose { padding: 40px 0 64px; } .prose h2 { font-size: 20px; margin-top: 28px; } .prose p, .prose ul { color: var(--ink2); margin-top: 8px; }

/* フッター */
.site-footer { background: #1a1f29; color: #c9d0db; padding: 44px 0 24px; font-size: 14px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot-logo { font-weight: 900; font-size: 19px; color: #fff; } .foot-logo small { font-size: 12px; color: #9aa6b8; margin-left: 8px; }
.foot-note { margin-top: 10px; color: #9aa6b8; font-size: 13px; }
.foot-links { list-style: none; padding: 0; margin: 0; } .foot-links li { margin: 6px 0; } .foot-links a { color: #c9d0db; text-decoration: none; }
.copy { margin-top: 28px; color: #7d8898; font-size: 12px; }

/* 狭い画面 */
@media (max-width: 1080px) { .gnav { display: none; } }
@media (max-width: 900px) {
  .hero-grid, .hero-plant .hero-grid, .con-top, .head-grid, .media, .media.flip, .req-grid, .foot-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .media.flip .shot { order: 0; }
  .stack { min-height: 0; display: grid; gap: 16px; } .stack .s1, .stack .s2, .stack .cap { position: static; width: 100%; box-shadow: none; }
  .product + .product { padding-left: 0; border-left: 0; }
  .sec { padding: 44px 0; } .hero { padding: 32px 0 36px; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .spec th { width: 34%; }
}
@media (max-width: 600px) {
  .header-in { height: 58px; gap: 10px; } .logo { font-size: 18px; } .logo small { display: none; }
  .btn { white-space: normal; text-align: center; } .ctas .btn { width: 100%; }
  .row2 { grid-template-columns: 1fr; } .form { padding: 18px; }
  .spec th, .spec td { display: block; width: 100%; } .spec th { border-bottom: 0; padding-bottom: 4px; }
  .dl li { flex-direction: column; align-items: flex-start; }
}

/* ページ内のリンクで飛んだ先が、上に固定した帯に隠れないように */
[id] { scroll-margin-top: 84px; }

/* 商品の一覧（動画のサムネイルつき）と、商品ページの最初の動画（2026-10-18） */
.products.with-thumb { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; border-top: 0; }
.products.with-thumb .product, .products.with-thumb .product + .product { padding: 0 0 18px; border: 0; border-bottom: 1px solid var(--line); }
.thumb { display: block; position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #f3f5f8; border: 1px solid var(--line); margin-bottom: 14px; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-img img { object-fit: contain; background: #fff; }
.thumb .badge { position: absolute; left: 10px; bottom: 10px; background: var(--brand); color: #fff; font: 700 13px/1 var(--font); padding: 7px 10px; }
.thumb-none { display: flex; align-items: center; justify-content: center; color: var(--sub); font-size: 14px; }
.product:hover .thumb { border-color: var(--brand); }
.product:hover h3 { color: var(--brand); }
.head-video { margin: 0; }
.head-video figcaption { font-size: 12.5px; color: var(--sub); padding: 6px 2px; }
@media (max-width: 900px) { .products.with-thumb .product + .product { padding-left: 0; } }
/* サムネイルの画像の幅（480px）に、グリッドの枠が引っぱられてスマホ幅ではみ出さないように */
.products > .product, .head-video, .videos > .video, .head-grid > * { min-width: 0; }
.yt-play img, .thumb img { max-width: 100%; }
