html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
}

  /* ===== ヘッダー ===== */
 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;
}
 }

/* ------------------ 基本設定 ------------------ */

body{
margin:0;
background:#ffffff;
color:#333;
font-family:"Helvetica Neue", Arial, sans-serif;
line-height:1.7;
}

/* セクション */

section{
background:#ffffff;
  padding-left: 8%;
  padding-right: 8%;

}

.container{
max-width:1200px;
margin:auto;
padding:0 20px;
}

section{
padding:90px 0;
}

/* グレーセクション */

.section-gray{
background:#f5f7f8;
}

/* 見出し */


.full-screen-section {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
  text-align: center;
}

/* 見出し */

h1,h3{
margin:0 0 20px 0;
font-weight:700;
color: #009e60;
font-size:1.6rem; margin:0 0 18px; display:inline-block;
  padding-bottom:10px; 
  font-weight:700;
}

h2{
font-size: 1.8rem;
color: #009e60;
  margin-top: 60px;
margin-bottom:25px;
position:relative;
display:inline-block;
}

h2::after{
content:"";
width:60px;
height:3px;
background:#009e60;
position:absolute;
left:0;
bottom:-8px;
border-radius: 3px;
}




:root{
  --accent:#009e60;
  --muted:#666;
  --bg:#f8fbf9;
  --card:#fff;
  --shadow: 0 8px 24px rgba(15,20,20,0.06);
}

.section-title {
  text-align: center;
  font-size: 1.9rem;
  color: #009e60;
  margin-bottom: 30px;
}

.section-title::after {
  content: "";
  width: 60px;
  height: 3px;
  background: #009e60;
  display: block;
  margin: -10px auto 0;
}

/* ------- 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}


p{
color:#444;
}

/* カード */

.card{
background:#ffffff;
border-radius:10px;
box-shadow:0 8px 20px rgba(0,0,0,0.08);
padding:30px;
}


/* ===== 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;
  margin-top: -26px;
    padding-top: 100px; /* ← ヘッダー分の余白 */
}
.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 h5{ 
  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;
  color: #fff;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
  .ballast-hero {
    height: 300px; /* 少し高さも調整 */
    padding-top: 80px;
  }

  .ballast-hero h5 {
    font-size: 1.6rem;
    line-height: 1.4;
  }

  .ballast-hero p {
    font-size: 0.9rem;
  }
}

/* ===== パンくず（左寄せ・統一版） ===== */
.breadcrumb {
  padding: 0px 3%;
  font-size: 0.9rem;
  background: #fff;
  margin-top: 0px;
  font-weight: 500;
    padding-top: 20px;   /* ←ここで余白を作る */
  background:#f5f7f8;
}

.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;
}


/* ------------------ パートナー紹介 ------------------ */

.partner{
background:#f5f7f8;
  padding: clamp(40px, 6vw, 80px) 8%; /* ← 画面幅で可変 */
}

.partner-grid{
display:flex;
gap:60px;
align-items:center;
flex-wrap:wrap;
}

.partner-text{
flex:1;
min-width:320px;
}

.partner-highlight{
background:#ffffff;
padding:40px;
border-radius:16px;
margin-top:40px;
box-shadow:0 6px 18px rgba(0,0,0,0.08);
}

/* ------------------ 規制セクション ------------------ */

.regulation{
background:#ffffff;
  padding: clamp(40px, 6vw, 80px) 8%; /* ← 画面幅で可変 */
}

.reg-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
gap:40px;
margin-top:60px;
}

.reg-card{
background:#f5f7f8;
padding:40px;
border-radius:20px;
}

.reg-card h3{
color:#009e60;
}

/* ------------------ ソリューションカード ------------------ */

.solutions{
background:#f5f7f8;
  padding: clamp(40px, 6vw, 80px) 8%; /* ← 画面幅で可変 */
}

.solution-grid{
display:grid;
grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
gap:40px;
margin-top:60px;
}

.solution-card{
background:#ffffff;
padding:40px;
border-radius:20px;
transition:0.3s;
box-shadow:0 6px 18px rgba(0,0,0,0.08);
}

