/* ============================================================================
 * 改訂検査表（カイテイ検査表）— 公開製品サイト・ログイン画面共通CSS
 * 日本の部品加工メーカー・町工場 経営者／品質管理責任者向け 信頼デザイン
 * ============================================================================ */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: var(--slate-900);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

.mono {
  font-family: Consolas, "Courier New", monospace;
  font-variant-numeric: tabular-nums;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 公開ヘッダ */
.pub-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--slate-300);
  backdrop-filter: none;
}

.pub-header-inner {  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.pub-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.pub-logo-mark {
  width: 34px;
  height: 34px;
  background: var(--navy-900);
  border: 2px solid var(--crimson-600);
  color: #ffffff;
  font-weight: 900;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
}

.pub-logo-text strong {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 18px;
  font-weight: 800;
  color: var(--navy-950);
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.pub-logo-kana {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--blue-700);
  background: #f0f5f8;
  border: 1px solid #bdcfdc;
  padding: 1px 6px;
  border-radius: 2px;
  letter-spacing: 0.01em;
}

.pub-logo-text span {
  display: block;
  font-size: 11px;
  color: var(--slate-600);
  font-weight: 600;
  margin-top: 2px;
}

.pub-nav a.is-current {
  color: var(--blue-700);
  border-bottom: 2px solid var(--blue-700);
  padding-bottom: 2px;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
  font-size: 14px;
}

.spec-table th,
.spec-table td {
  border: 1px solid var(--slate-300);
  padding: 11px 14px;
  text-align: left;
}

.spec-table thead th {
  background: var(--navy-900);
  color: #ffffff;
  font-weight: 700;
}

.spec-table tbody th {
  background: var(--slate-100);
  width: 240px;
  color: var(--navy-950);
}

.pub-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-700);
  flex-shrink: 0;
}

.pub-nav a:hover {
  color: var(--blue-700);
}

.pub-header-btns {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 18px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 3px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
  white-space: nowrap;
}

.btn-outline {
  background: #ffffff;
  border-color: var(--slate-300);
  color: var(--slate-900);
}

.btn-outline:hover {
  border-color: var(--blue-700);
  color: var(--blue-700);
  background: #f1f6f8;
}

.btn-primary {
  background: var(--blue-700);
  border-color: #004478;
  color: #ffffff;
}

.btn-primary:hover {
  background: #00477d;
}

.btn-accent {  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: #ffffff;
}

.btn-accent:hover {  background: #1b4b65;
  border-color: #1b4b65;
}

.btn-lg {
  padding: 13px 26px;
  font-size: 15.5px;
}

/* ヒーローセクション（製図方眼背景） */
.hero-sec {  background-color: #f3f5f6;
  background-image: none;
  background-size: 28px 28px;
  color: var(--text-main);
  padding: 64px 0 68px;
  border-bottom: 1px solid #d1d8de;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 36px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  padding: 0 0 0 12px;
  background: none;
  border: 0;
  color: #4c6575;
  font-size: 12px;
  font-weight: 600;
  border-radius: 0;
  margin-bottom: 14px;
  border-left: 3px solid var(--brand-blue);
}

.hero-title {  font-size: 34px;
  line-height: 1.5;
  font-weight: 700;
  margin: 0 0 16px;
  letter-spacing: -.02em;
}

.hero-title em {
  font-style: normal;
  color: var(--brand-blue);
  border-bottom: 0;
}

.hero-lead {  color: #52616b;
  font-size: 14px;
  line-height: 1.9;
  margin: 0 0 24px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid #ced8de;
}

.hero-metric strong {
  display: block;
  font-size: 17px;
  font-weight: 700;
  color: #334f61;
}

.hero-metric span {
  font-size: 12px;
  color: #596b77;
}

/* ヒーロー右：実機UIダイジェストカード */
.hero-ui-card {
  background: #f3f5f6;
  color: var(--slate-900);
  border: 1px solid #596b78;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 12px 30px #26364013;
  border-color: #b9c6cf;
}

.hero-ui-bar {  background: var(--brand-navy);
  color: #f8f9fa;
  padding: 7px 12px;
  font-size: 11.5px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
}

