html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: 'Poppins', 'Noto Sans JP', sans-serif;
  background: #fff;
  color: #333;
}

 /* ===== ヘッダー ===== */
 header {
   display: flex;
   align-items: center;
   padding: 15px 20px;
   background: rgba(255, 255, 255, 0.95);
   box-shadow: 0 2px 8px rgba(0,0,0,0.1);
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   z-index: 999;
     box-sizing: border-box;
 }
 header h1 {
   font-size: 1.2rem;
   color: #009e60;
   margin: 0;
   white-space: nowrap;
   margin-right: 40px;
 }
  
 header h1 a {
   color: inherit;        /* ← 親の色を使う */
   text-decoration: none; /* ← 下線消す */
 }
  
 /* ロゴ＋社名を横並び */
 .header-logo {
   display: flex;
   align-items: center;
   gap: 12px;
     min-width: 0;
 }
  
 /* ロゴサイズ */
 .header-logo img {
   height: 40px;   /* ← 基本サイズ */
   width: auto;
 }
 
 @media (max-width: 600px) {
  header h1 {
    font-size: 0.9rem;
    white-space: normal; /* ← 改行許可 */
    line-height: 1.2;
  }

  .header-logo img {
    height: 30px; /* ロゴも少し小さく */
  }
}
  
 /* ===== ナビ全体 ===== */
nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
/* 各メニュー */
nav ul li {
  position: relative;
}

/* メニューリンク */
nav ul li a {
  display: block;
  padding: 15px 18px;
  white-space: nowrap;
  text-decoration: none;
  color: #333;
  font-weight: 600; /* ← これ追加 */
  position: relative;
}

nav ul li a:hover {
  color: #009e60;
}

nav ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 5px;
  width: 0%;
  height: 2px;
  background: #009e60;
  transition: 0.3s;
}

nav ul li a:hover::after {
  width: 100%;
}
/* ===== ドロップダウン ===== */
.dropdown-menu {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  display: none; /* ← 初期は非表示 */
  z-index: 999;
  pointer-events: auto;  /* これで高さ影響を完全遮断 */
}

/* 中のリンク */
.dropdown-menu a {
  display: block;
  padding: 12px 16px;
  color: #333;
  text-decoration: none; /* ← 下線消す */
  transition: 0.3s;
}
 /* hover時 */
.dropdown:hover .dropdown-menu,
.dropdown-menu:hover {
  display: block;
}
 
   /* 下線アニメーション消す */
.dropdown-menu a::after {
    display: none;
  }
  