.solution-card:hover{
transform:translateY(-8px);
box-shadow:0 14px 30px rgba(0,0,0,0.15);
}

.solution-card h3{
color:#009e60;
}

/* ------------------ ESD ------------------ */

.about-section {
  padding: clamp(60px, 7vw, 100px) 8%; /* ← 画面幅で可変 */
  background: #ffffff;
}
.about-section .container{
margin-left:0;
margin-right:auto;
}

/* レイアウト */
.about-flex{
  display:flex;
  gap:70px;
  align-items:center;
  max-width:2000px;   /* 少し広げる */
  margin:0 auto;
  align-items:flex-start;
}

/* テキストを広げる */
.about-text{
  flex:0 0 65%;       /* ← 文字を65%に */
  max-width:640px;
  line-height:1.9;
}

/* 説明文の余白を可変にする */
.about-text {
  margin-bottom: clamp(14px, 3vw, 26px); /* ← 画面に合わせて縮む */
  line-height: 1.7;
}
.about-section p{
  text-align: left;
  margin: 0;
    font-size:16.5px;
  line-height:1.95;
  letter-spacing:0.02em;
}
/* 画像を右側へ */
.about-img-wrap{
  flex:0 0 35%;
  display:flex;
  justify-content:flex-end;  /* ← 右寄せ */
}

/* 画像サイズ */
.about-img{
  width:100%;
  height:auto;
  object-fit:contain;
    border-radius: 14px;
}

/* スマホ・タブレット用 最適化 */


/* ▼ スマホ限定で余白をぐっと小さくする */
@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; /* ← 画像下の余白も縮小 */
  }
}
@media (max-width: 768px) {

  .about-flex{
    flex-direction: column;
  }

  .about-text{
    flex: none;
    max-width: 100%;
  }

  .about-img-wrap{
    flex: none;
    justify-content: center;
    margin-top:20px;
  }

  .about-img{
    max-width:100%;
  }

}

/* 逆レイアウト */

.about-section.reverse .about-flex{
  flex-direction:row-reverse;
}

.about-section.reverse .about-text{
  text-align:left;
}

.about-section.reverse .about-img-wrap{
  justify-content:flex-start;
}




/* 右寄せタイトル */

.title-right{
text-align:right;
margin-bottom:20px;
}


/* 下線位置を調整 */

.title-right::after{
  left:0;
}

/* ------------------ 締め------------------ */

h4{
font-size: 1.8rem;
color: #fff;
  margin-top: 60px;
margin-bottom:25px;
position:relative;
display:inline-block;
}


.final-cta{
  background: linear-gradient(135deg, #009e60, #00c97c);
  color:#fff;
  text-align:center;
  padding:100px 8%;
  border-radius: 40px 40px 0 0;
}

.final-inner{
  max-width:900px;
  margin:0 auto;
}

.final-cta h2{
  font-size:2rem;
  margin-bottom:20px;
}

.final-text{
  font-size:1.05rem;
  line-height:1.9;
  margin-bottom:40px;
}

.final-points{
  display:flex;
  justify-content:center;
  gap:30px;
  flex-wrap:wrap;
  margin-bottom:40px;
  font-weight:600;
}

.final-btn{
  display:inline-block;
  padding:16px 40px;
  background:#fff;
  color:#009e60;
  border-radius:30px;
  font-weight:700;
  text-decoration:none;
  transition:0.3s;
}

.final-btn:hover{
  background:#f0f0f0;
  transform:translateY(-3px);
}

.final-cta{
  position:relative;
  overflow:hidden;
}

.final-cta::before{
  content:"";
  position:absolute;
  width:300px;
  height:300px;
  background:rgba(255,255,255,0.1);
  border-radius:50%;
  top:-100px;
  right:-100px;
}

/* ------------------ レスポンシブ ------------------ */

@media(max-width:768px){

.hero h1{
font-size:32px;
}

section{
padding:70px 6%;
}

}
/* ===== フッター ===== */
footer {
  text-align: center;
  padding: 40px 20px;
  background: #f4f4f4;
  color: #555;
  font-size: 0.9rem;
}

