/* ==========================================================================
   ロジこんぱすLite LP — style.css
   トークン化されたCSS変数 + セマンティックなクラス設計
   ========================================================================== */

:root {
  /* カラー */
  --ink:        #1b2420;
  --ink-2:      #3b4740;
  --muted:      #66716a;
  --border:     #e3e8e0;
  --bg:         #fbfaf6;
  --bg-alt:     #f2f6ee;
  --white:      #ffffff;
  --green:      #2f8f3c;
  --green-dark: #1f5e29;
  --green-pale: #e8f5ea;
  --navy:       #3949ab;
  --navy-dark:  #28316f;
  --navy-pale:  #eaecf8;
  --orange:     #e07b1a;
  --orange-pale:#fdf0e2;

  /* 形状・影 */
  --radius:     12px;
  --radius-sm:  8px;
  --radius-lg:  20px;
  --shadow:     0 2px 20px rgba(27, 36, 32, .07);
  --shadow-md:  0 14px 36px rgba(27, 36, 32, .12);

  /* レイアウト */
  --header-h:   72px;
  --container:  1120px;
  --font:       'Noto Sans JP', system-ui, -apple-system, sans-serif;

  /* トランジション */
  --tr: .2s ease;
}

/* ==========================================================================
   ベース
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; font-weight: 700; color: var(--ink); }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }

a { color: var(--green-dark); text-decoration: none; }
a:hover { color: var(--green); }
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 2px;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ==========================================================================
   共通パーツ
   ========================================================================== */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .04em;
  color: var(--green-dark); background: var(--green-pale);
  padding: 6px 14px; border-radius: 999px;
}
.eyebrow--invert { color: #fff; background: rgba(255,255,255,.16); }

.section-title { font-size: clamp(24px, 3.2vw, 34px); line-height: 1.4; font-weight: 900; }
.section-lead { font-size: 16px; color: var(--ink-2); line-height: 1.9; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 16px; padding: 15px 28px; border-radius: 999px;
  white-space: nowrap; border: 2px solid transparent; cursor: pointer;
  transition: transform var(--tr), box-shadow var(--tr), background var(--tr), color var(--tr), border-color var(--tr);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--border); }
