/* ============================================================
   Jam Motors — スタイルシート
   色やフォントを変えたいときは、まず下の :root の変数を編集
   ============================================================ */

:root {
  --navy:      #0e1b33;   /* メインの濃紺 */
  --navy-2:    #16264a;   /* 少し明るい紺 */
  --accent:    #ff5a1f;   /* アクセントのオレンジ */
  --accent-2:  #ff7a45;
  --ink:       #1a2233;   /* 本文の文字色 */
  --muted:     #5b667a;   /* 補足テキスト */
  --line:      #e5e8ef;   /* 罫線 */
  --bg:        #ffffff;
  --bg-alt:    #f5f7fb;   /* 交互に敷く背景 */
  --radius:    16px;
  --maxw:      1080px;
  --shadow:    0 10px 30px rgba(14, 27, 51, 0.08);
}

/* ---------- リセット ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Noto Sans JP", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---------- ボタン ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-lg { padding: 18px 36px; font-size: 1.05rem; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 8px 20px rgba(255, 90, 31, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(255, 90, 31, 0.45); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.16); transform: translateY(-2px); }

/* コントラスト調整：明るい背景セクション内の ghost ボタン */
.contact .btn-ghost { color: var(--navy); border-color: var(--navy); background: transparent; }
.contact .btn-ghost:hover { background: rgba(14, 27, 51, 0.06); }

/* ---------- ヘッダー ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 27, 51, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo { display: flex; align-items: baseline; gap: 6px; color: #fff; }
.logo-mark {
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.logo-text {
  font-family: "Montserrat", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.18em;
}
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: rgba(255, 255, 255, 0.85); font-size: 0.92rem; font-weight: 500; transition: color 0.15s; }
.nav a:hover { color: #fff; }
.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 9px 20px;
  border-radius: 999px;
  font-weight: 700;
}
.nav-cta:hover { background: var(--accent-2); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: #fff; transition: 0.2s; }

/* ---------- ヒーロー ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  overflow: hidden;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(255, 90, 31, 0.22), transparent 60%),
    radial-gradient(700px 500px at 0% 120%, rgba(80, 130, 255, 0.16), transparent 60%);
  pointer-events: none;
}
.hero-content { position: relative; padding-block: 80px; color: #fff; }
.hero-tag {
  font-family: "Montserrat", sans-serif;
  letter-spacing: 0.24em;
  font-size: 0.82rem;
  color: var(--accent-2);
  margin-bottom: 18px;
  text-transform: uppercase;
}
.hero-title {
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  font-weight: 900;
  line-height: 1.3;
  letter-spacing: 0.01em;
}
.hero-lead {
  margin-top: 22px;
  font-size: clamp(0.98rem, 1.6vw, 1.12rem);
  color: rgba(255, 255, 255, 0.86);
  max-width: 40ch;
}
.hero-actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- セクション共通 ---------- */
.section { padding-block: clamp(64px, 9vw, 110px); }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(36px, 5vw, 56px); }
.section-label {
  font-family: "Montserrat", sans-serif;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  font-weight: 900;
  color: var(--navy);
}
.section-desc { margin-top: 14px; color: var(--muted); }

/* ---------- サービスカード ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 30px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(14, 27, 51, 0.12); }
.card-icon {
  width: 64px; height: 64px;
  display: grid; place-items: center;
  font-size: 1.9rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255,90,31,0.12), rgba(255,122,69,0.12));
  margin-bottom: 20px;
}
.card-title { font-size: 1.25rem; font-weight: 700; color: var(--navy); margin-bottom: 12px; }
.card-text { color: var(--muted); font-size: 0.96rem; }

/* ---------- 選ばれる理由 ---------- */
.reasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.reason { padding: 10px 6px; }
.reason-num {
  font-family: "Montserrat", sans-serif;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--accent);
  opacity: 0.85;
}
.reason-title { font-size: 1.18rem; font-weight: 700; color: var(--navy); margin: 8px 0 10px; }
.reason-text { color: var(--muted); font-size: 0.96rem; }

/* ---------- ご利用の流れ ---------- */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.flow-step {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 22px;
  text-align: center;
}
.flow-num {
  display: inline-grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-family: "Montserrat", sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 16px;
}
.flow-title { font-size: 1.06rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.flow-text { color: var(--muted); font-size: 0.9rem; }

/* ---------- 会社概要 ---------- */
.company-table {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
  border-collapse: collapse;
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.company-table th, .company-table td {
  text-align: left;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  font-size: 0.98rem;
}
.company-table tr:last-child th, .company-table tr:last-child td { border-bottom: 0; }
.company-table th {
  width: 34%;
  background: var(--bg-alt);
  color: var(--navy);
  font-weight: 700;
  white-space: nowrap;
}

/* ---------- お問い合わせ ---------- */
.contact { text-align: center; }
.contact-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- フッター ---------- */
.site-footer { background: var(--navy); color: #fff; padding-block: 40px; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.logo-footer { opacity: 0.95; }
.copyright { color: rgba(255, 255, 255, 0.6); font-size: 0.85rem; }

/* ============================================================
   レスポンシブ（スマホ・タブレット）
   ============================================================ */
@media (max-width: 860px) {
  .cards, .reasons { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .flow { grid-template-columns: repeat(2, 1fr); }

  .nav {
    position: fixed;
    inset: 68px 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: var(--navy);
    padding: 8px 0 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateY(-120%);
    transition: transform 0.25s ease;
  }
  .nav.open { transform: translateY(0); }
  .nav a { width: 100%; text-align: center; padding: 14px 0; }
  .nav-cta { border-radius: 0; margin-top: 8px; }
  .nav-toggle { display: flex; }
}

@media (max-width: 480px) {
  .flow { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; }
  .company-table th { width: 40%; padding: 14px 16px; }
  .company-table td { padding: 14px 16px; }
  .btn { width: 100%; }
  .hero-actions .btn { width: auto; }
}

/* アニメーションを抑制する設定のユーザーに配慮 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
