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

:root {
  --primary-color: #2c5aa0;
  --secondary-color: #f39c12;
  --accent-color: #e74c3c;
  --text-dark: #2c3e50;
  --text-light: #7f8c8d;
  --bg-light: #ecf0f1;
  --border-color: #bdc3c7;
  --success-color: #27ae60;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  font-size: 16px;
}

/* ヘッダー・ナビゲーション */
header {
  background-color: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-top {
  background-color: var(--primary-color);
  color: white;
  padding: 8px 0;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
}

.header-phone {
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-phone::before {
  content: '☎ ';
  margin-right: 8px;
}

nav {
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 24px;
  font-weight: bold;
  color: var(--primary-color);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--secondary-color);
}

/* コンテナ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.section {
  padding: 3rem 0;
}

.section-title {
  font-size: 32px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--primary-color);
}

/* ボタン */
.btn {
  display: inline-block;
  padding: 12px 24px;
  text-decoration: none;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  text-align: center;
}

.btn-primary {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover {
  background-color: #1f3a66;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: white;
}

.btn-secondary:hover {
  background-color: #e67e22;
}

.btn-danger {
  background-color: var(--accent-color);
  color: white;
}

.btn-danger:hover {
  background-color: #c0392b;
}

.btn-success {
  background-color: var(--success-color);
  color: white;
}

.btn-success:hover {
  background-color: #229954;
}

.btn-block {
  display: block;
  width: 100%;
}

/* ヒーロー セクション */
.hero {
  background: linear-gradient(135deg, var(--primary-color), #1f3a66);
  color: white;
  padding: 4rem 0;
  text-align: center;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 20px;
  margin-bottom: 2rem;
}

/* カード */
.card {
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.card-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 1rem;
  color: var(--primary-color);
}

.card-text {
  font-size: 14px;
  line-height: 1.8;
}

/* グリッド */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

/* テーブル */
table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
}

thead {
  background-color: var(--primary-color);
  color: white;
}

th, td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

tbody tr:hover {
  background-color: #f5f5f5;
}

/* フォーム */
.form-group {
  margin-bottom: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 16px;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="date"],
select,
textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 16px;
  font-family: inherit;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

/* バッジ */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  margin-right: 8px;
}

.badge-primary {
  background-color: #d4e6f1;
  color: var(--primary-color);
}

.badge-success {
  background-color: #d5f4e6;
  color: var(--success-color);
}

.badge-warning {
  background-color: #fdebd0;
  color: #f39c12;
}

.badge-danger {
  background-color: #fadbd8;
  color: var(--accent-color);
}

/* タイムライン */
.timeline {
  position: relative;
  padding: 20px 0;
}

.timeline-item {
  display: flex;
  margin-bottom: 2rem;
  position: relative;
}

.timeline-marker {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--bg-light);
  border: 3px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  margin-right: 1.5rem;
  flex-shrink: 0;
  z-index: 1;
}

.timeline-item.active .timeline-marker {
  background-color: var(--success-color);
  border-color: var(--success-color);
  color: white;
}

.timeline-item.pending .timeline-marker {
  background-color: var(--warning-color);
  border-color: var(--warning-color);
  color: white;
}

.timeline-content {
  flex: 1;
}

.timeline-content h3 {
  margin-bottom: 0.5rem;
  color: var(--primary-color);
}

.timeline-content p {
  color: var(--text-light);
}

/* 比較スライダー */
.comparison-slider {
  position: relative;
  max-width: 100%;
  width: 100%;
  aspect-ratio: 1024 / 673;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 2rem;
}

.comparison-slider img {
  display: block;
  width: 100%;
  height: auto;
}

.comparison-slider-before {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.comparison-slider-before img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comparison-slider-handle {
  position: absolute;
  top: 0;
  left: 50%;
  width: 4px;
  height: 100%;
  background-color: white;
  cursor: col-resize;
  transform: translateX(-50%);
}

.comparison-slider-handle::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50px;
  height: 50px;
  background-color: rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

/* フッター */
footer {
  background-color: var(--text-dark);
  color: white;
  padding: 3rem 0;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h3 {
  margin-bottom: 1rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 0.5rem;
}

.footer-section a {
  color: #ecf0f1;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: var(--secondary-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 2rem;
  text-align: center;
  color: #95a5a6;
}

/* レスポンシブ */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 32px;
  }

  .hero p {
    font-size: 18px;
  }

  .section-title {
    font-size: 24px;
  }

  .nav-links {
    gap: 1rem;
    font-size: 14px;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  nav {
    flex-direction: column;
    gap: 1rem;
  }

  body {
    font-size: 14px;
  }

  label {
    font-size: 14px;
  }

  input,
  select,
  textarea {
    font-size: 14px;
  }
}

/* ユーティリティ */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.hidden {
  display: none;
}

.alert {
  padding: 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.alert-success {
  background-color: #d5f4e6;
  color: var(--success-color);
  border-left: 4px solid var(--success-color);
}

.alert-error {
  background-color: #fadbd8;
  color: var(--accent-color);
  border-left: 4px solid var(--accent-color);
}

.alert-warning {
  background-color: #fdebd0;
  color: #f39c12;
  border-left: 4px solid #f39c12;
}