/* ホバー統一 */
.dropdown-menu a:hover {
  background: #009e60;
  color: #fff;
}

 /* ===== ハンバーガーアイコン ===== */
 .menu-toggle {
   display: none;
   flex-direction: column;
   cursor: pointer;
   gap: 6px;
   margin-left: auto;
   margin-right: 15px;
   z-index: 1000;
     margin-left: auto; /* ← これで右に固定 */
 }
 .menu-toggle span {
   display: block;
   width: 25px;
   height: 3px;
   background: #333;
   border-radius: 3px;
   transition: transform 0.4s ease, opacity 0.3s ease;
   transform-origin: center;
  
 }
 /* ☰ → × */
 .menu-toggle.active span:nth-child(1) {
   transform: translateY(9px) rotate(45deg);
 }
 .menu-toggle.active span:nth-child(2) {
   opacity: 0;
 }
 .menu-toggle.active span:nth-child(3) {
   transform: translateY(-9px) rotate(-45deg);
 }
  



  @media (min-width: 1101px) {
  .dropdown:hover .dropdown-menu,
  .dropdown-menu:hover {
    display: block;
  }
}
 /* ===== スマホ用ナビ ===== */
 @media (max-width: 1100px) {
   header {
     justify-content: space-between;
   }
   nav {
     display: none;
     flex-direction: column;
     position: absolute;
     top: 60px;
    left: 0;   /* ← 追加 */
    right: 0;  /* ← 追加 */
     width: 100%;
     background: rgba(255, 255, 255, 0.95);
     box-shadow: 0 4px 12px rgba(0,0,0,0.1);
     padding: 20px 0;
     box-sizing: border-box;
     z-index: 998;
   }
   nav.show {
     display: flex;
   }
   nav a {
     padding: 20px 0;
     font-size: 1rem;
     text-align: center;
     color: #009e60;
     transition: all 0.3s ease;
     border-radius: 6px;
   }
   nav a:hover {
     background-color: #009e60;
     color: #fff;
   }
  /* タップ時：緑背景＋白文字 */
  nav ul li a:active,
  nav ul li a:hover {
    right: 0;
    background: #009e60;
    color: #fff;
    border-radius: 6px;
  }
  /* 下線アニメーション消す */
  nav ul li a::after {
    display: none;
  }

   nav ul {
    flex-direction: column;
    width: 100%;
    margin: 0;
    padding: 0;
  }
   nav ul li {
    width: 100%;
  }

  nav ul li a {
    padding: 15px 20px;
    border-bottom:none;
        width: 100%;
            display: block;
                box-sizing: border-box;

  }


  /* ドロップダウンを普通のリスト化 */
  .dropdown-menu {
    position: static;
    display: none;
    opacity: 1;
    transform: none;
      background: #f5f5f5;
  margin-top: 5px;
  border-radius: 6px;
    top: 100%;
      margin-top: 0; /* ← これ重要 */
          pointer-events: auto;
  }
 
 .dropdown > a {
  font-weight: bold;
}
  .dropdown.open .dropdown-menu {
    display: block;
  }

  .dropdown-menu a {
    padding-left: 25px;
    font-size: 0.95rem;
  }

 
  /* ハンバーガー表示 */

   .menu-toggle {
     display: flex;
      margin-right: 0px; /* 右端から少し内側に */
   }
 .dropdown {
     position: static;
     box-shadow: none;
     opacity: 1;
     transform: none;
     display: block;
     padding: 0;
   }
  
   .nav-item.active .dropdown {
     display: block;
   }
  
  .dropdown:hover .dropdown-menu {
    display: none !important;
}
 }
/* ===== セクション共通 ===== */
/* ===== 親要素の左右paddingを統一 ===== */
section {
  padding-left: 8%;
  padding-right: 8%;


}
.full-screen-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  text-align: center;
}

.hero-sub {
  height: 100vh;
  margin-left: calc(-50vw + 50%);
  height: 400px;
  background: url('Equipment.jpg') center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #fff;
  text-align: center;
  position: relative;
}


    .hero-sub h2 {
      font-size: 2.8rem;
      margin-bottom: 10px;
      text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.6);
    }

    .hero-sub p {
      font-size: 1.1rem;
      text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
    }

    section {
      margin-top: 60px;
    }

/* ===== 見出し（h3）を完全左揃えに統一 ===== */
h3 {
  color: #009e60;
  font-size: 1.8rem;
  margin-top: 60px;
  margin-bottom: 25px;
  position: relative;
  text-align: left;
  font-weight: 600;
  padding-left: 0;   /* ← 念のためリセット */
  margin-left: 0;    /* ← 念のためリセット */
}
    h3::after {
  content: "";
  position: absolute;
  left: 0;                /* ← 左端スタート */
  bottom: -8px;
  width: 60px;
  height: 3px;
  background: #009e60;
  border-radius: 3px;
}

/* ===== パンくず（左寄せ・統一版） ===== */
.breadcrumb {
  padding: 8px 3%;
  font-size: 0.9rem;
  background: #fff;
  margin-top: 10px;
  font-weight: 500;
}

.breadcrumb nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.breadcrumb a,
.breadcrumb span {
  white-space: nowrap;
}

.breadcrumb a {
  color: #777;
  text-decoration: none;
  font-size: inherit;
}

.breadcrumb a:hover {
  color: #009e60;
}

.breadcrumb-current {
  color: #009e60;
}





/* ===== 特殊セクション（CTA・Heroなど）の左位置を合わせる ===== */
.cta,
.hero-sub {
  padding-left: 8% !important;
  padding-right: 8% !important;
  text-align: left !important;
}

.cta h3,
.hero-sub h3 {
  margin-left: 0 !important;
  padding-left: 0 !important;
  text-align: left !important;
}

