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;
}


/* ===== 見出し（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:420px;
  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; }

/* 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;
}



/* ===== About Section ===== */

.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 300px;
  max-width: 350;
}

.about-lead {
  font-size: 1.4rem;
  font-weight: 600;
  color: #009e60;
  margin-bottom: 15px;
}

/* 説明文の余白を可変にする */
.about-desc {
  margin-bottom: clamp(14px, 3vw, 26px); /* ← 画面に合わせて縮む */
  line-height: 3;
}

/* 画像ブロック */
.about-img-wrap {
  flex: 1 1 450px;
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

/* 画像の無駄な余白を消す */
.about-img {
  width: 100%;
  display: block; /* ← 画像下の余白を防ぐ */
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0,0,0,0.15);
}


/* スマホ・タブレット用 最適化 */


/* ▼ スマホ限定で余白をぐっと小さくする */
@media (max-width: 600px) {

  .about-section {
    padding: 20px 6%; /* ← 上下20px に強制 */
  }

  .about-flex {
    gap: 18px; /* ← スマホでは要素間余白も圧縮 */
  }

  .about-desc {
    margin-bottom: 12px; /* ← 説明文下の余白を縮小 */
  }

  .about-img-wrap {
    margin-bottom: 18px !important; /* ← 画像下の余白も縮小 */
  }
}

/* ===== FEATURE GRID ===== */

.feature-section{
  padding: 80px 8%;
  background: #f9f9f9;
}
.feature-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit,minmax(240px,1fr));
  gap:20px;
  margin-top:18px;
}
/* タブレット（1200px〜768px） → 2カラム */
@media (max-width: 1200px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* スマホ（768px以下） → 1カラム */
@media (max-width: 768px) {
  .feature-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* カード本体（③の改良版） */
.feature-card {
  background: #ffffff;
  border-left: 6px solid #009e60;
  padding: 24px;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  transition: transform 0.35s ease, box-shadow 0.35s ease;

}

/* テキスト用コンテナ（アニメ無効化用） */
.feature-card .inner {
  transform: scale(1);
  transform-origin: center;
  transition: none !important;
}

/* ホバー時：カードだけ軽く拡大、テキストは拡大分を反転 */
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 22px rgba(0,0,0,0.12);
}



/* 見た目の色 */
.feature-card h4 {
  color: #009e60;
  font-weight: 800;
  margin-bottom: 10px;
}

.feature-card p {
  color: #333;
  line-height: 1.7;
}

/* タイトル直下の BWMS 大画像 */
.feature-top-img {
  width: 100%;
  margin-bottom: 28px;
  text-align: center;
}

.feature-top-img img {
  width: 100%;
  max-width: 500px;
  border-radius: 10px;
  object-fit: cover;
}

/* ===== Works 追加===== */


.work-item {
  display: flex;
  align-items: flex-start;
  gap: 70px;
  background: #ffffff; /* ←薄いグリーン系で上品 */
  border-radius: 14px;
  padding: 20px 24px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  transition: all 0.3s ease;

  max-width: 900px;   /* ←横長防止（超重要） */
  margin: 0 auto;     /* ←中央寄せ */

}

/* ホバーで少し浮く */
.work-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

/* 画像 */
.work-item img {
  width: 180px;   /* ←少し小さくしてバランス改善 */
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
  flex-shrink: 0;
}

/* テキスト */
.work-text {
  flex: 1;
}

.work-text h4 {
  color: #009e60;
  font-size: 1.15rem;
  margin: 0 0 10px 0;
}

/* 行間をしっかり広げる */
.work-text p {
  color: #333;
  font-size: 0.96rem;
  line-height: 1.9;  /* ←ここが効く */
  letter-spacing: 0.02em;
}

/* ===== スマホ ===== */
@media (max-width: 768px) {

  .work-item {
    flex-direction: column;
    padding: 18px;
  }

  .work-item img {
    width: 180px;
    height: 180px;
    margin: 0 auto 10px;
  }
}

/* ===== 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;
}

