/* 光誠精密 KS Technology 日本サイト
   色は VI規範 v2.0 に準拠。金色（--gold）は 1ページ1か所まで、文字には使わない。 */
:root {
  --ink: #1D362E;       /* 深緑：ロゴ・見出し・濃色背景 */
  --brand: #336656;     /* ブランドグリーン：線・小見出し・リンク */
  --border: #81A79A;    /* 枠線専用 */
  --line: #D6E1DD;      /* 区切り線 */
  --soft: #F3F6F5;      /* 淡色背景 */
  --graphic: #E6EDEA;   /* 大きな図形 */
  --text: #273A33;      /* 本文 */
  --text-2: #4C645D;    /* 補足 */
  --note: #5F716B;      /* 注記 */
  --gold: #BB8A21;      /* アクセント（1ページ1か所） */
  --warn: #B5482E;      /* 必須・エラー */
  --radius: 10px;
  --font: 'Noto Sans JP', system-ui, -apple-system, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', 'Yu Gothic UI', Meiryo, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: #FFFFFF;
  color: var(--text);
  font-family: var(--font);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
img { max-width: 100%; height: auto; }
a { color: var(--brand); }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
[hidden] { display: none !important; }
h1, h2, h3 { color: var(--ink); line-height: 1.4; font-weight: 700; }
button { font-family: inherit; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.narrow { max-width: 820px; }
@media (max-width: 600px) { .wrap { padding-left: 16px; padding-right: 16px; } }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; background: var(--ink); color: #fff; padding: 8px 16px; border-radius: 6px; }
.skip:focus { left: 16px; color: #fff; }

/* ---------- 上部バー・ヘッダー ---------- */
.topbar { background: var(--ink); color: var(--line); font-size: 13px; }
.topbar .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: var(--line); }
.topbar a:hover { color: #fff; }

.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; padding-top: 24px; padding-bottom: 24px; }
.logo { display: block; padding: 4px 0; }
.logo img { display: block; width: 200px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-size: 15px; }
.nav a { color: var(--ink); text-decoration: none; padding: 10px 0; border-bottom: 2px solid transparent; }
.nav a:hover { color: var(--brand); }
.nav a[aria-current="page"] { color: var(--brand); border-bottom-color: var(--brand); }
.nav .nav-cta { background: var(--ink); color: #fff; padding: 10px 20px; border-radius: 6px; border: 0; }
.nav .nav-cta:hover, .nav .nav-cta[aria-current="page"] { background: var(--brand); color: #fff; }
.menu-btn { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--border); border-radius: 6px; background: #fff; color: var(--ink); font-size: 14px; font-weight: 700; cursor: pointer; }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 18px; height: 2px; background: var(--ink); position: relative; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
.menu-icon::before { top: -6px; }
.menu-icon::after { top: 6px; }

@media (max-width: 820px) {
  .site-header .wrap { padding-top: 14px; padding-bottom: 14px; }
  .logo img { width: 160px; }
  .js .menu-btn { display: inline-flex; }
  .js .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 8px; }
  .js .nav.is-open { display: flex; }
  .nav a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .nav a[aria-current="page"] { border-bottom-color: var(--line); }
  .nav .nav-cta { margin-top: 12px; text-align: center; padding: 12px 20px; }
}

/* ---------- 見出し・セクション ---------- */
.sec { padding-top: 80px; padding-bottom: 80px; }
.sec-tight { padding-top: 40px; padding-bottom: 80px; }
.sec-tight-bottom { padding-top: 80px; padding-bottom: 40px; }
.sec-soft { background: var(--soft); }
.sec-head { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.sec-head h2 { margin: 0; font-size: 30px; }
.sec-head-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.sec-head-row .sec-head { margin-bottom: 0; }
.eyebrow { font-size: 13px; font-weight: 700; color: var(--brand); letter-spacing: 0.12em; }
.rule { display: flex; align-items: center; width: 240px; max-width: 100%; }
.rule::before { content: ""; width: 40px; height: 3px; background: var(--brand); }
.rule::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.lead { margin: 0; font-size: 16px; max-width: 760px; }
.note { margin: 20px 0 0; font-size: 14px; color: var(--text-2); }
.fine { margin: 8px 0 0; font-size: 12px; color: var(--note); }
.more { font-size: 14px; font-weight: 700; color: var(--brand); text-decoration: none; }
.more:hover { text-decoration: underline; }
@media (max-width: 600px) {
  .sec { padding-top: 56px; padding-bottom: 56px; }
  .sec-tight { padding-top: 28px; padding-bottom: 56px; }
  .sec-tight-bottom { padding-top: 56px; padding-bottom: 28px; }
  .sec-head h2 { font-size: 24px; }
}

/* ---------- ボタン ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 28px; border-radius: 6px; border: 1px solid var(--ink); font-size: 16px; font-weight: 700; text-decoration: none; cursor: pointer; text-align: center; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-outline { background: #fff; color: var(--ink); }
.btn-outline:hover { background: var(--soft); color: var(--ink); }
.btn-invert { background: #fff; color: var(--ink); border-color: #fff; }
.btn-invert:hover { background: var(--soft); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn[disabled] { opacity: 0.6; cursor: progress; }

/* ---------- ヒーロー ---------- */
.hero { position: relative; overflow: hidden; }
.hero-graphic { position: absolute; right: -140px; top: 50%; transform: translateY(-50%); width: 560px; pointer-events: none; }
.hero .wrap { position: relative; padding-top: 88px; padding-bottom: 96px; }
.hero-body { max-width: 720px; display: flex; flex-direction: column; gap: 20px; }
.hero-eyebrow { font-size: 14px; font-weight: 700; color: var(--brand); letter-spacing: 0.08em; }
.hero h1 { margin: 0; font-size: 44px; line-height: 1.35; }
.hero-rule { display: flex; align-items: center; width: 280px; max-width: 100%; }
.hero-rule span:nth-child(1) { width: 48px; height: 3px; background: var(--brand); }
.hero-rule span:nth-child(2) { flex: 1; height: 1px; background: var(--line); }
.hero-rule span:nth-child(3) { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.hero p { margin: 0; font-size: 17px; }
.hero .btn-row { margin-top: 8px; }
@media (max-width: 1100px) { .hero-graphic { right: -240px; opacity: 0.8; } }
@media (max-width: 900px) { .hero-graphic { display: none; } }
@media (max-width: 600px) {
  .hero .wrap { padding-top: 48px; padding-bottom: 56px; }
  .hero h1 { font-size: 28px; }
  .hero h1 br { display: none; }
  .hero p { font-size: 16px; }
}

/* ---------- カード ---------- */
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.grid-240 { gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.grid-320 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.card { display: flex; flex-direction: column; gap: 12px; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); text-decoration: none; }
a.card:hover { border-color: var(--brand); color: var(--text); }
.card-active { border-color: var(--brand); }
.card-coming { border-style: dashed; border-color: var(--border); }
.card .more { margin-top: auto; }
.card-title { font-size: 20px; font-weight: 700; color: var(--ink); }
.card-text { font-size: 14px; color: var(--text-2); }
.card-meta { font-size: 13px; color: var(--text-2); }
.card-body { font-size: 15px; }
.badge { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.badge-on { color: #fff; background: var(--brand); }
.badge-off { color: var(--text-2); background: var(--graphic); }
.net-card { gap: 8px; padding: 24px; border-top: 3px solid var(--brand); }
.net-label { font-size: 13px; font-weight: 700; color: var(--brand); }
.net-name { font-size: 18px; font-weight: 700; color: var(--ink); }
.reason { border: 0; }
.reason-num { font-size: 32px; font-weight: 700; color: var(--brand); line-height: 1.2; }
.reason-title { font-size: 18px; font-weight: 700; color: var(--ink); }

/* ---------- お知らせ ---------- */
.news-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news-list li { display: flex; flex-wrap: wrap; gap: 4px 32px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.news-list time { font-size: 14px; color: var(--note); min-width: 96px; }
.news-list div { flex: 1 1 400px; }
.news-title { font-size: 15px; color: var(--ink); font-weight: 700; }
.news-list p { margin: 6px 0 0; font-size: 14px; }

/* ---------- 会社概要 ---------- */
.company-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.company-table tr { border-top: 1px solid var(--line); }
.company-table tr:last-child { border-bottom: 1px solid var(--line); }
.company-table th { text-align: left; vertical-align: top; padding: 16px 24px 16px 0; width: 160px; color: var(--text-2); font-weight: 500; }
.company-table td { padding: 16px 0; }
@media (max-width: 600px) {
  .company-table th, .company-table td { display: block; width: auto; padding: 0; }
  .company-table th { padding-top: 14px; font-size: 13px; }
  .company-table td { padding: 2px 0 14px; }
}

/* ---------- CTA帯・フッター ---------- */
.cta-band { background: var(--ink); color: #fff; }
.cta-band .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 56px; padding-bottom: 56px; }
.cta-title { margin: 0; font-size: 24px; font-weight: 700; }
.cta-text { margin: 8px 0 0; font-size: 15px; color: var(--line); }
@media (max-width: 600px) { .cta-title { font-size: 20px; } }

.site-footer { background: var(--ink); color: var(--line); font-size: 14px; border-top: 1px solid var(--brand); }
.site-footer a { color: var(--line); }
.site-footer a:hover { color: #fff; }
.footer-main { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; padding-top: 48px; padding-bottom: 32px; }
.footer-company { display: flex; flex-direction: column; gap: 6px; }
.footer-company img { display: block; width: 180px; margin-bottom: 26px; }
.footer-name { color: #fff; font-weight: 700; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: flex-start; align-content: flex-start; max-width: 560px; }
.footer-copy { padding-bottom: 32px; font-size: 12px; }
.footer-copy p { margin: 0; padding-top: 16px; border-top: 1px solid var(--brand); }

/* ---------- 下層ページ見出し・パンくず ---------- */
.page-head { background: var(--soft); }
.page-head .wrap { display: flex; flex-direction: column; gap: 12px; padding-top: 32px; padding-bottom: 40px; }
.page-head h1 { margin: 0; font-size: 34px; }
@media (max-width: 600px) { .page-head h1 { font-size: 26px; } }
.crumbs { font-size: 13px; color: var(--text-2); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin: 0 8px; color: var(--border); }
.crumbs-only { padding-top: 24px; }
.facts { display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: 14px; margin-top: 4px; }

/* ---------- 製品一覧 ---------- */
.catalog { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding-top: 40px; padding-bottom: 80px; }
.catalog-side { flex: 1 1 240px; display: flex; flex-direction: column; gap: 28px; }
.catalog-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.filters { display: flex; flex-direction: column; gap: 28px; }
.filter-group { display: flex; flex-direction: column; gap: 10px; }
.filter-label { font-size: 14px; font-weight: 700; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--border); background: #fff; color: var(--ink); font-size: 14px; cursor: pointer; }
.chip:hover { border-color: var(--brand); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--brand); color: #fff; }
.side-help { display: flex; flex-direction: column; gap: 10px; padding: 20px; background: var(--soft); border-radius: var(--radius); font-size: 14px; }
.side-help-title { font-size: 15px; font-weight: 700; }
.count { margin: 0; font-size: 14px; color: var(--text-2); }
.empty { margin: 0; padding: 40px; border: 1px dashed var(--border); border-radius: var(--radius); text-align: center; color: var(--text-2); }
.product-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); }
.pcard { display: flex; flex-direction: column; gap: 10px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--ink); text-decoration: none; }
.pcard:hover { border-color: var(--brand); color: var(--ink); }
.pcard-top { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--text-2); }
.pcard-mat { color: var(--brand); font-weight: 700; }
.pcard-name { font-size: 17px; font-weight: 700; line-height: 1.5; }
.pcard-model { font-size: 13px; color: var(--text-2); }
.pcard dl { display: grid; grid-template-columns: 64px 1fr; gap: 4px 12px; margin: 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text); }
.pcard dt { color: var(--text-2); }
.pcard dd { margin: 0; }
.pcard-use { font-size: 13px; color: var(--text); }
.pcard .more { margin-top: auto; }
@media (max-width: 600px) { .catalog { gap: 28px; padding-top: 28px; padding-bottom: 56px; } }

/* ---------- 製品詳細 ---------- */
.detail-top { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-top: 32px; padding-bottom: 56px; }
.visual {
  flex: 1 1 420px; min-width: 0; aspect-ratio: 4 / 3; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 32px;
  background: var(--soft) url("/assets/img/graphic.png") no-repeat right -60px top -40px / 70% auto;
  border-radius: 12px;
}
.visual-mat { font-size: 14px; font-weight: 700; color: var(--brand); letter-spacing: 0.08em; }
.visual-comp { font-size: 30px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.visual-model { font-size: 15px; color: var(--text-2); }
.detail-info { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.detail-info h1 { margin: 0; font-size: 32px; }
.detail-maker { font-size: 14px; color: var(--text-2); }
.detail-summary { margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12px; font-weight: 700; }
.tag { padding: 2px 10px; border-radius: 999px; background: var(--line); color: var(--text); }
.tag-mat { background: var(--graphic); color: var(--brand); }
.size-pick { display: flex; flex-direction: column; gap: 10px; padding-top: 8px; }
.size-label { font-size: 14px; font-weight: 700; }
.size-range { font-size: 18px; font-weight: 700; color: var(--ink); }
.size-note { font-size: 13px; color: var(--text-2); }
.size-chip { min-width: 56px; min-height: 44px; padding: 6px 12px; border-radius: 6px; border: 1px solid var(--border); background: #fff; color: var(--ink); font-size: 14px; cursor: pointer; }
.size-chip:hover { border-color: var(--brand); }
.size-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--brand); color: #fff; }
.spec-wrap { display: flex; flex-wrap: wrap; gap: 48px; padding-top: 56px; padding-bottom: 56px; }
.spec-col { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.spec-col-narrow { flex-basis: 360px; }
.spec-col h2 { margin: 0; font-size: 24px; }
.spec-col .spec-sub { margin-top: 16px; }
.spec-box { background: #fff; border-radius: var(--radius); padding: 8px 24px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec-table tr + tr { border-top: 1px solid var(--line); }
.spec-table th { text-align: left; vertical-align: top; width: 140px; padding: 14px 16px 14px 0; color: var(--text-2); font-weight: 500; }
.spec-table td { padding: 14px 0; }
.use-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.use-list li { background: #fff; border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; font-size: 14px; }
.doc-note { margin: 0; padding: 14px 18px; background: #fff; border: 1px solid var(--line); border-radius: 8px; font-size: 15px; }
.related-title { margin: 0 0 20px; font-size: 24px; }
.related { gap: 6px; padding: 20px; }
.related-name { font-size: 16px; font-weight: 700; color: var(--ink); }
@media (max-width: 600px) {
  .detail-top { gap: 28px; padding-bottom: 40px; }
  .visual { aspect-ratio: 16 / 9; padding: 20px; }
  .visual-comp { font-size: 22px; }
  .detail-info h1 { font-size: 24px; }
  .spec-box { padding: 4px 16px; }
  .spec-table th { width: 110px; }
}

/* ---------- お問い合わせ ---------- */
.contact-layout { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-top: 48px; padding-bottom: 80px; }
.contact-main { flex: 999 1 560px; min-width: 0; }
.contact-form { display: flex; flex-direction: column; gap: 24px; }
.kind { border: 0; padding: 0; margin: 0; }
.kind legend { padding: 0; margin-bottom: 10px; font-size: 15px; font-weight: 700; }
.radios { display: flex; flex-wrap: wrap; gap: 4px 28px; font-size: 15px; }
.radios label, .check { display: flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; }
.radios input, .check input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); flex: none; }
.check { gap: 10px; font-size: 14px; }
.form-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font-size: 14px; font-weight: 700; }
.field input:not([type="checkbox"]), .field textarea {
  width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 6px;
  font: inherit; font-size: 16px; color: var(--text); background: #fff;
}
.field textarea { padding: 10px 12px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--brand); outline: 2px solid var(--brand); outline-offset: 0; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--warn); }
.req { color: var(--warn); font-size: 12px; font-weight: 500; }
.field-error, .form-error { color: var(--warn); font-size: 13px; margin: 0; }
.form-error { padding: 12px 16px; border: 1px solid var(--warn); border-radius: 6px; font-size: 14px; }
.btn-submit { align-self: flex-start; padding-left: 40px; padding-right: 40px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.done { display: flex; flex-direction: column; gap: 12px; padding: 40px; border: 1px solid var(--brand); border-radius: 12px; background: var(--soft); }
.done-title { font-size: 22px; font-weight: 700; color: var(--ink); }
.done .btn { align-self: flex-start; }
.contact-side { flex: 1 1 280px; display: flex; flex-direction: column; gap: 12px; padding: 28px; background: var(--soft); border-radius: 12px; font-size: 14px; }
.side-title { font-size: 17px; font-weight: 700; color: var(--ink); }
.side-tel { font-size: 24px; font-weight: 700; color: var(--brand); text-decoration: none; }
.side-company { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; padding-top: 16px; border-top: 1px solid var(--line); }
.side-company-name { font-weight: 700; color: var(--ink); }
@media (max-width: 600px) {
  .contact-layout { gap: 32px; padding-top: 32px; padding-bottom: 56px; }
  .done { padding: 24px; }
  .btn-submit { align-self: stretch; }
}

/* ---------- 本文ページ ---------- */
.prose h2 { font-size: 20px; margin: 36px 0 8px; }
.prose p, .prose ul { margin: 0 0 12px; }
.prose ul { padding-left: 1.4em; }
.not-found h1 { margin: 0 0 12px; font-size: 30px; }
.not-found p { margin: 20px 0 24px; }
