html {
  scroll-behavior: smooth;
       overflow-x: hidden;
}
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;
}

.robot-hero {
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
              url('AIrobot.jpg') center/cover no-repeat;
  height: 450px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #fff;
  text-align: center;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
    margin-top: 0;
}

    .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;
}


.robots {
  padding: 80px 8%;
  background: #f9f9f9;
  text-align: center;
}

.robots h3 {
  font-size: 1.8rem;
  color: #009e60;
  margin-bottom: 50px;
}

/* ===== カードグリッド ===== */
.robot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

/* ===== 各ロボットカード ===== */
.robot-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 25px 20px;
  border-top: 6px solid #009e60;
  max-width: 300px;
}

.robot-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* ===== 画像 ===== */
.robot-card img {
  width: 100%;
  max-width: 200px;
  height: auto;
  object-fit: contain;
  margin-bottom: 15px;
}

/* ===== 見出し ===== */
.robot-card h4 {
  font-size: 1.4rem;
  font-weight: 900;
  color: #009e60;
  margin-bottom: 5px;
}

.robot-card h5 {
  font-size: 1rem;
  color: #333;
  margin-bottom: 12px;
}

/* ===== 特徴リスト ===== */
.robot-card ul {
  list-style: none;
  padding: 0;
  text-align: left;
}

.robot-card ul li {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #555;
  position: relative;
  padding-left: 18px;
  margin-bottom: 6px;
}

.robot-card ul li::before {
  content: "•";
  color: #009e60;
  position: absolute;
  left: 0;
  top: 0;
}

/* ===== レスポンシブ ===== */
.robot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  justify-content: center;  /* ← これで中央寄せ */
  gap: 30px 40px;           /* ← 横40px・縦30pxの余白 */
  max-width: 1100px;        /* ← 横幅を制限（中央にまとまる） */
  margin: 0 auto;           /* ← 中央寄せ（全体） */
}
@media (max-width: 900px) {
  .robot-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .robot-grid {
    grid-template-columns: 1fr;
    justify-content: center; 
  }
}


/* ===== 特殊セクション（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;
    }

.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);
}


    .cta {
      text-align: center;
      margin-top: 80px;
    }

    .cta a {
      display: inline-block;
      padding: 14px 32px;
      background: #009e60;
      color: #fff;
      font-size: 1rem;
      font-weight: 600;
      border-radius: 30px;
      text-decoration: none;
    }

    .cta a:hover {
      background: #00cc77;
    }


.contact-overlay {
  text-align: left; /* ← 見出しは左寄せのまま */
}

.contact-btn {
  display: block;
  width: fit-content;
  margin: 25px auto 0;
  text-align: center;
  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;
}

.contact-btn:hover {
  background: #ffffff;
  color: #009e60;
}


