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: 0%;
  padding-right: 0%;


}
.full-screen-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  text-align: center;
}


/* ===== 見出し（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;

/* ===== セクション共通 ===== */
/* ===== 親要素の左右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;
}

}

:root{
  --accent:#009e60;
  --muted:#666;
  --bg:#f8fbf9;
  --card:#fff;
  --shadow: 0 8px 24px rgba(15,20,20,0.06);
}

/* ------- reset-ish ------- */
*{box-sizing:border-box}
body{margin:0;font-family:'Noto Sans JP', 'Poppins', system-ui, -apple-system; color:#222; background:#fff; -webkit-font-smoothing:antialiased}
a{color:var(--accent);text-decoration:none}

/* ===== HERO (明るく表示) ===== */
.ballast-hero{
  height:400px;
  background: url("Ship-related.jpg") center/cover no-repeat;
  display:flex; align-items:center; justify-content:center; text-align:center;
  color:#fff; position:relative;
}
.ballast-hero .hero-inner{
  width:100%; max-width:1100px; padding: 0 20px;
  text-shadow: 0 4px 18px rgba(0,0,0,0.35);
}
.ballast-hero h1{ font-size:2.6rem; margin:0 0 8px; font-weight:900; letter-spacing:0.02em;}
.ballast-hero p{ font-size:1.05rem; margin:0; opacity:0.95}

/* ===== section base ===== */
.section{ padding:72px 6%; }
.section .container{ max-width:1100px; margin:0 auto; 
  padding: 0 20px; /* ← 全ページ共通の左右余白 */}


/* section title style (統一見出し) */
.section h3{
  font-size:1.6rem; margin:0 0 18px; display:inline-block;
  padding-bottom:10px; 
  font-weight:700;
}

/* ===== パンくず（左寄せ・統一版） ===== */
.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;
}



/* Headway について */

.about-section {
  padding: clamp(40px, 6vw, 80px) 8%; /* ← 画面幅で可変 */
  background: #ffffff;
}

