/* Motors TM Consulting - Global Styles */
:root {
  --navy: #1a237e;
  --navy-mid: #0d47a1;
  --navy-light: #1565c0;
  --navy-pale: #e3f2fd;
  --orange: #ff6f00;
  --orange-light: #fff3e0;
  --white: #ffffff;
  --gray-light: #f5f5f5;
  --gray: #757575;
  --text: #212121;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Hiragino Sans', 'Noto Sans JP', 'Yu Gothic', 'Meiryo', sans-serif;
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; height: auto; }

/* ===== HEADER ===== */
header {
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  padding: 0 40px;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.site-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.03em;
  line-height: 1.3;
}

.site-title span {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  opacity: 0.85;
  letter-spacing: 0.05em;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 8px;
}

nav ul li a {
  color: rgba(255,255,255,0.9);
  padding: 8px 14px;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
}

nav ul li a:hover,
nav ul li a.active {
  background: rgba(255,255,255,0.15);
  color: var(--white);
}

/* ===== HAMBURGER ===== */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 50%, var(--navy-light) 100%);
  color: var(--white);
  padding: 100px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,111,0,0.2);
  border: 1px solid rgba(255,111,0,0.5);
  color: #ffcc80;
  font-size: 0.85rem;
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 24px;
  letter-spacing: 0.1em;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.4;
  margin-bottom: 24px;
}

.hero h1 em {
  font-style: normal;
  color: #ffcc80;
}

.hero p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 680px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--orange);
  color: var(--white);
  padding: 16px 36px;
  border-radius: 50px;
  font-size: 1.05rem;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(255,111,0,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255,111,0,0.5);
}

.hero-cta::after { content: '→'; }

/* ===== SECTION COMMON ===== */
section { padding: 80px 40px; }

.section-inner { max-width: 1100px; margin: 0 auto; }

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--navy-mid);
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 16px;
  line-height: 1.4;
}

.section-desc {
  color: var(--gray);
  font-size: 1rem;
  max-width: 680px;
  margin-bottom: 48px;
  line-height: 1.8;
}

/* ===== STRENGTHS GRID ===== */
.strengths-section { background: var(--gray-light); }

.strengths-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.strength-card {
  background: var(--white);
  border-radius: 12px;
  padding: 32px 24px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06);
  border-top: 4px solid var(--navy-mid);
  transition: transform 0.2s, box-shadow 0.2s;
}

.strength-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.strength-card .icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.strength-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
  line-height: 1.4;
}

.strength-card p {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.7;
}

/* ===== CUSTOMERS SECTION ===== */
.customers-section {
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  color: var(--white);
}

.customers-section .section-title { color: var(--white); }
.customers-section .section-label { color: #90caf9; }
.customers-section .section-desc { color: rgba(255,255,255,0.8); }

.customers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.customer-item {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.customer-item .icon { font-size: 1.8rem; }

.customer-item p {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
}

/* ===== CTA SECTION ===== */
.cta-section { background: var(--orange-light); text-align: center; }

.cta-section .section-title { color: #e65100; }

.cta-section .section-desc { margin: 0 auto 32px; }

.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--orange);
  color: var(--white);
  padding: 18px 44px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(255,111,0,0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255,111,0,0.5);
}

.cta-btn::after { content: '→'; }

/* ===== SERVICES PAGE ===== */
.service-list { display: flex; flex-direction: column; gap: 32px; }

.service-item {
  background: var(--white);
  border-radius: 12px;
  padding: 36px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  display: flex;
  gap: 28px;
  align-items: flex-start;
  border-left: 5px solid var(--navy-mid);
}

.service-item .icon {
  font-size: 2.5rem;
  flex-shrink: 0;
  width: 60px;
  text-align: center;
}

.service-item h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.service-item p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.8;
}

.service-item ul {
  margin-top: 12px;
  padding-left: 20px;
  color: var(--gray);
  font-size: 0.9rem;
}