/* ===== コスト試算 ===== */
:root {
  --accent: #009e60;
  --muted: #666;
  --soft-bg: #f8fdfb;
  --shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* セクション全体 */
.cost-section {
  background: #f9f9f9;
  padding: 80px 8%;
  text-align: center;
}

.cost-section h3 {
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 50px;
}
.cost-section h4 {
  font-size: 2.3rem;
  margin-bottom: 40px;
  font-weight: bold;
  text-align: left;
}

/* === 新レイアウト === */
.cost-layout {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 40px;
  text-align: left;
  max-width: 1200px;
  margin: 0 auto;
}

/* 左側：比較カード */
.cost-left {
  flex: 1 1 45%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cost-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 30px;
  width: 100%;
  max-width: 520px;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s ease forwards;
}

/* 上段ボックス */
.cost-top {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 20px;
}

.cost-box {
  flex: 1;
  background: var(--soft-bg);
  border-radius: 8px;
  padding: 18px;
  border-top: 5px solid #ccc;
  text-align: center;
  transition: 0.3s;
}

.cost-box.robot {
  border-top-color: var(--accent);
}

.cost-box h5 {
  color: var(--accent);
  margin-bottom: 8px;
  font-size: 1rem;
}

.amount {
  font-size: 1.3rem;
  font-weight: bold;
  color: #111;
}

.amount .yen {
  color: var(--accent);
  font-size: 1.5rem;
}

.calc {
  font-size: 0.9rem;
  color: var(--muted);
}

.cost-sep {
  font-size: 1.8rem;
  color: #aaa;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 下の＝とお得部分 */
.cost-savings {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  background: linear-gradient(90deg, rgba(0,158,96,0.05), rgba(0,158,96,0.02));
  padding: 10px;
  border-radius: 8px;
  animation: fadeIn 1.2s ease forwards;
}

.equals {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.savings {
  font-weight: bold;
  font-size: 1.1rem;
  color: #333;
}

/* 右側（グラフカード） */
.cost-right {
  flex: 1 1 45%;
  display: flex;
  gap: 30px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: nowrap; /* ✅ 横並び固定 */
}


.graph-box {
  flex: 1;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 25px 20px;
  text-align: center;
  transition: 0.3s;
  opacity: 0;
  transform: translateY(40px);
  animation: fadeUp 1.2s ease forwards;
}

.graph-box:hover {
  transform: translateY(-5px);
}

.graph-box h5 {
  color: var(--accent);
  margin-bottom: 15px;
}

/* グラフ棒アニメーション */
.bar {
  width: 60%;
  margin: 0 auto 15px;
  border-radius: 6px;
  background: linear-gradient(180deg, #00b26a, #009e60);
  transform-origin: bottom;
  animation: growBar 1.6s ease-out forwards;
}

.human-bar {
  height: 170px;
  opacity: 0.7;
}

.robot-bar {
  height: 50px;
  opacity: 0.8;
}

.graph-box ul {
  list-style: none;
  padding: 0;
  font-size: 0.9rem;
  color: #333;
  line-height: 1.6;
}

/* ハイライトマーカー */
.highlight-marker-green {
  background: linear-gradient(transparent 60%, #b5f8b5 60%);
  font-weight: bold;
}
.highlight-marker {
  background: linear-gradient(transparent 60%, #ffed9e 60%);
  font-weight: bold;
}

/* 小さい文字 */
.robot-info .muted{
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
  text-align: left;
}
.small{ font-size:0.82rem; color:var(--muted); 
text-align: left;}


/* ===== レスポンシブ ===== */
@media (max-width: 900px) {
  .cost-layout {
    flex-direction: column;
    align-items: center;
  }

  .cost-left,
  .cost-right {
    flex: 1 1 100%;
    text-align: center;
  }

  .cost-right {
    flex-wrap: nowrap; /* ✅ 横並び固定 */
    gap: 16px;
  }
    .graph-box {
    flex: 1;
    min-width: 45%;
  }

  .bar {
    width: 50%;
  }
}

@media (max-width: 500px) {
  .graph-box {
    min-width: 48%;
    padding: 20px 10px;
  }
  .bar {
    width: 70%;
  }
}

/* === アニメーション === */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes growBar {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(1);
  }
}


/* ===== 適用場面（Use Case） ===== */

.usecase-section {
  padding: 80px 8%;
  text-align: center;
}

.usecase-section h3 {
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 50px;
}

/* グリッドレイアウト */
.usecase-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
  justify-items: center;
}

/* カード */
.usecase-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  padding: 12px;
  width: 100%;
  max-width: 220px;
  cursor: pointer;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.usecase-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.12);
}

/* 画像 */
.usecase-card img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
  height: 150px;
}

/* ラベル */
.usecase-card p {
  margin-top: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
}

/* ===== レスポンシブ ===== */
@media (max-width: 1024px) {
  .usecase-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 680px) {
  .usecase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .usecase-card {
    max-width: 100%;
  }
}

/* ===== fade-trigger と連動（スクロール演出） ===== */
.usecase-section.fade-trigger {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .9s ease, transform .9s ease;
}

.usecase-section.fade-trigger.is-visible {
  opacity: 1;
  transform: translateY(0);
}



/* ===== フローチャートセクション ===== */
.flow-section {
  padding: 80px 8%;
  background: #f9f9f9;
  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: 200px;
  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; /* タブレットでは矢印を消す（ズレ防止） */
  }
}