/* 共通セクション */
.sec {
  padding: 64px 0;
}

.sec-alt {
  background: var(--slate-50);
  border-top: 1px solid var(--slate-200);
  border-bottom: 1px solid var(--slate-200);
}

.sec-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 42px;
}

.sec-kicker {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--blue-700);
  letter-spacing: .04em;
  margin-bottom: 6px;
}

.sec-head h2 {
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--navy-950);
  line-height: 1.5;
}

.sec-head p {
  margin: 0;
  color: var(--slate-600);
  font-size: 15px;
}

/* 3カラム・2カラムカード */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.cards-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.info-card {
  background: #ffffff;
  border: 1px solid var(--slate-300);
  border-top: 2px solid #91a6b4;
  padding: 22px;
}

.info-card.alert-top {  border-top-color: #ad7a2a;
}

.info-card.green-top {  border-top-color: #54856a;
}

.info-card h3 {
  margin: 0 0 10px;
  font-size: 17.5px;
  color: var(--navy-950);
}

.info-card p {
  margin: 0;
  font-size: 14px;
  color: var(--slate-600);
}

/* 料金テーブルカード */
.price-card {
  background: #ffffff;
  border: 1px solid var(--slate-300);
  padding: 26px;
  display: flex;
  flex-direction: column;
}

.price-card.recommended {  border: 1px solid #7496aa;
  box-shadow: inset 0 3px var(--brand-blue);
  position: relative;
}

.price-badge {
  position: absolute;
  top: -12px;
  right: 18px;
  background: var(--blue-700);
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: 2px;
}

.price-amount {
  font-size: 32px;
  font-weight: 800;
  color: var(--navy-950);
  margin: 10px 0 4px;
}

.price-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 22px;
  font-size: 13.5px;
  color: var(--slate-700);
}

.price-list li {
  padding: 6px 0;
  border-bottom: 1px solid var(--slate-100);
}

/* フォーム（ログイン・トライアル申込） */
.form-card {
  background: #ffffff;
  border: 1px solid var(--slate-300);
  padding: 28px;
  box-shadow: 0 2px 8px #26364008;
}

.f-row {
  margin-bottom: 16px;
}

.f-row label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 5px;
}

.f-row input, .f-row select, .f-row textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid #aab7c2;
  border-radius: 2px;
  font-family: inherit;
  font-size: 14px;
}

.f-row input:focus, .f-row select:focus, .f-row textarea:focus {
  outline: none;
  border-color: var(--blue-700);
  box-shadow: 0 0 0 2px rgba(0, 90, 158, 0.15);
}

/* フッタ */
.pub-footer {  background: var(--brand-navy);
  color: #d1d8de;
  padding: 44px 0 28px;
  font-size: 13px;
}

.pub-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.pub-footer h4 {
  color: #ffffff;
  margin: 0 0 10px;
  font-size: 13.5px;
}

.pub-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.pub-footer li {
  margin-bottom: 7px;
}

.pub-footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}

@media (max-width: 920px) {
  .hero-grid, .cards-3, .cards-2, .pub-footer-grid {
    grid-template-columns: 1fr;
  }
  .pub-nav {
    display: none;
  }
  .hero-title {
    font-size: 25px;
  }
}


/* ============================================================================
 * モバイル（320px / 390px / 768px）横スクロール完全防止・透明性表示拡張
 * ============================================================================ */
html, body {
  max-width: 100%;
  overflow-x: hidden;
}

.table-scroll-x {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.cap-badge-ok {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11.5px;
  font-weight: 600;
  background: #edf5f0;
  color: #286444;
  border: 1px solid #b4d1c0;
  border-radius: 3px;
}

.cap-badge-roadmap {
  display: inline-block;
  padding: 2px 8px;
  font-size: 11.5px;
  font-weight: 600;
  background: #f7efd9;
  color: #78350f;
  border: 1px solid #d4bd84;
  border-radius: 3px;
}

.pub-mobile-subnav {
  display: none;
  border-top: 1px solid var(--slate-200);
  background: var(--slate-50);
  padding: 6px 12px;
  gap: 14px;
  overflow-x: auto;
  white-space: nowrap;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--slate-700);
}