/* レイアウト */
.about-flex {
  display: flex;
  gap: clamp(24px, 4vw, 50px); /* ← スマホで縮む */
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* テキストブロック */
.about-text {
  flex: 1 1 450px;
}

/* 説明文の余白を可変にする */
.about-desc {
  margin-bottom: clamp(14px, 3vw, 26px); /* ← 画面に合わせて縮む */
  line-height: 1.7;
}

/* 画像ブロック */
.about-img-wrap {
  flex: 1 1 450px;
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

/* 画像の無駄な余白を消す */
.about-img {
  max-width: 600px;
  display: block; /* ← 画像下の余白を防ぐ */
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.15);
}


/* スマホ・タブレット用 最適化 */


/* ▼ スマホ限定で余白をぐっと小さくする */
@media (max-width: 1000px) {

  .about-section {
    padding: 20px 6%; /* ← 上下20px に強制 */
  }

  .about-flex {
    gap: 18px; /* ← スマホでは要素間余白も圧縮 */
  }

  .about-desc {
    margin-bottom: 12px; /* ← 説明文下の余白を縮小 */
  }

  .about-img-wrap {
    margin-bottom: 18px !important; /* ← 画像下の余白も縮小 */
  }
  .about-img{
    max-width: 450px;
  }
}


/* ===== 製品紹介タイトル ===== */
.product-intro {
  position: relative;
  text-align: center;
  padding: 100px 0 120px;
 background: linear-gradient(135deg, #009e60, #00c97c);
  color:#fff;
  overflow: hidden;
    border-radius: 40px 40px 0 0;
}

.product-main-title {
  font-size: 36px;
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.product-lead {
  max-width: 800px;
  margin: 0 auto;
  line-height: 2;
  color: #ffffff;
}


/* ===== 右寄り製品紹介 ===== */
.productright-section {
  background: linear-gradient(180deg, #f8fafc 0%, #eef3f7 100%);
  padding: 100px 0;
}

/* レイアウト */
.productright-flex {
  display: flex;
  align-items: center;
  gap: 60px;
}

/* 左：画像 */
.productright-img {
  flex: 1;
  text-align: center;

}

.productright-img img {
  width: 100%;
  max-width: 500px;
  border-radius: 14px;
  box-shadow:
    0 20px 40px rgba(0,0,0,0.12),
    0 0 0 1px rgba(0,0,0,0.05);

  transition: 0.4s;
}

.productright-img img:hover {
  transform: translateY(-6px) scale(1.02);
}

/* 右：テキスト */
.productright-text {
  flex: 1;
}

/* 見出し */
.productright-title {
  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;    /* ← 念のためリセット */
}

/* 下線 */
.productright-title::after {
  content: "";
  position: absolute;
  left: 0;                /* ← 左端スタート */
  bottom: -8px;
  width: 60px;
  height: 3px;
  background: #009e60;
  border-radius: 3px;
}

/* ===== リスト ===== */
.productright-list {
  list-style: none;   /* ← デフォルトの点消す */
  padding: 0;
  margin-top: 20px;
  display: block;
}

/* 各項目 */
.productright-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 14px;
  line-height: 1.8;
  color: #444;
    display: block;
}

/* カスタムアイコン（丸） */
.productright-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  background: #009e60;
  border-radius: 50%;
}
/* 本文 */
.productright-text p {
  line-height: 2;
  max-width: 700px;
    flex: 1 1 450px;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .productright-flex {
    flex-direction: column-reverse;
    gap: 30px;
  }

  .productright-text {
    text-align: left;
  }

  .productright-text p {
    max-width: 100%;
  }
  .productright-list {
    text-align: left;     /* ← これで左揃え */
    margin: 0 auto;       /* ← 中央配置は維持 */
    max-width: 500px;     /* ← 読みやすさUP */
  }
  .productright-img img {
  width: 100%;
  max-width: 250px;
  }
}


/* ===== FGSS/LFSS ===== */


.productabout-section {
  padding: clamp(40px, 6vw, 80px) 8%; /* ← 画面幅で可変 */
  background: #ffffff;
}

/* レイアウト */
.productabout-flex {
  display: flex;
  gap: clamp(24px, 4vw, 50px); /* ← スマホで縮む */
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

/* テキストブロック */
.productabout-text {
  flex: 1 1 450px;
  }
  .productabout-text h5{
  color: var(--accent);
  margin-bottom: 8px;
  font-size: 1rem;
}

/* 説明文の余白を可変にする */
.productabout-desc {
  margin-bottom: clamp(14px, 3vw, 26px); /* ← 画面に合わせて縮む */
  line-height: 1.7;
}

/* 画像ブロック */
.productabout-img-wrap {
  flex: 1 1 450px;
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}
/* 画像ホバー */
.productabout-img {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.productabout-img-wrap:hover .productabout-img {
  transform: scale(1.05) translateY(-5px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.2);
}
/* 画像の無駄な余白を消す */
.productabout-img {
  max-width: 600px;
  display: block; /* ← 画像下の余白を防ぐ */
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.15);
}

/* 各項目 */
.productabout-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 14px;
  line-height: 1.8;
  color: #444;
    display: block;
}

/* カスタムアイコン（丸） */
.productabout-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 10px;
  height: 10px;
  background: #009e60;
  border-radius: 50%;
}

/* スマホ・タブレット用 最適化 */


/* ▼ スマホ限定で余白をぐっと小さくする */
@media (max-width: 600px) {

  .productabout-section {
    padding: 20px 6%; /* ← 上下20px に強制 */
  }

  .productabout-flex {
    gap: 18px; /* ← スマホでは要素間余白も圧縮 */
  }

  .productabout-desc {
    margin-bottom: 12px; /* ← 説明文下の余白を縮小 */
  }

  .productabout-img-wrap {
    margin-bottom: 18px !important; /* ← 画像下の余白も縮小 */
  }
  .productabout-img{
    max-width: 450px;
  }
}




/* ===== アフターサービス ===== */
.after-service-section{
  padding: 80px 8%;
  background: #f9f9f9;
}


/* タイトル直下の BWMS 大画像 */
.service-map-wrapper {
  width: 100%;
  margin-bottom: 28px;
  text-align: center;
}

.service-map-wrapper img {
  width: 100%;
  max-width: 800px;
  border-radius: 10px;
  object-fit: cover;
}


/* ===== 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;
}
.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;
}

