/* 版下照合 — 公開サイト・機能料金案内・ログイン画面スタイル */
:root {
  --ink-900: #202b36;
  --ink-700: #435362;
  --ink-500: #52606d;
  --paper-bg: #f3f5f6;
  --surface: #ffffff;
  --line: #d5dce2;
  --line-strong: #9aa7b3;
  --navy-800: #202f3d;
  --navy-700: #304c63;
  --blue: #1f5e8c;
  --blue-hover: #17486c;
  --blue-soft: #e8f1f7;
  --red-700: #b3262d;
  --red-600: #b3262d;
  --red-50: #fbeeee;
  --teal-700: #0f766e;
  --amber-50: #fffbeb;
  --amber-700: #92400e;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--paper-bg);
  color: var(--ink-900);
  font-family: "Yu Gothic UI", "Meiryo", "Hiragino Kaku Gothic ProN", sans-serif;
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}

.pub-container {
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
}

/* 公開ヘッダー */
.pub-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.pub-header-inner {
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 8px 24px;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.pub-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
}

.pub-logo-mark {
  width: 34px;
  height: 34px;
  flex: none;
  background: var(--navy-800);
  border: 1px solid var(--navy-800);
  color: #ffffff;
  font-weight: 800;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
}

.pub-logo-text {
  min-width: 0;
}

.pub-logo-text strong {
  display: block;
  font-size: 20px;
  letter-spacing: 0.06em;
  line-height: 1.2;
  color: var(--ink-900);
}

.pub-logo-text small {
  display: block;
  font-size: 10.5px;
  color: var(--ink-500);
}

.pub-brand-signature { display:block; width:auto; height:36px; max-width:100%; }
.pub-logo-text small { margin-top:4px; }

.pub-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.pub-nav a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-700);
}

.pub-nav a:hover, .pub-nav a.active {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 6px;
}

.pub-header-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ボタン */
.pub-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 8px 16px;
  font-size: 13.5px;
  font-family: inherit;
  font-weight: 700;
  border-radius: 3px;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.pub-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.pub-btn-primary {
  background: var(--blue);
  border-color: var(--blue);
  color: #ffffff;
}
.pub-btn-primary:hover:not(:disabled) { background: var(--blue-hover); }

.pub-btn-navy {
  background: var(--navy-800);
  border-color: #0f1f33;
  color: #ffffff;
}
.pub-btn-navy:hover:not(:disabled) { background: #0f1f33; }

.pub-btn-outline {
  background: #ffffff;
  border-color: var(--line-strong);
  color: var(--ink-900);
}
.pub-btn-outline:hover:not(:disabled) {
  background: #f1f5f9;
  border-color: var(--navy-700);
}

.pub-btn-lg {
  padding: 12px 22px;
  font-size: 15px;
}

/* ヒーロー領域 */
.hero-section {
  padding: 64px 0 62px;
  background: var(--paper-bg);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.14fr);
  gap: 44px;
  align-items: center;
}

.hero-grid > * { min-width: 0; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 0 0 11px;
  background: transparent;
  border-left: 3px solid var(--blue);
  color: var(--ink-700);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 20px;
  max-width: 100%;
}

.hero-title {
  font-size: clamp(30px, 2.8vw, 38px);
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: 0.015em;
  margin: 0 0 22px;
  color: var(--ink-900);
  overflow-wrap: anywhere;
}

.hero-title .hl {
  color: var(--blue);
}

.hero-lead {
  font-size: 15px;
  color: var(--ink-700);
  margin: 0 0 26px;
  line-height: 1.9;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.hero-scope-note {
  font-size: 12px;
  color: var(--ink-500);
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
}

/* ヒーロー内 実画面プレビューウィンドウ */
.hero-preview-window {
  background: #ffffff;
  border-radius: 4px;
  padding: 0;
  box-shadow: 0 8px 28px rgba(32, 43, 54, 0.09);
  border: 1px solid #bac5ce;
  max-width: 100%;
  overflow: hidden;
}

.hero-preview-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 14px;
  background: var(--navy-800);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
}

.hero-preview-body {
  background: #eef1f3;
  padding: 12px;
  color: var(--ink-900);
}

.mini-compare-split {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 8px;
}

.mini-card {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 8px;
  font-size: 11px;
  min-width: 0;
}

.mini-card-head {
  font-weight: 700;
  font-size: 11px;
  padding-bottom: 5px;
  margin-bottom: 6px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.mini-diff-strip {
  margin-top: 8px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 8px 10px;
  font-size: 11.5px;
  overflow-wrap: anywhere;
}

.preview-tabs {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.preview-tab {
  padding: 4px 8px;
  min-height: 28px;
  line-height: 1.4;
  font-family: inherit;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-700);
  border: 1px solid var(--line-strong);
  background: #ffffff;
  border-radius: 2px;
  cursor: pointer;
}

.preview-tab[aria-pressed="true"] {
  color: var(--blue);
  border-color: var(--blue);
  background: var(--blue-soft);
  box-shadow: inset 0 -2px var(--blue);
}

[data-lp-row].is-selected { background: var(--blue-soft); }

.pub-cta-band {
  margin-top: 32px;
  padding: 30px 32px;
  background: var(--navy-800);
  color: #ffffff;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.pub-cta-band .pub-btn-primary {
  background: #ffffff;
  border-color: #ffffff;
  color: var(--blue);
}
.pub-cta-band .pub-btn-primary:hover { background: var(--blue-soft); }

.diff-chip-del {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #dc2626;
  font-weight: 800;
  padding: 0 3px;
}

.diff-chip-eq {
  background: #eff6ff;
  color: #1e3a8a;
  padding: 0 2px;
}

/* 共通セクション */
.pub-section {
  padding: 64px 0;
  border-bottom: 1px solid var(--line);
}

.pub-section.bg-white { background: #ffffff; }

.sec-head {
  margin-bottom: 30px;
}

.sec-kicker {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.sec-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.5;
  margin: 0 0 10px;
  color: var(--ink-900);
}

.sec-desc {
  font-size: 14.5px;
  color: var(--ink-700);
  margin: 0;
  max-width: 780px;
}

.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.feature-box {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 24px;
  min-width: 0;
}

.feature-box-num {
  display: inline-block;
  font-family: Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--navy-800);
  background: var(--surface);
  padding: 0;
  border-radius: 2px;
  margin-bottom: 10px;
}

.feature-box h3 {
  font-size: 16.5px;
  margin: 0 0 8px;
  color: var(--ink-900);
}

.feature-box p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-700);
}

