/* 事業内容ページ用のスタイル */

/* service.html専用：main要素の上部マージンを削除 */
main {
  margin-top: 0 !important; /* service.htmlではmain要素の上部マージンを削除 */
}




.main_visual {
  position: relative;
  width: 100%;
  height: calc(100vh - 90px);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0 4% 8%; /* index.htmlと同じパディング */
}

.main_visual_text {
  text-align: center;
  z-index: 10;
  max-width: 800px;
  padding: 0 1rem;
}

.main_visual_text h1 {
  font-size: 3.5rem;
  font-weight: bold;
  margin-bottom: 10px;
  line-height: 1.2;
}

.main_visual_text p {
  font-size: 1.8rem;
  line-height: 1.5;
}

.main_visual_text_section_wrapper {
  background-color: #fff;
  padding: 10px 0 0 0; /* さらに縮小 */
  padding-bottom: 0 !important; /* タイトル部分の下部余白を完全に削除 */
  margin-bottom: 0; /* 余白削除 */
  text-align: center;
}

.subway_construction_section_wrapper {
  padding-top: 10px; /* さらに縮小 */
  padding-bottom: 0; /* 下部の80pxの余白を削除 */
  background-color: #fff;
}

.electrical_construction_section_wrapper {
  padding-top: 0; /* 上部の80pxの余白を削除 */
  padding-bottom: 0; /* 下部の80pxの余白を削除 */
  background-color: #f7f7f7;
}

.main_visual_heading {
  text-align: center;
  font-size: 3.5rem;
  font-weight: bold;
  color: #0C0C70;
  margin-bottom: 0; /* 余白を削除 */
}

.main_visual_subheading {
  font-size: 1.8rem;
  font-weight: bold;
  color: #000;
  margin-bottom: 0;
}

.section_wrapper {
  padding: 80px 0; /* 上下余白を追加（index.htmlと統一） */
}

.section_inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 1rem; /* 上下20px、左右1remのパディング */
}

/* タイトル部分のsection_innerの下部余白も削除 */
.main_visual_text_section_wrapper .section_inner {
  padding-bottom: 0;
}

.section_title {
  font-size: 2.5rem;
  color: #0C0C70;
  font-weight: bold;
  margin-bottom: 2rem;
  position: relative;
  padding-left: 20px;
  text-align: left;
}

.section_title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 40px;
  background-color: #e04040;
}

.section_subtitle {
  font-size: 1.5rem;
  color: #0C0C70;
  font-weight: bold;
  margin-bottom: 2rem;
  position: relative;
  padding-left: 20px;
  text-align: left;
}

.subway_construction_grid {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.subway_construction_content {
  flex: 1;
}

.subway_construction_text {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
}

.subway_construction_image {
  flex-shrink: 0;
  width: 500px;
}

.subway_construction_image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.electrical_construction_grid {
  display: flex;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.electrical_construction_image {
  flex-shrink: 0;
  width: 500px;
}

.electrical_construction_image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.electrical_construction_content {
  flex: 1;
}

.electrical_construction_text {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
}

.service {
  padding: 4rem 0;
  background: #fff;
}

.service_inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.service_title {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 3rem;
}

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

.service_list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  padding: 0;
  justify-content: center;
}

.service_item {
  width: 300px;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service_item:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.service_item_title {
  font-size: 1.5rem;
  color: #0C0C70;
  font-weight: bold;
  margin-bottom: 15px;
}

.service_item_text {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

/* PC版での高さとレイアウト統一 */
@media (min-width: 769px) {
  .main_visual {
    height: 600px;
    padding-left: 5%;
    padding-bottom: 0;
    align-items: flex-end;
  }
}

@media (max-width: 768px) {
  .main_visual_heading {
    font-size: 2.5rem; /* recruit_title、company_titleと統一 */
  }

  .service_title {
    font-size: 1.8rem;
  }

  .service_list {
    flex-direction: column;
    align-items: center;
  }

  .subway_construction_grid {
    flex-direction: column-reverse; /* 画像を先に */
  }

  .electrical_construction_grid {
    flex-direction: column;       /* 画像 → テキストの順 */
  }

  /* 画像コンテナの幅をモバイルでは自動に */
  .subway_construction_image,
  .electrical_construction_image {
    width: auto !important;
  }

  .subway_construction_image img,
  .electrical_construction_image img {
    width: 100%;
    height: auto;
  }

  .main_visual {
    height: calc(100vh - 90px); /* index.htmlと同じ高さに統一 */
    padding: 0 0 8% !important; /* 左右余白を除去 */
  }

  .main_visual_text_section_wrapper {
    padding: 20px 0 0 0; /* 余白を半減 */
  }
}

.example_heading {
  font-size: 1.8rem;
  color: #0C0C70;
  font-weight: bold;
  margin-top: 40px;
  margin-bottom: 20px;
  position: relative;
  padding-left: 20px;
}

.example_list {
  list-style: none;
  padding: 0;
  margin-bottom: 40px;
}

.example_list_item {
  font-size: 16px;
  color: #555;
  margin-bottom: 10px;
}

.service-section {
    padding: 80px 0;
    background-color: transparent; /* ここを透明に設定 */
    text-align: center;
}

.service-section h2 {
    font-size: 2.5rem;
    color: #0C0C70;
    font-weight: bold;
    margin-bottom: 20px;
    position: relative;
    display: inline-block;
}

.service-section h2::before {
    content: '';
    position: absolute;
    left: -28px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 40px;
    background-color: #e04040;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1000px;
    margin: 40px auto 0;
}

.service-card {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-card h3 {
    font-size: 1.8rem;
    color: #0C0C70;
    margin-bottom: 15px;
    font-weight: bold;
}

.service-card p {
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}

.service-icon {
    font-size: 3rem;
    color: #0C0C70;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .service-section {
        padding: 40px 0;
    }

    .service-section h2 {
        font-size: 2rem;
    }

    .service-grid {
        grid-template-columns: 1fr;
        margin-top: 20px;
    }
} 