/* ========== first.html 固有スタイル ========== */

/* セクション共通ラッパー */
.first-content-section {
  margin-bottom: 4rem;
}
.first-content-section:last-child {
  margin-bottom: 0;
}

/* ========== 症状ピクトグラム ========== */
.symptoms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.2rem;
}

.symptom-card {
  background: var(--bg);
  border-radius: 16px;
  padding: 1.2rem;
  text-align: center;
  border: 1px solid var(--border);
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.symptom-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--accent2);
}

.symptom-card img {
  width: auto;
  max-width: 100%;
  height: 150px; /* 幅に応じて伸縮しないよう高さ固定 */
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

/* ========== 交通事故・労災 ========== */
.accident-info-section {
  background: linear-gradient(135deg, var(--accent), #dff0fc);
  border: 1px solid var(--accent2);
  border-radius: 20px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.accident-info-header {
  text-align: left;
}

.accident-info-header .section-divider {
  margin-left: 0;
}

.accident-item {
  display: flex;
  gap: 1.3rem;
  align-items: flex-start;
}

.accident-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(26, 111, 160, 0.25);
}

.accident-body h3 {
  font-family: "Shippori Mincho", serif;
  font-size: 1.05rem;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
}

.accident-body p {
  font-size: 0.87rem;
  color: var(--text);
  line-height: 1.9;
}

.accident-body strong {
  color: var(--primary-dark);
}

.accident-divider {
  border: none;
  border-top: 1px dashed var(--accent2);
  margin: 0;
}

/* ========== アクセス・診療時間 ========== */
.access-hours-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

/* ========== CTA ========== */
.first-cta-box {
  text-align: center;
  background: var(--bg);
  border-radius: 20px;
  padding: 3rem 2rem;
  border: 1px solid var(--border);
}

.first-cta-box h3 {
  font-family: "Shippori Mincho", serif;
  font-size: 1.4rem;
  color: var(--primary-dark);
  margin-bottom: 0.7rem;
}

.first-cta-box p {
  font-size: 0.9rem;
  color: var(--text-light);
  margin-bottom: 1.8rem;
  line-height: 1.9;
}

.first-cta-tel-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  color: white;
  text-decoration: none;
  padding: 0.95rem 2.3rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.92rem;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(26, 111, 160, 0.3);
}

.first-cta-tel-btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 111, 160, 0.4);
}

.first-cta-web-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #d32f2f;
  color: white;
  text-decoration: none;
  padding: 0.95rem 2.3rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.92rem;
  transition: all 0.3s;
  box-shadow: 0 4px 16px rgba(211, 47, 47, 0.3);
}

.first-cta-web-btn:hover {
  background: #b71c1c;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(211, 47, 47, 0.4);
}

/* ========== レスポンシブ ========== */
@media (max-width: 768px) {
  .access-hours-grid {
    grid-template-columns: 1fr;
  }

  .accident-info-section {
    padding: 1.8rem 1.3rem;
  }

  .accident-icon {
    width: 46px;
    height: 46px;
    font-size: 1.3rem;
  }

  .first-cta-box {
    padding: 2rem 1.3rem;
  }
}

/* 症状グリッドはスマホでも2列を維持 */
@media (max-width: 600px) {
  .symptoms-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .symptom-card {
    padding: 0.8rem;
  }

  .symptom-card img {
    height: 120px;
  }
}

@media (max-width: 500px) {
  .first-cta-tel-btn,
  .first-cta-web-btn {
    width: 100%;
    justify-content: center;
  }
}
