/* ------------------------------
  共通リセット・調整
--------------------------------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


/* 下地（青色） */
.ambcall {
  content: "";
  color: #f7f2f2;
  left: 0;
  bottom: 0; /* 文字の下に配置 */
  width: 100%;
  height: 1.5em; /* 下地の高さ */
  background-color: #022446; /* 青色 */
  z-index: -1; /* 文字の後ろに */
  border-radius: 8px; /* 角丸にする場合 */
}


body {
  font-family: "ヒラギノ角ゴ Pro","Hiragino Kaku Gothic Pro","メイリオ",Meiryo,sans-serif;
  line-height: 1.6;
  color: #333;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;

}


/* ------------------------------
  セクションタイトル統一
--------------------------------- */
h2.section-title {
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 1.5rem;
}

/* ------------------------------
  features-grid
--------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* PC 4列 */
  gap: 2rem;
  margin-top: 2rem;
}
.first-view2{
  height: calc(90vh - 16px);
  background-image: url(../images/concept/アンビュランスコール.jpg);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  display: flex;
  align-items: center;
  background-size: 100%;
  
    
 
  }
.feature {
  background: #f1f1f1;
  padding: 1rem;
  border-radius: 8px;
}

.feature h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.feature p {
  margin: 0;
}

/* ------------------------------
  サービス概要画像
--------------------------------- */
.service-overview {
  margin: 3rem 0;
  text-align: center;
}

.service-overview .overview-image {
  width: 100%; /* スマホ：横幅いっぱい */
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
/* ------------------------------
  features-grid
--------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* PC 4列 */
  gap: 2rem;
  margin-top: 2rem;
}

.feature {
  background: #f1f1f1;
  padding: 1rem;
  border-radius: 8px;

  display: flex;
  flex-direction: column; /* h3とpを縦並びに固定 */
}

.feature h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.feature p {
  margin: 0;
  font-size: 1rem;
}

/* ------------------------------
  スマホ対応
--------------------------------- */
@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr; /* スマホは1列 */
    gap: 0.1rem;
  }

  .feature h3 {
    font-size: 1.1rem;
  }

  .feature p {
    font-size: 0.95rem;
  }
  .feature{
    margin-top: 10px;
  }
}




  .service-overview .overview-image {
    width: 50%;       /* PCは小さめ */
    max-width: 600px;
    display: block;
    margin: 0 auto;   /* 中央寄せ */
  }


/* ------------------------------
  pricingテーブル
--------------------------------- */
.pricing-grid {
  overflow-x: auto;
  margin-top: 2rem;
}

.price-table {
  min-width: 600px;
  width: 100%;
  border-collapse: collapse;
}

.price-table th{
  border: 2px solid #070707;
  padding: 0.5rem 1rem;
  text-align: center;
  background-color: #007bff;
  color: #f9f8f8;
}
.price-table td {
  border: 2px solid #070707;
  padding: 0.5rem 1rem;
  text-align: center;
}

.price-details {
  margin-top: 1.5rem;
}

.price-details h3,
.price-details h4 {
  margin-bottom: 0.5rem;
}

.price-details ul {
  list-style: disc inside;
  margin: 0.5rem 0 1rem 0;
  padding-left: 1rem;
}

.price-details p.muted.small {
  font-size: 0.875rem;
  color: #666;
}

/* ------------------------------
  contactフォーム
--------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}
section.container {
  max-width: 1200px;
  margin: 0 auto 3rem auto; /* 上下マージンを統一 */
  padding: 0 1rem; /* 左右パディングを統一 */
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.5rem;
  margin-top: 0.25rem;
  margin-bottom: 1rem;
}

.contact-form button {
  background-color: #007bff;
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.contact-form button:hover {
  background-color: #0056b3;
}

.contact-info h3 {
  margin-bottom: 0.5rem;
}

.contact-info p.big {
  font-size: 1.5rem;
  font-weight: bold;
}

/* ------------------------------
  hero-card
--------------------------------- */
.hero-card {
  background: #f9f9f9;
  padding: 1rem;
  border-radius: 8px;
}

/* ------------------------------
  背景セクション
--------------------------------- */
.background {
  text-align: left; /* 必要に応じて中央揃えも可能 */
  margin-top: 2rem;
}

/* ------------------------------
  footer
--------------------------------- */
.site-footer {
  background: #333;
  color: #fff;
  padding: 1.5rem 0;
  text-align: center;
}

.site-footer a {
  color: #fff;
  margin: 0 0.5rem;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* スマホスムーズスクロール */
}


/* ------------------------------
  スマホ対応
--------------------------------- */
@media (max-width: 768px) {
 
.features-grid {
    grid-template-columns: 1fr; /* 1列表示 */
    gap: 0rem; /* PCより狭めに調整 */
  }
  .contact-grid {
    grid-template-columns: 1fr; /* 縦並び */
  }

  .pricing-grid,
  .container {
    padding: 0 1rem;
    overflow-x: hidden;
    margin-top: -40px;
  }
.table-wrapper {
    width: 100%;
    margin-bottom: 1rem;
  }
  .site-header {
    margin-bottom: 25px;
  }
.service-overview .overview-image {
    width: 95%;       /* 少し大きめに */
    max-width: none;
  }
 .pricing-grid {
  overflow-x: auto;
  margin-top: 2rem;
} 
.ambcall {
  content: "";
  color: #f7f2f2;
  left: 0;
  bottom: 0; /* 文字の下に配置 */
  width: 105%;
  height: 3em; /* 下地の高さ */
  background-color: #022446; /* 青色 */
  z-index: -0; /* 文字の後ろに */
  border-radius: 6px; /* 角丸にする場合 */
  
}
.hero-text h1{
  font-size:larger;
  padding-bottom: 2rem; /* 下地と文字の間隔 */
}
.first-view2{
  
  background-image: url(../images/concept/アンビュランスコール.jpg);
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  display: flex;
  align-items: center;
  background-size: 100%;
  margin-top: -250px;
  margin-bottom: -180px;
    
 
  }
}
