@charset "UTF-8";

/* ==========================================================================
   会社案内関連スタイル (njm_company.css)
   ========================================================================== */


/* ==========================================
   1. 会社案内エリア共通スタイル
   ========================================== */
/* 社長メッセージエリア */
.message-section {
  padding-bottom: 80px;
}

.message-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 20px;
}

.message-body {
  line-height: 2.0;
  font-size: 1.05rem;
  color: #333333;
  margin-bottom: 50px;
}

.message-body p {
  margin-bottom: 1.8em;
}

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

.message-body .lead-text {
  font-weight: bold;
  font-size: 1.15rem;
}

/* 署名エリア */
.message-signature {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 25px;
  border-top: 1px solid #e2e8f0;
  padding-top: 35px;
}

.president-img-wrap img {
  width: 130px;
  height: auto;
  border-radius: 4px;
  object-fit: cover;
}

.signature-text {
  text-align: left;
  line-height: 1.6;
}

.signature-text .company {
  font-size: 0.95rem;
  color: #666666;
}

.signature-text .title {
  font-size: 1rem;
  color: #333333;
}

.signature-text .name {
  font-size: 1.35rem;
  font-weight: bold;
  margin-top: 6px;
  color: #333333;
}


/* ==========================================
   2. 会社概要（index.html）用追加スタイル
   ========================================== */
/* 工場紹介グリッド */
.factory-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px;
  max-width: 900px;
  margin: 0 auto;
}

.factory-card {
  text-align: center;
  background-color: #f8fafc;
  padding: 15px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.factory-card img {
  width: 100%;
  height: auto;
  border-radius: 4px;
}

.factory-name {
  margin-top: 12px;
  font-size: 1.1rem;
  font-weight: bold;
  color: #333333;
}

/* 会社概要テーブル */
.company-table {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-collapse: collapse;
}

.company-table th, 
.company-table td {
  padding: 18px 20px;
  border-bottom: 1px solid #e2e8f0;
  line-height: 1.8;
}

.company-table th {
  width: 25%;
  background-color: #f8fafc;
  text-align: left;
  font-weight: bold;
  color: #333333;
  vertical-align: top;
  border-right: 1px solid #e2e8f0;
}

.company-table td {
  color: #333333;
}

.company-table .sub-text {
  font-size: 0.85rem;
  font-weight: normal;
  color: #666666;
}

.company-table .note {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.9rem;
  color: #555555;
}

.update-date {
  max-width: 900px;
  margin: 15px auto 0;
  text-align: right;
  font-size: 0.9rem;
  color: #666666;
}

/* 画像配置・汎用パーツ */
.img-container {
  margin-top: 25px;
  text-align: center;
}

.responsive-img {
  max-width: 100%;
  height: auto;
}

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

/* ISO・方針エリア */
.iso-container {
  max-width: 850px;
  margin: 0 auto;
  text-align: center;
}

.policy-box {
  background-color: #fafafa;
  padding: 40px 30px;
  border-radius: 8px;
  margin-top: 40px;
  border: 1px solid #eaeaea;
  text-align: center;
}

.policy-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: #004d00;
  margin-bottom: 15px;
}

.policy-title.margin-top {
  margin-top: 45px;
}

.policy-lead {
  font-size: 1.05rem;
  font-weight: bold;
  line-height: 1.9;
  color: #333333;
}

.policy-img-wrap {
  margin: 20px 0;
}

/* レスポンシブ調整（会社概要） */
@media screen and (max-width: 768px) {
  .factory-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .company-table th, 
  .company-table td {
    padding: 12px 10px;
    font-size: 0.95rem;
  }

  .company-table th {
    width: 30%;
  }
}

