/* 変数の定義 */
:root {
  --primary-color: #0056b3;
  --secondary-color: #e6f0fa;
  --accent-color: #ff7f50;
  --text-color: #333333;
  --text-light: #666666;
  --bg-color: #ffffff;
  --bg-light: #f8f9fa;
  --border-color: #dddddd;
}

/* リセット＆ベーススタイル */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  background-color: var(--bg-color);
}

a {
  text-decoration: none;
  color: var(--primary-color);
  transition: opacity 0.3s ease;
}

a:hover {
  opacity: 0.7;
}

ul {
  list-style: none;
}

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

/* レイアウト */
.container {
  width: 90%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 0;
}

.section-title {
  text-align: center;
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 30px;
  border-bottom: 2px solid var(--secondary-color);
  padding-bottom: 10px;
}

/* ヘッダー */
header {
  background-color: var(--bg-color);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo a {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--primary-color);
}

nav ul {
  display: flex;
  gap: 20px;
}

nav a {
  color: var(--text-color);
  font-weight: bold;
}

/* ヒーローセクション (Home) */
.hero {
  background-color: var(--primary-color);
  color: var(--bg-color);
  text-align: center;
  padding: 80px 5%;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 15px;
  line-height: 1.4;
}

.hero p {
  font-size: 1.1rem;
}

/* カードグリッド (共通) */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: var(--bg-light);
  padding: 25px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  text-align: center;
}

.card h3 {
  color: var(--primary-color);
  margin-bottom: 15px;
  font-size: 1.2rem;
}

/* コンバージョンエリア */
.cta-section {
  background-color: var(--secondary-color);
  text-align: center;
  padding: 50px 5%;
  margin-top: 40px;
}

.btn-primary {
  display: inline-block;
  background-color: var(--accent-color);
  color: #fff;
  font-size: 1.2rem;
  font-weight: bold;
  padding: 15px 40px;
  border-radius: 30px;
  margin-bottom: 20px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.btn-primary:hover {
  background-color: #e66a3d;
  color: #fff;
}

.tel-info {
  font-size: 1.2rem;
  font-weight: bold;
  color: var(--text-color);
}

.tel-number {
  font-size: 1.8rem;
  color: var(--primary-color);
  display: inline-block;
  margin-left: 10px;
}

/* テーブル (About) */
.company-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.company-table th, .company-table td {
  border: 1px solid var(--border-color);
  padding: 15px;
}

.company-table th {
  background-color: var(--secondary-color);
  width: 30%;
  text-align: left;
}

/* マッププレースホルダー */
.map-placeholder {
  width: 100%;
  height: 400px;
  background-color: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  border-radius: 4px;
  margin-top: 20px;
  border: 2px dashed #ccc;
}

/* 導入の流れ (Products) */
.step-list {
  max-width: 600px;
  margin: 0 auto;
}

.step-item {
  background: #fff;
  border: 2px solid var(--primary-color);
  padding: 15px 20px;
  margin-bottom: 15px;
  border-radius: 8px;
  position: relative;
  font-weight: bold;
}

.step-item::after {
  content: "▼";
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--primary-color);
}

.step-item:last-child::after {
  content: none;
}

/* フッター */
footer {
  background-color: var(--text-color);
  color: #fff;
  text-align: center;
  padding: 20px 0;
  font-size: 0.9rem;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    gap: 10px;
  }
  .hero h1 {
    font-size: 1.5rem;
  }
  .company-table th, .company-table td {
    display: block;
    width: 100%;
  }
  .tel-info {
    display: flex;
    flex-direction: column;
  }
}