.cta h3::after,
.hero-sub h3::after {
  left: 0 !important;
  transform: none !important;
}
    .overview p {
      font-size: 1rem;
      line-height: 1.8;
    }


/* ===== 対象サービス ===== */

.services {
  padding: 80px 8%;
  background: #f9f9f9;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.card {
  display: flex;
  flex-direction: column;
  background: #e6f5ec;
  border: 2px solid #b3e0cc;
  border-radius: 8px;
  box-shadow: 0 6px 12px rgba(0, 158, 96, 0.1);
  overflow: hidden;
  text-decoration: none;
  color: #004d26;
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0, 158, 96, 0.15);
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

   .card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-content h4 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  color: #009e60;
}

.card-content p {
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

    .card-content a {
      display: inline-block;
      background: #009e60;
      color: #fff;
      padding: 10px 24px;
      border-radius: 4px;
      text-decoration: none;
      font-weight: 600;
      transition: background 0.3s;
    }

    .card-content a:hover {
      background: #00cc77;
    }
.card-link {
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s;
}

.card-link:hover {
  transform: translateY(-6px);
}


  


/* ===== フローチャートセクション ===== */
.flow-section {
  padding: 80px 8%;
  background: #ffffff;
  text-align: center;
}

.flow-section h3 {
  color: #009e60;
  font-size: 1.8rem;
  margin-bottom: 50px;
  position: relative;
}

.flow-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap:20px;
}

/* ===== 各工程（アイテム） ===== */
.flow-item {
  background: #fff;
  border: 2px solid #009e60;
  border-radius: 12px;
  padding: 25px 20px;
  width: 180px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.flow-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.flow-item h4 {
  color: #009e60;
  margin-top: 10px;
  margin-bottom: 10px;
  font-size: 1.1rem;
}

.flow-item p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #333;
  text-align: left;   /* ← 左寄せ */
}

/* ===== 丸い番号部分 ===== */
.flow-icon {
  background: #009e60;
  color: #fff;
  font-weight: bold;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

/* ===== 矢印デザイン ===== */
.flow-arrow {
  font-size: 2rem;
  color: #009e60;
  margin: 0 10px;
}

/* ===== スマホ対応 ===== */
@media (max-width: 768px) {
  .flow-container {
    flex-direction: column;
    align-items: center;
  }
  .flow-arrow {
    transform: rotate(90deg);
    margin: 10px 0;
  }
}
@media (max-width: 1024px) and (min-width: 769px) {
  .flow-container {
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px 60px; /* 上下左右の間隔を統一 */
  }

  .flow-item {
    width: 45%; /* 横2列で揃うように調整 */
    min-height: 220px; /* 高さ統一で整列 */
  }

  .flow-item::after,
  .flow-item::before {
    display: none; /* タブレットでは矢印を消す（ズレ防止） */
  }
}

/* ===== 強み ===== */
.strength{
  background: #f9f9f9;
  padding: 80px 8%;
  margin-bottom: 0;
}

/* ===== Contact ===== */
.contact-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.5);
  z-index: 0;
}
.contact-section {
  background: url('contact_bg.jpg') no-repeat center center / cover;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  position: relative;
    text-align: center;
    margin-top: 0;
}
.contact-overlay {
  position: relative;
  z-index: 1;
  color: #ffffff;
      text-align: center;
}
.contact-section h2 {
  font-size: 2.8rem;
  margin-bottom: 15px;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    text-align: center
}
.contact-section p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.6);
  text-align: center;
}
.contact-btn {
  display: inline-block;
  padding: 12px 30px;
  border: 2px solid #ffffff;
  color: #ffffff;
  background: transparent;
  font-weight: bold;
  font-size: 1rem;
  border-radius: 30px;
  text-decoration: none;
  transition: 0.3s;
    text-align: center;
}
.contact-btn:hover {
  background: #ffffff;
  color: #009e60;
}


/* ===== フッター ===== */
footer {
  text-align: center;
  padding: 40px 20px;
  background: #f4f4f4;
  color: #555;
  font-size: 0.9rem;
}