@media screen and (max-width: 600px) {

  .message-signature {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .president-img-wrap img {
    width: 100px;
  }

  .company-table,
  .company-table tbody,
  .company-table tr,
  .company-table th,
  .company-table td {
    display: block;
    width: 100%;
  }

  .company-table th {
    background-color: #f1f5f9;
    border-right: none;
    border-bottom: none;
    padding-bottom: 5px;
  }

  .company-table td {
    padding-top: 5px;
    padding-bottom: 15px;
  }
}


/* ==========================================
   3. 会社沿革（history.html）用追加スタイル
   ========================================== */
/* 沿革テーブル */
.history-table {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  border-collapse: collapse;
}

.history-table th.his_th,
.history-table td {
  padding: 18px 20px;
  border-bottom: 1px solid #e2e8f0;
  line-height: 1.8;
  vertical-align: top;
}

.history-table th.his_th {
  width: 180px;
  background-color: #f8fafc;
  color: #004d00;
  font-weight: bold;
  white-space: nowrap;
  text-align: left;
  border-right: 1px solid #e2e8f0;
}

.history-table td {
  color: #333333;
}

.history-table tr:hover {
  background-color: #f1f5f9;
}

/* レスポンシブ調整（沿革） */
@media screen and (max-width: 600px) {
  .history-table th.his_th,
  .history-table td {
    display: block;
    width: 100%;
    padding: 10px 12px;
  }

  .history-table th.his_th {
    background-color: #f1f5f9;
    border-right: none;
    border-bottom: none;
    padding-bottom: 4px;
    font-size: 0.95rem;
  }

  .history-table td {
    padding-top: 4px;
    padding-bottom: 16px;
  }
}


/* ==========================================
   4. 会社所在地（access.html）用追加スタイル
   ========================================== */
/* 住所表記ボックス */
.location-address-box {
  text-align: center;
  margin-bottom: 25px;
  line-height: 1.8;
  font-size: 1.1rem;
}

.location-address-box .zip {
  font-weight: bold;
  color: #666666;
}

.location-address-box .address {
  font-size: 1.2rem;
  font-weight: bold;
  color: #333333;
  margin: 4px 0;
}

.location-address-box .tel-fax {
  color: #444444;
}

/* Googleマップ レスポンシブ枠 */
.map-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding-top: 56.25%; /* 16:9比率 */
  height: 0;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.map-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* アクセス方法カード */
.access-routes {
  display: flex;
  flex-direction: column;
  gap: 25px;
  max-width: 900px;
  margin: 0 auto;
}

.access-card {
  background-color: #f8fafc;
  border-left: 5px solid #004d00;
  padding: 25px 30px;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.access-heading {
  font-size: 1.2rem;
  font-weight: bold;
  color: #004d00;
  margin-bottom: 12px;
}

.access-card p {
  line-height: 1.9;
  color: #333333;
  margin: 0;
}

/* 通用門案内 */
.notice-box {
  max-width: 900px;
  margin: 0 auto;
  background-color: #fff8f0;
  border: 1px solid #fed7aa;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
}

.notice-text {
  line-height: 2.0;
  font-size: 1.05rem;
  color: #333333;
  margin-bottom: 25px;
}

.notice-text .highlight-old {
  color: #dc2626;
}

.notice-text .highlight-new {
  color: #16a34a;
}

.notice-img-wrap {
  margin-top: 15px;
}

.notice-img-wrap img {
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  max-width: 100%;
  height: auto;
}

/* ハザードマップ・注意事項エリア */
/* アーカイブボタン */
.hazard-link {
  text-align: center;
  margin-top: 40px;
}

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

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

/* レスポンシブ調整（アクセス） */
@media screen and (max-width: 600px) {
  .access-card {
    padding: 20px 18px;
  }

  .notice-box {
    padding: 20px 15px;
  }

  .location-address-box .address {
    font-size: 1.05rem;
  }
}


/* ==========================================
   5. 3S活動（san-s.html）用追加スタイル
   ========================================== */
/* 活動目的カード */
.purpose-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #e6f4ea 100%);
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 35px 30px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.purpose-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #004d00;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.purpose-lead {
  font-size: 1.1rem;
  line-height: 1.9;
  color: #2d3748;
  margin-bottom: 25px;
}

.purpose-img-wrap {
  max-width: 700px;
  margin: 0 auto;
}

.purpose-img-wrap img {
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 活動内容カード */
.activity-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 25px 30px;
  margin-bottom: 30px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.activity-title {
  font-size: 1.25rem;
  font-weight: bold;
  color: #004d00;
  border-left: 4px solid #004d00;
  padding-left: 12px;
  margin-bottom: 12px;
}

.activity-desc {
  font-size: 1rem;
  line-height: 1.8;
  color: #4a5568;
  margin-bottom: 20px;
}

/* 画像グリッドレイアウト */
.image-grid {
  display: grid;
  gap: 20px;
}

.grid-2col {
  grid-template-columns: repeat(2, 1fr);
}

.grid-item {
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid #edf2f7;
  background-color: #f8fafc;
}

.grid-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.grid-item:hover img {
  transform: scale(1.03);
}

/* メディア掲載カード */
.media-card {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
}

.media-desc {
  font-size: 1.05rem;
  color: #2d3748;
  margin-bottom: 20px;
}

.media-thumb-wrap {
  display: inline-block;
  max-width: 320px;
  position: relative;
}

.media-link {
  display: block;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid #cbd5e1;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s ease;
}

.media-link:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

.media-link img {
  transition: opacity 0.3s ease;
}

.media-link:hover img {
  opacity: 0.9;
}

.hover-text {
  display: block;
  background-color: #63CEAD;
  color: #ffffff;
  font-size: 0.85rem;
  padding: 8px 12px;
  font-weight: bold;
}

/* レスポンシブ調整（3S活動） */
@media screen and (max-width: 640px) {
  .purpose-card {
    padding: 25px 18px;
  }
  
  .purpose-lead {
    font-size: 1rem;
    text-align: left;
  }

  .activity-card {
    padding: 20px 18px;
  }

  .grid-2col {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}


/* ==========================================
   6. SDGs（sdgs.html）用追加スタイル
   ========================================== */
/* メインビジュアルボックス */
.sdgs-hero-box {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 35px 25px;
  text-align: center;
}

.sdgs-top-logo {
  max-width: 580px;
  margin: 0 auto 20px;
}

.sdgs-lead-text {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #1e293b;
  font-weight: 500;
  max-width: 800px;
  margin: 0 auto;
}

/* SDGs取り組みカード */
.sdgs-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  overflow: hidden;
  margin-bottom: 35px;
}

.sdgs-card-header {
  background-color: #f1f5f9;
  padding: 20px 25px;
  display: flex;
  align-items: center;
  gap: 20px;
  border-bottom: 2px solid #cbd5e1;
}

.sdgs-icons {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.sdgs-icons img {
  width: 75px;
  height: 75px;
  object-fit: contain;
}

.sdgs-card-title {
  font-size: 1.3rem;
  font-weight: bold;
  color: #004d00;
  margin: 0;
}

.sdgs-card-body {
  padding: 30px 25px;
}

.sdgs-sub-item {
  margin-bottom: 25px;
}

.sdgs-sub-item:last-child {
  margin-bottom: 0;
}

.sdgs-sub-item.border-top {
  border-top: 1px dashed #e2e8f0;
  padding-top: 25px;
  margin-top: 25px;
}

.sdgs-item-title {
  font-size: 1.1rem;
  font-weight: bold;
  color: #334155;
  margin-bottom: 15px;
  position: relative;
  padding-left: 12px;
  border-left: 3px solid #004d00;
}

.single-img-wrap {
  max-width: 800px;
  margin: 0 auto;
  border-radius: 6px;
  overflow: hidden;
}

.margin-top-md {
  margin-top: 20px;
}

/* レスポンシブ調整（SDGs） */
@media screen and (max-width: 640px) {
  .sdgs-hero-box {
    padding: 25px 15px;
  }

  .sdgs-lead-text {
    font-size: 1rem;
    text-align: left;
  }

  .sdgs-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 18px 15px;
  }

  .sdgs-icons img {
    width: 60px;
    height: 60px;
  }

  .sdgs-card-title {
    font-size: 1.15rem;
  }

  .sdgs-card-body {
    padding: 20px 15px;
  }
}


/* ==========================================
   7. 北友会（hokuyukai.html）用追加スタイル
   ========================================== */
/* 北友会について */
.about-card {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 5px solid #004d00;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.about-title {
  font-size: 1.35rem;
  font-weight: bold;
  color: #004d00;
  margin-bottom: 15px;
}

.about-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #334155;
  margin-bottom: 15px;
}

.about-list {
  padding-left: 20px;
  margin: 0;
}

.about-list li {
  font-size: 1rem;
  line-height: 1.8;
  color: #475569;
  list-style-type: disc;
  margin-bottom: 6px;
}

.about-list li:last-child {
  margin-bottom: 0;
}

.section-intro-text {
  font-size: 1.05rem;
  color: #64748b;
  margin-bottom: 25px;
}

/* イベントカード */
.event-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.event-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 12px;
}