@media (max-width: 920px) {
  .pub-mobile-subnav {
    display: flex;
  }
}

@media (max-width: 640px) {
  .container {
    padding: 0 14px;
  }
  .pub-header-inner {
    height: auto;
    min-height: 58px;
    padding: 8px 12px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .pub-logo {
    min-width: 0;
    gap: 8px;
  }
  .pub-logo-mark {
    width: 30px;
    height: 30px;
    font-size: 16px;
    flex-shrink: 0;
  }
  .pub-logo-text strong {
    font-size: 15.5px;
    flex-wrap: wrap;
    gap: 4px;
  }
  .pub-logo-text span {
    display: none;
  }
  .pub-header-cta {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
  }
  .pub-header-cta .btn-pub {
    padding: 6px 10px !important;
    font-size: 12px !important;
  }
  .hero-sec {
    padding: 32px 0 36px;
  }
  .hero-title {
    font-size: 22px;
    word-break: keep-all;
    overflow-wrap: anywhere;
  }
  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
  }
  .hero-cta-row .btn-pub {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
  .hero-trust-strip {
    grid-template-columns: 1fr !important;
    gap: 10px;
  }
  .form-card, .price-card, .info-card {
    padding: 18px 14px;
  }
  .spec-table th, .spec-table td {
    padding: 8px 9px;
    font-size: 12.5px;
  }
}

/* Shared identity, restrained calls to action, and usable small-screen headers. */
.pub-nav a {white-space:nowrap;}
.pub-header-btns .btn {padding:9px 13px;font-size:12px;}
.pub-header-btns .btn-primary {background:#fff;color:var(--brand-blue);border-color:#a7b7c2;}
.pub-header-btns .btn-outline {border-color:transparent;}
.pub-header-btns .btn-primary:hover,.pub-header-btns .btn-outline:hover {background:#edf3f7;}
.hero-sec .btn-outline {color:#344e5f!important;border-color:#a7b7c2!important;background:#fff;}
.hero-cta-note {font-size:12px;color:var(--text-sub);margin:12px 0 0;}
.hero-metrics {gap:16px;}
.hero-metric strong {line-height:1.5;}
.page-hero {padding:48px 0;background:#f3f5f6;color:var(--text-main);border-bottom:1px solid var(--border-mid);}
.page-hero>.container>span {color:var(--brand-blue)!important;font-weight:600!important;}
.page-hero p {color:var(--text-sub)!important;}
.page-hero h1 {font-weight:700;line-height:1.5;}
.pub-footer .brand-lockup {width:185px;margin-bottom:16px;}
@media (max-width:1100px) and (min-width:921px) {.pub-header-inner {gap:12px;padding-inline:16px;}.pub-nav {gap:12px;}.brand-lockup {width:176px;}}
@media (max-width:640px) {
 .pub-header-inner {height:auto;min-height:64px;padding:12px 14px;gap:12px;}
 .brand-lockup {width:176px;}
 .pub-header-btns {width:100%;flex-wrap:wrap;}
 .pub-header-btns .btn {flex:1;padding:8px 10px;min-width:0;font-size:12px;text-align:center;white-space:normal;}
 .hero-sec {padding:36px 0 40px;}
 .hero-title {font-size:26px;}
 .page-hero {padding:32px 0;}
 .page-hero h1 {font-size:23px!important;}
 .hero-grid {gap:28px;}
 .hero-metrics {gap:12px;grid-template-columns:1fr;}
 .hero-metric {display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;}
 .hero-metric strong {font-size:17px;}
 .hero-ui-card {min-width:0;}
 .hero-ui-bar {gap:8px;flex-wrap:wrap;}
 .spec-table {table-layout:fixed;}
 .spec-table tbody th {width:30%;}
 .spec-table th,.spec-table td {overflow-wrap:anywhere;}
}
@media (prefers-reduced-motion:reduce) {*,*::before,*::after {scroll-behavior:auto!important;transition:none!important;}}