/* ===== 導入効果 ===== */
.effect-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.effect-header img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.effect-section {
  background: #fff;
  padding: 80px 8%;
  text-align: center;
}
.effect-section h3 {
  font-size: 1.8rem;
  color: #009e60;
  margin-bottom: 50px;
}
.effect-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}
.effect-card {
  background: #f8fdfb;
  border-left: 5px solid #009e60;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  padding: 25px;
  text-align: left;
  transition: 0.3s;
}
.effect-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}
.effect-card h4 {
  color: #009e60;
  font-size: 1.1rem;
  margin: 0;
}
/* ===== コスト試算 ===== */
:root {
  --accent: #009e60;
  --muted: #666;
  --soft-bg: #f8fdfb;
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* ===== セクション全体 ===== */
.cost-section {
  background: #f9f9f9;
  padding: 80px 8%;
  text-align: center;
  overflow: hidden;
}
.cost-section h3 {
  font-size: 1.8rem;
  color: var(--accent);
  margin-bottom: 50px;
}

/* ===== レイアウト ===== */
.cost-layout {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
}

/* 左右共通フェード初期 */
.fade-trigger {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s ease, transform 0.9s ease;
}

.fade-trigger.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 左側 ===== */
.cost-left {
  flex: 1 1 45%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===== カード本体 ===== */
.cost-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 30px;
  width: 100%;
  max-width: 520px;
}

/* 上段 */
.cost-top {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 20px;
}
.cost-box {
  flex: 1;
  background: var(--soft-bg);
  border-radius: 8px;
  padding: 18px;
  border-top: 5px solid #ccc;
  text-align: center;
  transition: 0.3s;
}
.cost-box.robot {
  border-top-color: var(--accent);
}
.cost-box h5 {
  color: var(--accent);
  margin-bottom: 8px;
  font-size: 1rem;
}
.amount {
  font-size: 1.3rem;
  font-weight: bold;
  color: #111;
}
.amount .yen {
  color: var(--accent);
  font-size: 1.5rem;
}
.calc {
  font-size: 0.9rem;
  color: var(--muted);
}
.cost-sep {
  font-size: 1.8rem;
  color: #aaa;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 下の「お得」部分 */
.cost-savings {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  background: linear-gradient(90deg, rgba(0, 158, 96, 0.05), rgba(0, 158, 96, 0.02));
  padding: 10px;
  border-radius: 8px;
}
.equals {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}
.savings {
  font-weight: bold;
  font-size: 1.1rem;
  color: #333;
}

/* ===== 右側 ===== */
.cost-right {
  flex: 1 1 45%;
  display: flex;
  gap: 30px;
  justify-content: center;
  align-items: flex-start;
  flex-wrap: nowrap; /* 横並び固定 */
}

.graph-box {
  flex: 1;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 25px 20px;
  text-align: center;
  transition: 0.3s;
}
.graph-box:hover {
  transform: translateY(-5px);
}
.graph-box h5 {
  color: var(--accent);
  margin-bottom: 15px;
}

/* 棒グラフ */
.bar {
  width: 60%;
  margin: 0 auto 15px;
  border-radius: 6px;
  background: linear-gradient(180deg, #00b26a, #009e60);
  transform-origin: bottom;
  transform: scaleY(0);
  opacity: 0;
  transition: transform 1.2s ease-out, opacity 1.2s ease-out;
}
/* スクロール可視化後に伸びる */
.fade-trigger.is-visible .bar {
  transform: scaleY(1);
  opacity: 1;
}

.human-bar {
  height: 150px;
  opacity: 0.8;
}
.robot-bar {
  height: 70px;
  opacity: 0.9;
}

/* リスト */
.graph-box ul {
  list-style: none;
  padding: 0;
  font-size: 0.9rem;
  color: #333;
  line-height: 1.6;
}

/* ハイライト */
.highlight-marker-green {
  background: linear-gradient(transparent 60%, #b5f8b5 60%);
  font-weight: bold;
}

/* ===== レスポンシブ ===== */
@media (max-width: 900px) {
  .cost-layout {
    flex-direction: column;
    align-items: center;
  }
  .cost-left,
  .cost-right {
    flex: 1 1 100%;
    text-align: center;
  }
  .cost-right {
    flex-wrap: nowrap; /* 横並び維持 */
    gap: 16px;
  }
  .graph-box {
    flex: 1;
    min-width: 45%;
  }
}
@media (max-width: 500px) {
  .graph-box {
    min-width: 48%;
    padding: 20px 10px;
  }
  .bar {
    width: 70%;
  }
}
/* ===== フローチャートセクション ===== */
.flow-section {
  padding: 80px 8%;
  padding-bottom: 80px;
  background: #f9f9f9;
  text-align: center;
}

.flow-section h3 {
  color: #009e60;
  font-size: 1.8rem;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.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; /* 上下左右の間隔を統一 */
    margin-bottom: 0px;
  }

  .flow-item {
    width: 45%; /* 横2列で揃うように調整 */
    min-height: 220px; /* 高さ統一で整列 */
  }

  .flow-item::after,
  .flow-item::before {
    display: none; /* タブレットでは矢印を消す（ズレ防止） */
  }
}

/* ===== Contact ===== */
.contact-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  margin-top: 0px;
  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: 0px;
    padding: 0; /* ←これ重要 */
    background: ;#f9f9f9
}
.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;
}