.event-date {
  display: inline-block;
  background-color: #004d00;
  color: #ffffff;
  font-size: 0.85rem;
  font-weight: bold;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
}

.event-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: #1e293b;
  margin: 0;
}

/* 3列画像グリッド */
.grid-3col {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 220px));
  gap: 15px;
  justify-content: flex-start;
}

.grid-3col .grid-item {
  width: 100%;
}

.grid-3col .grid-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

/* 勇退メモリアル用特別カード */
.memorial-card {
  background: linear-gradient(135deg, #ffffff 0%, #fdfbf7 100%);
  border-color: #fde68a;
}

.memorial-card .event-date {
  background-color: #b45309;
}

.event-message {
  margin-top: 20px;
  padding: 18px;
  background-color: #fffbeeb3;
  border: 1px solid #fef3c7;
  border-radius: 6px;
}

.event-message p {
  font-size: 0.98rem;
  line-height: 1.8;
  color: #78350f;
  margin: 0;
}

/* レスポンシブ調整（北友会） */
@media screen and (max-width: 768px) {
  .grid-3col {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  
  .grid-3col .grid-item img {
    height: 130px;
  }
}

@media screen and (max-width: 640px) {
  .about-card {
    padding: 20px 18px;
  }

  .event-card {
    padding: 20px 15px;
  }

  .event-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .grid-3col {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .grid-3col .grid-item img {
    height: 90px;
  }
}


/* ==========================================
   8. 社外活動（our-communities.html）用追加スタイル
   ========================================== */
/* 活動詳細カード */
.activity-detail {
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
}

.activity-highlight {
  font-size: 1.05rem;
  color: #004d00;
  margin-bottom: 15px;
  line-height: 1.6;
}

/* 活動概要リスト */
.activity-info-list {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 8px 15px;
  margin: 15px 0;
  padding: 12px;
  background-color: #ffffff;
  border-radius: 6px;
  border: 1px solid #f1f5f9;
  font-size: 0.95rem;
}

.activity-info-list dt {
  font-weight: bold;
  color: #475569;
}

.activity-info-list dd {
  margin: 0;
  color: #1e293b;
}

.activity-text {
  margin: 0;
  font-size: 0.95rem;
  color: #334155;
}

/* レスポンシブ調整（社外活動） */
@media screen and (max-width: 640px) {
  .activity-info-list {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .activity-info-list dt {
    margin-top: 6px;
  }

  .activity-info-list dt:first-child {
    margin-top: 0;
  }
}