.btn-secondary:hover { border-color: var(--green); color: var(--green-dark); }
.btn-invert { background: #fff; color: var(--green-dark); font-weight: 900; }
.btn-outline-invert { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-outline-invert:hover { color: #fff; border-color: #fff; }
.btn-sm { padding: 9px 18px; font-size: 14px; }

.card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
}

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px;
}
.tag--green { background: var(--green-pale); color: var(--green-dark); }
.tag--navy { background: var(--navy-pale); color: var(--navy-dark); }

.hint-text { font-size: 13px; color: var(--muted); }

/* ==========================================================================
   ヘッダー
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(251, 250, 246, .94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  max-width: var(--container); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: var(--header-h);
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo img { height: 26px; width: auto; }
.logo-sub { font-size: 12px; color: var(--muted); font-weight: 500; }

.nav-toggle {
  display: none; flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; width: 44px; height: 44px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: #fff;
}
.nav-toggle-bar,
.nav-toggle-bar::before,
.nav-toggle-bar::after {
  content: ''; display: block; width: 20px; height: 2px; background: var(--ink); transition: var(--tr);
}
.nav-toggle-bar { position: relative; }
.nav-toggle-bar::before { position: absolute; top: -6px; }
.nav-toggle-bar::after { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar::after { transform: translateY(-6px) rotate(-45deg); }

.global-nav { display: flex; align-items: center; gap: 32px; }
.global-nav ul { display: flex; align-items: center; gap: 28px; }
.global-nav > ul a { font-size: 14px; font-weight: 500; color: var(--ink-2); padding: 10px 2px; margin: -10px -2px; display: inline-block; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-tel { font-size: 13px; font-weight: 700; color: var(--ink); white-space: nowrap; }

/* ==========================================================================
   ヒーロー
   ========================================================================== */
.hero { padding: 64px 0 88px; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.hero-copy { display: flex; flex-direction: column; gap: 22px; }
.hero-title { font-size: clamp(30px, 4vw, 46px); line-height: 1.42; font-weight: 900; }
.hero-title .accent { color: var(--green-dark); }
.hero-desc { font-size: 17px; line-height: 1.95; color: var(--ink-2); }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 8px; }

.hero-visual { position: relative; }
.hero-visual-frame { padding: 20px; border-radius: var(--radius-lg); }
.hero-visual-frame img { border-radius: 12px; width: 100%; }
.hero-stat-badge {
  position: absolute; top: -18px; right: 8px; background: #fff;
  border: 1px solid var(--border); box-shadow: var(--shadow-md);
  border-radius: 16px; padding: 14px 18px; text-align: center;
}
.hero-stat-num { font-size: 24px; font-weight: 900; color: var(--green-dark); line-height: 1; }
.hero-stat-num small { font-size: 12px; font-weight: 700; color: var(--muted); }
.hero-stat-label { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; }

.hero-device-cards { display: flex; gap: 12px; margin-top: 16px; }
.hero-device-card { flex: 1; display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.hero-device-card img { width: 34px; }
.hero-device-card strong { display: block; font-size: 12px; }
.hero-device-card span.hint-text { font-size: 11px; }
.hero-device-card--obd2 strong { color: var(--navy-dark); }
.hero-device-card--gps strong { color: var(--green-dark); }

/* ==========================================================================
   セクション共通
   ========================================================================== */
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }
.section-head {
  text-align: center; display: flex; flex-direction: column; gap: 14px;
  align-items: center; margin-bottom: 52px;
}
.section-head .section-lead { max-width: 620px; }

/* ==========================================================================
   Problem（お悩み）
   ========================================================================== */
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.problem-card { padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.problem-icon {
  width: 44px; height: 44px; border-radius: 10px; background: var(--green-pale);
  display: inline-flex; align-items: center; justify-content: center;
}
.problem-card p { font-size: 15px; color: var(--ink-2); }
.problem-cta {
  padding: 26px; display: flex; flex-direction: column; justify-content: center; gap: 10px;
  background: var(--green-dark); border-radius: var(--radius);
}
.problem-cta p { font-size: 15px; color: #fff; font-weight: 700; line-height: 1.8; }
.problem-cta a { font-size: 13px; color: #dff2e0; font-weight: 700; }

/* ==========================================================================
   Solution（クラウド型サービス）
   ========================================================================== */
.solution-top {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-bottom: 64px;
}
.solution-copy { display: flex; flex-direction: column; gap: 18px; }
.solution-stats { display: flex; gap: 32px; margin-top: 8px; }
.solution-stat-num { font-size: 30px; font-weight: 900; color: var(--green-dark); }
.solution-stat-num span { font-size: 14px; }
.solution-stat-label { font-size: 12px; color: var(--muted); }
.solution-mv { padding: 16px; border-radius: var(--radius-lg); }
.solution-mv img { border-radius: 12px; width: 100%; }

.solution-features { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.solution-feature { display: flex; flex-direction: column; gap: 10px; }
.solution-feature-icon {
  width: 52px; height: 52px; border-radius: 12px; background: var(--green-dark);
  display: flex; align-items: center; justify-content: center;
}
.solution-feature-icon img { width: 26px; height: 26px; }
.solution-feature h3 { font-size: 15px; font-weight: 700; }
.solution-feature h3 .note { font-size: 11px; color: var(--muted); font-weight: 500; }
.solution-feature p { font-size: 13px; color: var(--muted); line-height: 1.8; }

/* ==========================================================================
   製品ラインナップ
   ========================================================================== */
.device-card { padding: 40px; margin-bottom: 24px; }
.device-card:last-child { margin-bottom: 0; }
.device-card--obd2 { border-top: 4px solid var(--navy); }
.device-card--gps { border-top: 4px solid var(--green); }
.device-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 40px; align-items: center; }
.device-photo { text-align: center; }
.device-photo img { max-width: 220px; margin: 0 auto; }
.device-body { display: flex; flex-direction: column; gap: 14px; }
.device-name { font-size: 24px; font-weight: 900; }
.device-desc { font-size: 14px; color: var(--muted); }
.device-features { display: flex; flex-direction: column; gap: 8px; }
.device-features li { font-size: 14px; color: var(--ink-2); }
.device-features li::before { content: '✓ '; color: var(--green-dark); font-weight: 700; }
.device-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 6px; }

.compare-wrap { margin-top: 32px; }
.compare-heading { font-size: 18px; font-weight: 700; margin-bottom: 14px; }
.compare-scroll-hint { display: none; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.compare-scroll { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); background: #fff; box-shadow: var(--shadow); }
.compare-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 14px; }
.compare-table th, .compare-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: top; }
.compare-table thead th { background: var(--bg-alt); font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.compare-table th[scope="row"] { font-weight: 700; color: var(--ink); white-space: nowrap; background: var(--bg-alt); }
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table td { color: var(--ink-2); }

/* ==========================================================================
   Steps（導入までの流れ）
   ========================================================================== */
.step-list {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  margin: 0; padding: 0; list-style: none;
}
.step-item { padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.step-num {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--green-dark); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 900; flex: none;
}
.step-title { font-size: 16px; font-weight: 700; color: var(--ink); }
.step-item p { font-size: 14px; color: var(--ink-2); line-height: 1.9; }

/* ==========================================================================
   オンラインショップCTA
   ========================================================================== */
.shop-cta {
  background: var(--green-dark); border-radius: 24px; padding: 64px;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center;
}
.shop-cta-copy { display: flex; flex-direction: column; gap: 16px; }
.shop-cta-title { font-size: clamp(22px, 3vw, 30px); font-weight: 900; color: #fff; line-height: 1.5; }
.shop-cta-desc { font-size: 15px; color: #dfeee0; line-height: 1.9; }
.shop-cta-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.shop-cta-visual { display: flex; justify-content: center; }
.shop-cta-devices {
  background: #fff; border-radius: 16px; padding: 24px; display: flex; gap: 16px;
  box-shadow: var(--shadow-md); align-items: center;
}
.shop-cta-devices img:first-child { width: 52px; }
.shop-cta-devices img:last-child { width: 34px; }
.shop-cta-divider { width: 1px; align-self: stretch; background: var(--border); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-list { max-width: 840px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  padding: 4px 28px; border: 1px solid var(--border); border-radius: var(--radius);
  background: #fff; box-shadow: var(--shadow);
}
.faq-item summary {
  padding: 20px 0; font-size: 15px; font-weight: 700; cursor: pointer;
  list-style: none; display: flex; gap: 10px; align-items: baseline;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .q-mark { color: var(--green-dark); flex: none; }
.faq-item summary::after {
  content: '+'; margin-left: auto; font-size: 20px; color: var(--muted); font-weight: 400;
}
.faq-item[open] summary::after { content: '−'; }
.faq-answer { font-size: 14px; color: var(--ink-2); padding: 0 0 22px 26px; }
.faq-answer p + p { margin-top: 6px; }
.faq-note { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* ==========================================================================
   関連製品
   ========================================================================== */
.related-heading { font-size: 20px; font-weight: 700; text-align: center; color: var(--ink-2); margin-bottom: 32px; }
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 8px; }
.related-card { background: var(--white); border: 1px solid var(--border); padding: 9px; display: flex; align-items: center; justify-content: center; transition: border-color .15s, box-shadow .15s; }
.related-card:hover { border-color: var(--orange); box-shadow: var(--shadow); }
.related-card img { width: 100%; height: auto; display: block; }

/* ==========================================================================
   お問い合わせ
   ========================================================================== */
.contact-inner { max-width: 900px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.contact-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin-top: 8px; }
.contact-form-wrap { width: 100%; margin-top: 32px; }
.contact-form-wrap iframe { width: 100%; height: 1470px; border: none; border-radius: var(--radius); }

/* ==========================================================================
   フッター
   ========================================================================== */
.site-footer { padding: 48px 0; background: var(--ink); }
.footer-inner { display: flex; flex-direction: column; gap: 20px; align-items: center; text-align: center; }
.footer-logo { height: 24px; filter: brightness(0) invert(1); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 24px; justify-content: center; }
.footer-nav a { color: #c9d2cb; font-size: 13px; }
.footer-info { font-size: 13px; color: #c9d2cb; }
.footer-info a { color: #c9d2cb; text-decoration: underline; }
.footer-links { font-size: 12px; color: #8a958e; }
.footer-links a { color: #8a958e; text-decoration: underline; }
.footer-copy { font-size: 11px; color: #6c766f; }

/* ==========================================================================
   レスポンシブ
   ========================================================================== */
@media (max-width: 1100px) {
  .global-nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); background: #fff;
    border-bottom: 1px solid var(--border); flex-direction: column; align-items: flex-start;
    padding: 20px 24px 28px; gap: 20px; transform: translateY(-8px); opacity: 0;
    visibility: hidden; transition: var(--tr);
    overflow-y: auto; box-shadow: var(--shadow-md);
  }
  .global-nav.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
  .global-nav ul { flex-direction: column; align-items: flex-start; gap: 0; width: 100%; }
  .global-nav > ul li { width: 100%; }
  .global-nav > ul a { display: block; width: 100%; padding: 14px 4px; margin: 0; }
  .nav-cta { flex-direction: column; align-items: flex-start; width: 100%; }
  .nav-cta .btn { width: 100%; }
  .nav-toggle { display: flex; }
}

@media (max-width: 900px) {
  .hero-grid,
  .solution-top,
  .device-grid,
  .shop-cta { grid-template-columns: 1fr; }
  .shop-cta-copy, .shop-cta-visual { min-width: 0; }
  .problem-grid { grid-template-columns: repeat(2, 1fr); }
  .solution-features { grid-template-columns: repeat(2, 1fr); }
  .step-list { grid-template-columns: repeat(2, 1fr); }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .shop-cta-visual { order: -1; }
  .compare-scroll-hint { display: block; }
  .contact-form-wrap iframe { height: 2130px; }
}

@media (max-width: 640px) {
  .header-inner { padding: 12px 20px; }
  .section { padding: 72px 0; }
  .hero { padding: 48px 0 64px; }
  .problem-grid,
  .solution-features,
  .step-list,
  .related-grid { grid-template-columns: 1fr; }
  .shop-cta { padding: 40px 28px; border-radius: 16px; }
  .device-card { padding: 28px 22px; }
  .hero-actions .btn,
  .contact-actions .btn,
  .shop-cta-actions .btn { width: 100%; white-space: normal; text-align: center; }
}

@media (max-width: 380px) {
  .container { padding: 0 16px; }
}

/* ==========================================================================
   サンクスページ
   ========================================================================== */
.thanks-main { display: flex; align-items: center; justify-content: center; padding: 72px 24px; min-height: calc(100vh - var(--header-h)); }
.thanks-card { max-width: 440px; width: 100%; padding: 48px 36px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.thanks-icon {
  width: 72px; height: 72px; border-radius: 50%; background: var(--green-dark);
  display: flex; align-items: center; justify-content: center; margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(31, 94, 41, .3);
}
.thanks-title { font-size: 22px; font-weight: 700; line-height: 1.6; margin-bottom: 12px; }
.thanks-divider { width: 48px; height: 3px; background: var(--green-dark); border-radius: 2px; margin: 0 auto 20px; }
.thanks-desc { font-size: 14px; color: var(--ink-2); line-height: 2; margin-bottom: 28px; }
.thanks-next {
  background: var(--green-pale); border: 1px solid #a5d6a7; border-radius: 12px;
  padding: 20px 24px; width: 100%; text-align: left; margin-bottom: 28px;
}
.thanks-next-title { font-size: 11px; font-weight: 700; color: var(--green-dark); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.thanks-next ul { display: flex; flex-direction: column; gap: 6px; }
.thanks-next li { font-size: 13px; color: var(--ink-2); line-height: 1.8; padding-left: 20px; position: relative; }
.thanks-next li::before { content: '→'; position: absolute; left: 0; color: var(--green-dark); font-size: 12px; }
.thanks-notice {
  width: 100%; background: var(--bg-alt); border-left: 3px solid var(--border);
  border-radius: 6px; padding: 14px 16px; text-align: left; margin-top: 4px;
}
.thanks-notice p { font-size: 12px; color: var(--muted); line-height: 1.8; }
.thanks-notice p + p { margin-top: 8px; }
.thanks-notice strong { color: var(--ink-2); }
