/* ============================================
   DISTRIBUTOR SECTION - レスポンシブスタイル
   ============================================ */

#distributor {
  padding: 60px 20px;
  background: #f8f9fa;
}

#distributor h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 50px;
  color: #333;
  font-weight: bold;
}

/* グリッドレイアウト */
.distributor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

/* カードデザイン */
.distributor-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

/* フラッグエリア */
.distributor-flag {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 120px;
}

.distributor-flag img {
  max-width: 80px;
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.2));
}

/* 情報エリア */
.distributor-info {
  padding: 25px;
  flex-grow: 1;
}

.distributor-country {
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
  margin: 0 0 8px 0;
  letter-spacing: 1px;
}

.distributor-company {
  font-size: 1.1rem;
  color: #667eea;
  font-weight: 600;
  margin: 0 0 20px 0;
  padding-bottom: 15px;
  border-bottom: 2px solid #e9ecef;
}

.distributor-details {
  line-height: 1.8;
}

.distributor-details p {
  margin: 8px 0;
  color: #555;
  font-size: 0.95rem;
}

.distributor-details strong {
  display: inline-block;
  min-width: 110px;
  color: #333;
  font-weight: 600;
}

.distributor-details a {
  color: #667eea;
  text-decoration: none;
  transition: color 0.3s ease;
}

.distributor-details a:hover {
  color: #764ba2;
  text-decoration: underline;
}

/* ============================================
   レスポンシブ対応
   ============================================ */

/* タブレット */
@media screen and (max-width: 1024px) {
  #distributor h2 {
    font-size: 2rem;
    margin-bottom: 40px;
  }

  .distributor-grid {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
  }
}

/* スマートフォン（横向き） */
@media screen and (max-width: 768px) {
  #distributor {
    padding: 40px 15px;
  }

  #distributor h2 {
    font-size: 1.8rem;
    margin-bottom: 30px;
  }

  .distributor-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 10px;
  }

  .distributor-flag {
    padding: 25px;
    min-height: 100px;
  }

  .distributor-flag img {
    max-width: 60px;
  }

  .distributor-info {
    padding: 20px;
  }

  .distributor-country {
    font-size: 1.3rem;
  }

  .distributor-company {
    font-size: 1rem;
  }

  .distributor-details strong {
    display: block;
    margin-bottom: 2px;
    min-width: auto;
  }
}

/* スマートフォン（小型） */
@media screen and (max-width: 480px) {
  #distributor {
    padding: 30px 10px;
  }

  #distributor h2 {
    font-size: 1.5rem;
    margin-bottom: 25px;
  }

  .distributor-card {
    border-radius: 8px;
  }

  .distributor-flag {
    padding: 20px;
    min-height: 80px;
  }

  .distributor-flag img {
    max-width: 50px;
  }

  .distributor-info {
    padding: 15px;
  }

  .distributor-country {
    font-size: 1.2rem;
  }

  .distributor-company {
    font-size: 0.95rem;
    margin-bottom: 15px;
    padding-bottom: 12px;
  }

  .distributor-details p {
    font-size: 0.9rem;
    margin: 6px 0;
  }
}

/* ダークモード対応（オプション） */
@media (prefers-color-scheme: dark) {
  #distributor {
    background: #1a1a1a;
  }

  .distributor-card {
    background: #2d2d2d;
  }

  #distributor h2,
  .distributor-country {
    color: #fff;
  }

  .distributor-details p {
    color: #ccc;
  }

  .distributor-details strong {
    color: #fff;
  }

  .distributor-company {
    border-bottom-color: #444;
  }
}