/* 3ステップ導入フロー */
.step-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.step-card {
  background: var(--paper-bg);
  border: 1px solid var(--line);
  border-top: 3px solid #829aab;
  padding: 20px;
  border-radius: 3px;
  min-width: 0;
}

.step-card .step-badge {
  font-size: 12px;
  font-weight: 800;
  color: var(--blue);
  margin-bottom: 6px;
}

.step-card h3 {
  margin: 0 0 8px;
  font-size: 16.5px;
}

/* 料金テーブル・プラン */
.pricing-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.pricing-card.featured {
  border: 2px solid var(--navy-800);
  box-shadow: 0 10px 26px rgba(22, 44, 70, 0.09);
}

.pricing-tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  background: var(--navy-800);
  color: #ffffff;
  margin-bottom: 10px;
}

.pricing-price {
  font-size: 27px;
  font-weight: 800;
  color: var(--ink-900);
  margin: 10px 0 4px;
}

.pricing-price small {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-500);
}

.pricing-list {
  padding-left: 18px;
  margin: 14px 0 22px;
  font-size: 13px;
  color: var(--ink-700);
  flex: 1;
}

.pricing-list li { margin-bottom: 7px; }

.pub-table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* フォーム共通 */
.pub-form-card {
  background: #ffffff;
  border: 1px solid var(--line);
  padding: 26px;
  border-radius: 4px;
  min-width: 0;
}

.pub-field {
  margin-bottom: 15px;
}

.pub-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--ink-900);
}

.pub-field input,
.pub-field select,
.pub-field textarea {
  width: 100%;
  max-width: 100%;
  padding: 9px 11px;
  font-size: 14px;
  font-family: inherit;
  border: 1px solid #64748b;
  border-radius: 3px;
  background: #ffffff;
  color: var(--ink-900);
}

.pub-field input:focus,
.pub-field select:focus,
.pub-field textarea:focus {
  outline: 2px solid var(--navy-700);
  border-color: var(--navy-700);
}

.pub-form-row-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

/* ログイン専用レイアウト */
.auth-shell {
  min-height: calc(100vh - 135px);
  padding: 36px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-grid {
  max-width: 980px;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 28px;
  align-items: start;
}

.auth-tabs {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  margin-bottom: 20px;
  gap: 4px;
}

.auth-tab {
  min-height: 38px;
  padding: 8px 12px;
  font-size: 13px;
  font-family: inherit;
  font-weight: 700;
  background: transparent;
  border: 1px solid transparent;
  border-bottom: none;
  cursor: pointer;
  color: var(--ink-500);
}

.auth-tab.active {
  background: #ffffff;
  border-color: var(--line);
  color: var(--navy-800);
  border-top: 2px solid var(--red-700);
  margin-bottom: -1px;
}

.role-login-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--navy-800);
  border-radius: 4px;
  padding: 16px 18px;
  margin-bottom: 14px;
}

.role-login-card.approver-card {
  border-left-color: var(--red-700);
}

.auth-alert {
  padding: 10px 12px;
  border-radius: 3px;
  font-size: 13px;
  margin-bottom: 14px;
}
.auth-alert-error {
  background: #fef2f2;
  border: 1px solid #dc2626;
  color: #991b1b;
}
.auth-alert-ok {
  background: #ecfdf5;
  border: 1px solid #16a34a;
  color: #166534;
}

/* フッター */
.pub-footer {
  background: var(--navy-800);
  color: #cbd5e1;
  padding: 36px 0;
  font-size: 12.5px;
}

.pub-footer a {
  color: #e2e8f0;
  text-decoration: none;
}

.pub-footer a:hover { text-decoration: underline; }

@media (max-width: 960px) {
  .hero-grid, .auth-grid, .card-grid-3, .card-grid-4, .card-grid-2, .step-flow, .mini-compare-split {
    grid-template-columns: 1fr;
  }
  .pub-nav { display: none; }
}

@media (max-width: 600px) {
  .pub-container { padding: 0 14px; }
  .pub-header-inner { padding: 8px 12px; gap: 8px; }
  .pub-logo-text strong { font-size: 15px; }
  .pub-logo-text small { display: none; }
  .pub-header-cta { gap: 6px; }
  .pub-header-cta .pub-btn { padding: 6px 10px; font-size: 12px; min-height: 32px; }
  .hero-section { padding: 28px 0 34px; }
  .hero-title { font-size: 29px; line-height: 1.5; }
  .hero-cta-row .pub-btn-lg { width: 100%; font-size: 14px; padding: 11px 14px; white-space: normal; text-align: center; }
  .pub-form-card { padding: 18px 14px; }
  .pub-form-row-2 { grid-template-columns: 1fr; gap: 0; }
  .auth-shell { padding: 20px 12px; }
  .auth-tab { font-size: 12px; padding: 7px 9px; }
}
