/* プラクス株式会社 会社サイト共通スタイル（GenieDraw製品サイトの geniedraw_assets とは別管理） */
@font-face {
  font-family: "Noto Sans JP Sub";
  src: url("fonts/noto-sans-jp-subset.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink: #1b2a3a;
  --navy: #173a5e;
  --navy-dark: #0f2a45;
  --red: #c8102e;
  --muted: #55606d;
  --line: #dde3ea;
  --soft: #f4f7fa;
  --soft-red: #fdf1f2;
  --radius: 12px;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: "Noto Sans JP Sub", "Noto Sans JP", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic UI", Meiryo, sans-serif;
  color: var(--ink);
  background: #fff;
  line-height: 1.9;
  font-size: 16px;
  font-feature-settings: "palt" 0;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--red); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid #2f80c8;
  outline-offset: 2px;
}
h1, h2, h3, h4 { line-height: 1.5; color: var(--navy-dark); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 1rem; }
h3 { font-size: 1.15rem; margin: 0 0 .5rem; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.section { padding: 88px 0; }
.section.soft { background: var(--soft); }
.section-label { display: block; color: var(--red); font-size: .82rem; font-weight: 700; letter-spacing: .14em; margin-bottom: .4rem; }
.section-lead { max-width: 760px; color: var(--muted); margin-bottom: 40px; }
.muted { color: var(--muted); font-size: .92rem; }
.nw { white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; background: #fff; padding: 8px 12px; z-index: 100; }

/* ヘッダー */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; min-height: 68px; flex-wrap: wrap; }
.brand { display: block; padding: 8px 0; }
.brand img { width: 132px; }
.site-nav { display: flex; align-items: center; gap: 4px 20px; flex-wrap: wrap; font-size: .92rem; }
.site-nav a { color: var(--ink); text-decoration: none; padding: 4px 0; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--red); }
.site-nav .nav-cta { background: var(--navy); color: #fff; padding: 6px 16px; border-radius: 999px; font-weight: 700; }
.site-nav .nav-cta:hover, .site-nav .nav-cta[aria-current] { background: var(--navy-dark); color: #fff; }

/* ボタン */
.btn {
  display: inline-block; padding: 14px 30px; border-radius: 999px; font-weight: 700; font-size: 1rem; font-family: inherit;
  text-decoration: none; border: 2px solid var(--red); background: var(--red); color: #fff; cursor: pointer; line-height: 1.5;
}
.btn:hover { background: #a50d26; border-color: #a50d26; color: #fff; }
.btn.ghost { background: #fff; color: var(--navy); border-color: var(--navy); }
.btn.ghost:hover { background: var(--soft); color: var(--navy-dark); }
.btn[disabled] { opacity: .6; cursor: wait; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* ヒーロー */
.hero { position: relative; overflow: hidden; background: linear-gradient(160deg, #f6f9fc 0%, #fff 60%); padding: 96px 0 104px; border-bottom: 1px solid var(--line); }
.hero .wrap { position: relative; }
.hero-text { max-width: 640px; position: relative; z-index: 1; }
.eyebrow { display: inline-block; font-weight: 700; color: var(--navy); border-left: 4px solid var(--red); padding-left: 12px; margin-bottom: 20px; font-size: .95rem; line-height: 1.5; }
.hero h1 { font-size: clamp(2rem, 5.2vw, 3.3rem); line-height: 1.35; margin: 0 0 .6em; letter-spacing: .02em; }
.hero .company { font-weight: 700; color: var(--navy); margin-bottom: 1.4em; }
.hero p { font-size: 1.05rem; }
.hero-art { position: absolute; right: -40px; top: 50%; transform: translateY(-50%); width: 460px; max-width: 46%; opacity: .9; pointer-events: none; }

/* 相談 */
.voices { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.voices li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; font-weight: 700; color: var(--navy-dark); position: relative; }
.voices li::before { content: "“"; color: var(--red); font-size: 2rem; line-height: 1; position: absolute; top: 8px; left: 10px; opacity: .5; }
.voices li span { display: block; padding-left: 14px; }
.callout { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 28px 32px; }
.callout h3 { color: #fff; }

/* サービス */
.cards { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px; }
.card .num { display: block; font-size: .8rem; font-weight: 700; color: var(--red); letter-spacing: .1em; margin-bottom: 6px; }
.card p { font-size: .96rem; }

/* 技術・考え方 */
.split { display: grid; gap: 48px; grid-template-columns: 1.1fr 1fr; align-items: start; }
.points { list-style: none; padding: 0; margin: 24px 0 0; }
.points li { padding: 16px 0 16px 36px; border-top: 1px solid var(--line); position: relative; }
.points li:last-child { border-bottom: 1px solid var(--line); }
.points li::before { content: ""; position: absolute; left: 6px; top: 26px; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--red); }
.points strong { display: block; color: var(--navy-dark); }
.panel { background: var(--soft); border-radius: var(--radius); padding: 32px; }
.section.soft .panel { background: #fff; border: 1px solid var(--line); }

/* 代表の想い（写真は縦横比を保ったまま表示し、切り抜かない） */
.message { display: grid; gap: 48px; grid-template-columns: minmax(220px, 320px) 1fr; align-items: start; }
#approach .message { margin-top: 72px; padding-top: 64px; border-top: 1px solid var(--line); }
.portrait img { border-radius: 8px; background: var(--soft); }
.message-kicker { font-weight: 700; color: var(--navy); margin-bottom: .2em; }
.message-body { max-width: 720px; }
.sign { font-weight: 700; color: var(--navy-dark); text-align: right; margin-top: 1.4em; }
.profile-grid { display: grid; gap: 40px; grid-template-columns: 1fr 1fr; align-items: start; }
.history caption { text-align: left; font-weight: 700; color: var(--navy-dark); font-size: 1.05rem; padding: 18px 0 8px; }
.history tbody th { width: 9em; white-space: nowrap; }
.articles { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.articles li { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; }
.articles h3 { font-size: 1.02rem; overflow-wrap: anywhere; }
.article-meta { font-size: .85rem; color: var(--muted); margin-bottom: 6px; }

/* 実績 */
.product { display: grid; gap: 36px; grid-template-columns: 1fr 1.15fr; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; margin-bottom: 32px; }
.product-head { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.product-head img { width: 56px; height: 56px; }
.product-head p { margin: 0; }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; color: var(--navy); background: var(--soft); border: 1px solid var(--line); border-radius: 4px; padding: 0 8px; }
.cert { display: flex; align-items: center; gap: 12px; margin-top: 20px; font-size: .88rem; color: var(--muted); }
.cert img { width: 64px; height: 64px; }
.shot { border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 28px rgba(23, 58, 94, .12); background: #fff; }
figure { margin: 0; }
figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; text-align: center; }
.cases { display: grid; gap: 24px; grid-template-columns: 1fr 1fr; }
.case { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.case h3 { margin-top: 18px; }
.case dl { margin: 12px 0 0; font-size: .92rem; }
.case dt { font-weight: 700; color: var(--navy); margin-top: 10px; }
.case dd { margin: 0; }
/* 実績の画面画像：複数画面をまとめた画像のため切り抜かず枠内に収める。クリックで原寸表示 */
.case .shot { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; padding: 6px; }
.shot-link { display: block; }
.more { margin-top: 32px; }

/* 表 */
table { border-collapse: collapse; width: 100%; background: #fff; }
th, td { border-bottom: 1px solid var(--line); padding: 16px 18px; text-align: left; vertical-align: top; }
thead th { background: var(--navy); color: #fff; border-bottom: 0; }
tbody th { color: var(--navy-dark); width: 26%; font-weight: 700; }
.table-scroll { overflow-x: auto; }

/* 流れ */
.flow { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: repeat(5, 1fr); counter-reset: f; }
.flow li { counter-increment: f; background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--navy); border-radius: 8px; padding: 22px 18px; font-size: .92rem; }
.flow li::before { content: "STEP " counter(f); display: block; font-size: .78rem; font-weight: 700; color: var(--red); letter-spacing: .08em; }
.flow h3 { font-size: 1.02rem; margin: 4px 0 8px; }

/* FAQ */
details { border: 1px solid var(--line); border-radius: 10px; background: #fff; margin-bottom: 12px; }
summary { cursor: pointer; padding: 18px 22px; font-weight: 700; color: var(--navy-dark); list-style: none; position: relative; padding-right: 48px; }
summary::-webkit-details-marker { display: none; }
summary::before { content: "Q"; color: var(--red); margin-right: 10px; }
summary::after { content: "+"; position: absolute; right: 22px; top: 14px; font-size: 1.4rem; color: var(--navy); }
details[open] summary::after { content: "−"; }
details p { padding: 0 22px 20px; margin: 0; }

/* 会社概要 */
.company-grid { display: grid; gap: 40px; grid-template-columns: 2fr 1fr; align-items: start; }
.marks { display: flex; gap: 16px; align-items: flex-start; }
.marks img { width: 96px; }

/* CTA */
.cta { background: var(--navy-dark); color: #fff; text-align: center; }
.cta h2 { color: #fff; }
.cta p { color: #e3eaf2; }
.cta .actions { justify-content: center; }
.cta a:not(.btn) { color: #fff; }

/* サブページ見出し */
.page-head { background: var(--soft); padding: 56px 0 48px; border-bottom: 1px solid var(--line); }
.page-head h1 { margin: 0 0 .4em; font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
.page-head p { color: var(--muted); max-width: 760px; }
.crumb { font-size: .85rem; margin-bottom: 8px; }

/* フォーム */
.contact-grid { display: grid; gap: 48px; grid-template-columns: 1.6fr 1fr; align-items: start; }
.form { max-width: 720px; }
.field { margin-bottom: 24px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; color: var(--navy-dark); }
.req { background: var(--red); color: #fff; font-size: .72rem; padding: 1px 8px; border-radius: 4px; margin-left: 8px; vertical-align: 2px; font-weight: 700; }
input[type=text], input[type=email], textarea { width: 100%; padding: 12px 14px; border: 1px solid #8f9aa6; border-radius: 8px; font: inherit; background: #fff; color: var(--ink); }
textarea { min-height: 200px; resize: vertical; }
.hint { font-size: .88rem; color: var(--muted); margin: 4px 0 0; }
.err { color: #b3261e; font-size: .9rem; margin: 6px 0 0; font-weight: 700; }
[aria-invalid=true] { border-color: #b3261e !important; background: #fff7f6; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; }
.check input { width: 22px; height: 22px; margin: 4px 0 0; flex: none; accent-color: var(--navy); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: 10px; padding: 22px 26px; margin: 0 0 24px; }
.alert.ok { background: #edf7ee; border: 1px solid #a8d5ad; }
.alert.warn { background: #fff8e6; border: 1px solid #e8c770; }
.alert.ng { background: #fdecea; border: 1px solid #f1b8b2; }
.alert h2 { font-size: 1.3rem; margin-bottom: .6rem; }
.aside { background: var(--soft); border-radius: var(--radius); padding: 28px; font-size: .95rem; }
.aside h2 { font-size: 1.1rem; }
.aside dl { margin: 0; }
.aside dt { font-weight: 700; color: var(--navy); margin-top: 14px; }
.aside dd { margin: 0; }

/* フッター */
.site-footer { background: #0c1f33; color: #d6dee8; padding: 56px 0 28px; font-size: .9rem; }
.site-footer a { color: #fff; }
.site-footer .wrap { display: grid; gap: 32px; grid-template-columns: 1.4fr 1fr; }
.footer-logo { background: #fff; display: inline-block; border-radius: 6px; padding: 6px 10px; margin-bottom: 14px; }
.footer-logo img { width: 140px; }
.site-footer strong { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; columns: 2; }
.site-footer li { margin-bottom: 8px; }
.copy { grid-column: 1 / -1; border-top: 1px solid #2a3f56; padding-top: 20px; margin: 0; color: #a9b6c4; font-size: .82rem; }

@media (max-width: 960px) {
  .flow { grid-template-columns: repeat(2, 1fr); }
  .hero-art { opacity: .25; max-width: 70%; right: -80px; }
}
@media (max-width: 860px) {
  .cards, .voices { grid-template-columns: 1fr 1fr; }
  .split, .product, .cases, .company-grid, .contact-grid, .profile-grid, .articles, .site-footer .wrap { grid-template-columns: 1fr; }
  .message { grid-template-columns: 220px 1fr; gap: 32px; }
  #approach .message { margin-top: 48px; padding-top: 48px; }
  .product { padding: 24px 20px; }
  .section { padding: 64px 0; }
  .hero { padding: 64px 0 72px; }
}
@media (max-width: 560px) {
  .cards, .voices, .flow { grid-template-columns: 1fr; }
  .site-header .wrap { padding-top: 4px; padding-bottom: 8px; }
  .site-nav { gap: 2px 14px; font-size: .86rem; }
  tbody th { width: 34%; }
  th, td { padding: 12px 10px; }
  .callout, .panel, .case, .aside { padding: 22px 18px; }
  .message { grid-template-columns: 1fr; gap: 28px; }
  .portrait { max-width: 300px; }
  .history tbody th { width: 6.6em; }
}

/* 404ページ */
.notfound { min-height: 50vh; }
.notfound h1 { font-size: clamp(1.6rem, 3.6vw, 2.2rem); margin: 0 0 .6em; }