.service-item ul li { margin-bottom: 6px; }

/* ===== PROFILE PAGE ===== */
.timeline { position: relative; padding-left: 30px; }

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--navy-mid), var(--navy-light));
  border-radius: 3px;
}

.timeline-item {
  position: relative;
  margin-bottom: 40px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -37px;
  top: 6px;
  width: 14px;
  height: 14px;
  background: var(--navy-mid);
  border-radius: 50%;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--navy-mid);
}

.timeline-year {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy-mid);
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}

.timeline-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.timeline-desc {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.7;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.cert-card {
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  color: var(--white);
  border-radius: 12px;
  padding: 28px 24px;
  text-align: center;
}

.cert-card .icon { font-size: 2rem; margin-bottom: 12px; }

.cert-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.4;
}

.cert-card p {
  font-size: 0.8rem;
  opacity: 0.8;
  margin-top: 6px;
}

/* ===== CONTACT PAGE ===== */
.flow-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0;
  margin-bottom: 60px;
  position: relative;
}

.flow-step {
  text-align: center;
  padding: 24px 16px;
  position: relative;
}

.flow-step:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--navy-light);
  font-weight: 700;
}

.flow-step .step-num {
  width: 40px;
  height: 40px;
  background: var(--navy-mid);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  margin: 0 auto 12px;
}

.flow-step h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.flow-step p {
  font-size: 0.82rem;
  color: var(--gray);
  line-height: 1.5;
}

.contact-form {
  background: var(--white);
  border-radius: 16px;
  padding: 48px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  max-width: 700px;
  margin: 0 auto;
}

.form-group { margin-bottom: 24px; }

.form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.form-group label .required {
  color: #e53935;
  margin-left: 4px;
  font-size: 0.8rem;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  transition: border-color 0.2s;
  background: #fafafa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy-light);
  background: var(--white);
}

.form-group textarea { resize: vertical; min-height: 140px; }

.form-submit {
  width: 100%;
  background: var(--orange);
  color: var(--white);
  border: none;
  padding: 16px;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, transform 0.2s;
}

.form-submit:hover {
  background: #e65100;
  transform: translateY(-1px);
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--navy-pale);
  border-radius: 10px;
  padding: 18px 20px;
}

.contact-info-item .icon { font-size: 1.6rem; }

.contact-info-item div p:first-child {
  font-size: 0.78rem;
  color: var(--navy-mid);
  font-weight: 600;
  margin-bottom: 2px;
}

.contact-info-item div p:last-child {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  color: var(--white);
  padding: 60px 40px;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.page-hero p {
  font-size: 1rem;
  opacity: 0.85;
}

/* ===== FOOTER ===== */
footer {
  background: #0d1b3e;
  color: rgba(255,255,255,0.7);
  padding: 48px 40px 24px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.footer-brand .site-title { color: var(--white); font-size: 1rem; }
.footer-brand p { font-size: 0.85rem; margin-top: 8px; line-height: 1.6; }

.footer-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-nav ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
}

.footer-nav ul li a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  font-size: 0.8rem;
  text-align: center;
  color: rgba(255,255,255,0.5);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  header { padding: 0 20px; }

  nav { display: none; }
  nav.open { display: block; position: absolute; top: 70px; left: 0; right: 0; background: var(--navy-mid); padding: 16px 20px; }
  nav.open ul { flex-direction: column; gap: 4px; }
  nav.open ul li a { display: block; padding: 12px 16px; }

  .menu-toggle { display: flex; }

  .hero { padding: 60px 20px; }
  section { padding: 60px 20px; }
  .page-hero { padding: 40px 20px; }

  .service-item { flex-direction: column; gap: 16px; }

  .flow-step:not(:last-child)::after { display: none; }
  .flow-steps { gap: 16px; }

  .contact-form { padding: 28px 20px; }

  footer { padding: 40px 20px 20px; }
  .footer-top { flex-direction: column; gap: 24px; }
}
