@charset "UTF-8";

/* ==========================================
   共通スタイル (njm_style.css)
   ========================================== */


/* ==========================================
   1. リセット & ベース設定
   ========================================== */
html {
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: sans-serif;
  background-color: #ffffff;
  color: #2d3748;
}


/* ==========================================
   2. ヘッダー (Header)
   ========================================== */
.site-header {
  width: 100%;
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: relative;
}

/* PC表示（ヘッダー） */
.header-top {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between; /* 要素同士を均等配置 */
}

/* メイン社名ロゴ (左側) */
.header-logo-main {
  display: flex;
  align-items: center;
}

.header-logo-main .logo-item img {
  height: 44px;
  width: auto;
  display: block;
}

/* 右側エリア */
.header-right-area {
  display: flex;
  align-items: center;
  gap: 15px;
}

.header-sub-logo img {
  height: 50px;
  width: auto;
  display: block;
}

/* SDGsロゴ  */
.sdgs-logo {
  display: inline-flex;
  align-items: center;
}

.sdgs-logo img {
  height: 50px;
  width: auto;
  display: block;
}

/* ハンバーガーボタン本体（PCでは非表示） */
.hamburger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 32px;
  height: 32px;
  flex-direction: column;
  justify-content: space-between;
}

/* ハンバーガーの三本線パーツ */
.hamburger-line {
  display: block;
  width: 100%;
  height: 3px;
  background-color: #004d00;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}


/* ==========================================
   3. グローバルナビゲーション (GNAV)
   ========================================== */
.gnav {
  position: relative;
  width: 100%;
  background-color: #ffffff;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #e0e0e0;
}

.gnav-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.gnav-list {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  list-style: none;
  border-left: 1px solid #e0e0e0;
}

.gnav-list > li {
  flex: 1;
  text-align: center;
  position: static;
}

.gnav-link {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 0 8px;
  text-decoration: none;
  color: #333333;
  font-weight: bold;
  font-size: 0.95rem;
  border-right: 1px solid #e0e0e0;
  transition: background-color 0.2s, color 0.2s;
  white-space: nowrap;
}

.gnav-link:hover {
  background-color: #f2fdf5;
  color: #004d25;
}

/* サブメニュー（メガメニュー） */
.sub-menu-bar {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: #004d25;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  display: none;
  z-index: 100;
}

.gnav-item.has-sub:hover .sub-menu-bar {
  display: block;
}

.sub-menu-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.sub-menu-inner a {
  color: #ffffff;
  text-decoration: none;
  font-size: 0.85rem;
  padding: 4px 8px;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.sub-menu-inner a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.sub-menu-inner .divider {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
}


/* ==========================================
   4. メインビジュアル / Hero
   ========================================== */
.hero-section {
  padding: 30px 0;
  width: 100%;
  background-color: #f4f7f6;
}

.hero-inner {
  width: 70%;
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.slider-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: #e2e8f0;
}

.slide-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.slide-img.active {
  opacity: 1;
}


/* ==========================================
   5. トップページ・共通セクション
   ========================================== */
.section-row {
  width: 100%;
  padding: 60px 0;
}

.row-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  margin-bottom: 40px;
}

/* SNSエリア */
.sns-grid {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
}

.sns-card {
  flex: 1;
  max-width: 450px;
  min-width: 300px;
  background-color: #ffffff;
  padding: 25px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  border: 1px solid #eee;
  border-top: 3px solid #006600;
  text-align: center;
}

.sns-title {
  font-size: 1.1rem;
  margin-bottom: 15px;
  color: #006600;
}

.sns-embed {
  display: flex;
  justify-content: center;
}

/* NEWSエリア */
.news-list {
  list-style: none;
  border-top: 2px solid #006600;
}

.news-item {
  border-bottom: 1px solid #e0e0e0;
}

.news-item a {
  display: flex;
  align-items: center;
  padding: 18px 10px;
  text-decoration: none;
  color: #333333;
}

.news-date {
  font-size: 0.9rem;
  color: #718096;
  width: 110px;
  flex-shrink: 0;
}

.news-category {
  font-size: 0.8rem;
  background-color: #63CEAD;
  color: #0f2d23;
  font-weight: bold;
  padding: 4px 12px;
  border-radius: 4px;
  margin-right: 20px;
  flex-shrink: 0;
}


/* ==========================================
   6. 下層ページ共通 (Page Header / Breadcrumb)
   ========================================== */
.page-header {
  background-color: #004d00;
  color: #ffffff;
  padding: 40px 20px;
  text-align: center;
  margin-bottom: 60px;
}

.page-header .breadcrumb {
  font-size: 0.85rem;
  margin-bottom: 25px;
  text-align: left;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

.page-header .breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
}

.page-header .breadcrumb li {
  display: flex;
  align-items: center;
}

.page-header .breadcrumb ol li a,
.page-header .breadcrumb ol li a:link,
.page-header .breadcrumb ol li a:visited {
  color: #63cead;
  text-decoration: none;
}

.page-header .breadcrumb ol li a:hover {
  text-decoration: underline;
  opacity: 0.8;
}

.page-header .breadcrumb ol li:not(:last-child)::after {
  content: ">";
  margin: 0 8px;
  color: #ffffff;
}

.page-header .breadcrumb span {
  color: #ffffff;
  font-weight: bold;
}

.page-title {
  text-align: center;
}

.page-title .en {
  display: block;
  font-size: 1.2rem;
  letter-spacing: 2px;
  color: #63cead;
  font-weight: bold;
}

.page-title .ja {
  display: block;
  font-size: 1.8rem;
  font-weight: bold;
  color: #ffffff;
  margin-top: 5px;
}


/* ==========================================
   7. レイアウトパーツ & 汎用コンポーネント
   ========================================== */
.content-block {
  margin-bottom: 90px;
}

.content-block:last-child {
  margin-bottom: 40px;
}

.lead-box {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  padding: 45px 30px;
  text-align: center;
  border-radius: 8px;
  line-height: 2.2;
  font-size: 1.15rem;
  font-weight: bold;
  color: #166534;
  max-width: 900px;
  margin: 0 auto;
}

.section-subtitle {
  font-size: 1.5rem;
  font-weight: bold;
  color: #004d00;
  border-bottom: 2px solid #004d00;
  padding-bottom: 12px;
  margin-bottom: 45px;
  text-align: center;
}

.topics-archive-link {
  text-align: center;
  margin-top: 40px;
}

.btn-archive {
  display: inline-block;
  padding: 12px 36px;
  background-color: #63cead; 
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.btn-archive:hover {
  background-color: #004d00;
}

.pdf-link {
  margin-top: 16px;
}

.pdf-link.is-right {
  text-align: right; 
}

.btn-pdf {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #63cead;
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.btn-pdf::before {
  content: "PDF";
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.2);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 2px;
}

.btn-pdf:hover {
  background-color: #004d00;
  color: #ffffff;
}

.btn-more {
  display: inline-block;
  margin-top: 10px;
  padding: 6px 16px;
  font-size: 0.85rem;
  font-weight: bold;
  color: #004d00;
  background-color: #63cead;
  border: 1px solid #bbf7d0;
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}

.btn-more:hover {
  background-color: #004d00;
  color: #ffffff;
}

.btn-staff-more {
  align-self: flex-start;
}


/* ==========================================
   8. スタッフカード (Staff Card)
   ========================================== */
.staff-card {
  display: flex;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-bottom: 25px;
}

.staff-card--business {
  align-items: center;
  gap: 25px;
  background-color: #f8fafc;
  border-left: 5px solid #004d00;
  padding: 20px 25px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.staff-card--contact {
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}


/* ==========================================
   9. モーダルポップアップ (Modal)
   ========================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 20px;
  box-sizing: border-box;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-window {
  background-color: #ffffff;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 12px;
  padding: 30px;
  position: relative;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transform: translateY(20px);
  transition: transform 0.3s ease;
  box-sizing: border-box;
}

.modal-overlay.is-open .modal-window {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 2rem;
  color: #94a3b8;
  cursor: pointer;
  line-height: 1;
  padding: 5px;
}

.modal-close:hover {
  color: #004d00;
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 15px;
}

.modal-img {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  object-fit: cover;
}

.modal-name {
  font-size: 1.3rem;
  font-weight: bold;
  color: #004d00;
  margin: 0;
}

.modal-message {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px dashed #cbd5e1;
}

.modal-message p {
  font-size: 0.95rem;
  line-height: 1.8;
  color: #334155;
  margin-bottom: 1em;
}

.modal-message p:last-child {
  margin-bottom: 0;
}


/* ==========================================
   10. フッター (Footer)
   ========================================== */
.site-footer {
  background-color: #004d00;
  color: #e2e8f0;
  padding: 40px 0 20px;
  margin-top: 60px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.footer-nav ul {
  display: flex;
  justify-content: center;
  gap: 20px;
  list-style: none;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  margin-bottom: 30px;
}

.footer-nav a {
  color: #e2e8f0;
  text-decoration: none;
}

.company-name {
  font-size: 1.1rem;
  margin: 15px 0;
  color: #ffffff;
}

.contact-details a {
  color: #63cead;
  text-decoration: none;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 20px;
  margin-top: 20px;
  font-size: 0.8rem;
  color: #a0aec0;
}


/* ==========================================
   11. レスポンシブ設定 (スマホ・タブレット 768px以下)
   ========================================== */
@media (max-width: 768px) {
  .header-top {
    padding: 10px 15px;
  }

  .header-logo-main .logo-item img {
    height: 32px;
  }

  .header-sub-logo,
  .sdgs-logo {
    display: none;
  }

  .hamburger-btn {
    display: flex;
  }

  /* ナビゲーションメニューのスマホ化 */
  .gnav-inner {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
  }

  .gnav-inner.is-active {
    display: block;
  }

  .gnav-list {
    flex-direction: column;
    border-left: none;
  }

  .gnav-list > li {
    width: 100%;
    text-align: left;
  }

  .gnav-link {
    display: flex;
    justify-content: space-between;
    height: auto;
    padding: 14px 20px;
    border-right: none;
    border-bottom: 1px solid #f0f0f0;
    font-size: 1rem;
  }

  .sub-menu-bar {
    position: static;
    display: none;
    box-shadow: none;
    padding: 0;
    background-color: #00381b;
  }

  .gnav-item.has-sub.is-open .sub-menu-bar {
    display: block;
  }

  .sub-menu-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 5px 0;
  }

  .sub-menu-inner a {
    display: block;
    padding: 12px 30px;
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .sub-menu-inner .divider {
    display: none;
  }

  .hero-inner {
    width: 92%;
  }

  .news-item a {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .news-date, 
  .news-category {
    margin-right: 0;
  }

  .lead-box {
    padding: 30px 20px;
    font-size: 1rem;
    line-height: 1.8;
  }

  .staff-card {
    flex-direction: column;
  }

  .staff-card--business {
    align-items: flex-start;
    padding: 20px 18px;
  }

  .staff-card--contact .staff-image {
    flex: none;
    height: 220px;
  }
}

/* スマホ用小画面調整 (600px以下) */
@media screen and (max-width: 600px) {
  .page-header {
    padding: 30px 15px;
    margin-bottom: 40px;
  }

  .page-title .ja {
    font-size: 1.5rem;
  }

  .modal-window {
    padding: 20px 15px;
  }

  .lead-box {
    padding: 24px 16px;
    font-size: 0.95rem;
  }
}



