/* style.css */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Helvetica Neue', sans-serif;
  background: #fff;
  color: #000;
  line-height: 1.6;
}
.logo img {
  height: 60px;
  width: auto;
  display: block;
}

header {
  background: #000;
  color: #fff;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

header h1 {
  font-size: 20px;
  margin-bottom: 10px;
}

nav ul {
  display: flex;
  gap: 15px;
  list-style: none;
  flex-wrap: wrap;
}

nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
}

.main-visual {
  position: relative;
  overflow: hidden;
  height: 60vh;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 36px;
  text-shadow: 0 0 5px rgba(0,0,0,0.5);
}


section {
  padding: 60px 20px;
  max-width: 1000px;
  margin: auto;
}

section h3 {
  font-size: 24px;
  margin-bottom: 20px;
  border-left: 5px solid #c00;
  padding-left: 10px;
}

.news-item,
.product-item {
  margin-bottom: 20px;
  font-size: 16px;
}

footer {
  background: #222;
  color: #aaa;
  padding: 20px;
  text-align: center;
  font-size: 14px;
}

/* ==== レスポンシブ対応 ==== */
@media (max-width: 768px) {
  .logo img {
    height: 45px;
  }
  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1000;
  }


  header h1 {
    font-size: 18px;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
  }

  .main-visual {
    height: 40vh;
    font-size: 24px;
    text-align: center;
    padding: 0 10px;
  }

  section {
    padding: 40px 15px;
  }

  section h3 {
    font-size: 20px;
  }

  .news-item,
  .product-item {
    font-size: 14px;
  }
  .slide-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 0px;
    margin-left: 5%;
    margin-right: 5%;
  }

  .slide-logo {
    max-height: 30vh;
    width: 100%;
  }

  footer {
    font-size: 12px;
  }
}


/* ==== Slickスライダー用CSSまとめ（調整後） ==== */
.slider {
  width: 100%;
  height: 80vh; /* 以前の100vhから調整 */
  position: relative;
  overflow: hidden;
}

.slick-list,
.slick-track,
.slick-slide,
.slide {
  height: 80vh !important;
}

.slick-slide {
  display: flex !important;
  align-items: stretch;
}

.slide {
  position: relative;
  width: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}

.slide .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.slide-content {
  position: relative;
  z-index: 2;
  margin-left: 10%;
  max-width: 90%;
  display: flex;
  align-items: center;
  gap: 40px;
  color: white;
  text-shadow: 0 0 6px rgba(0,0,0,0.6);
}

.slide-logo {
  max-height: 70vh;
  width: auto;
  margin-bottom: 0;
}

.slide-description-box {
  flex: 1;
  font-size: 14px;
  line-height: 1.8;
}

.slide-title {
  font-size: 32px;
  font-weight: bold;
  margin-bottom: 10px;
}

.slide-desc {
  font-size: 14px;
  margin-bottom: 20px;
}


/* === ドットボタン修正 === */
.slick-dots {
  position: absolute;
  bottom: 25px;
  width: 100%;
  text-align: center;
  z-index: 2;
}

.slick-dots li {
  display: inline-block;
  margin: 0 6px;
}

.slick-dots button {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #888;
  color: #000;
  font-weight: bold;
  font-size: 12px;
  line-height: 24px;
  text-align: center;
  border: 1px solid #888;
  opacity: 1;
  cursor: pointer;
  padding: 0;
}

.slick-dots .slick-active button {
  background: #fff;
  color: #000;
  border-color: #000;
}
.slide-button {
  display: inline-block;
  background: #fff;
  color: #000;
  padding: 12px 28px;
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  border: 2px solid #fff;
  transition: all 0.3s ease;
  margin-top: 24px;
  text-shadow: none; /* ドロップシャドウ除去 */
}

.slide-button:hover {
  background: transparent;
  color: #fff;
  border-color: #fff;
}



/* メニュー本体 */
nav {
  display: flex;
  gap: 15px;
}

@media (max-width: 768px) {
  nav {
    position: absolute;
    top: 80px;
    right: 0;
    width: 100%;
    background: #000;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
    gap: 15px;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    z-index: 10;
  }

  nav.active {
    transform: translateY(0);
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
  }
}


/* スマホ表示の時だけ表示 */
@media (max-width: 768px) {

  nav#global-nav {
    display: none;
    position: absolute;
    top: 60px;
    right: 0;
    background: #000;
    width: 100%;
    flex-direction: column;
  }

  nav#global-nav.active {
    display: flex;
  }

  nav#global-nav ul {
    flex-direction: column;
    padding: 20px;
  }

  nav#global-nav li {
    margin-bottom: 10px;
  }
}
@media (max-width: 768px) {
  nav {
    display: none;
  }

  nav.active {
    display: flex;
    flex-direction: column;
    background: #000;
    width: 100%;
    position: absolute;
    top: 60px;
    left: 0;
    padding: 20px;
    z-index: 999;
  }

  nav ul {
    flex-direction: column;
    gap: 10px;
  }

  nav ul li {
    margin-bottom: 10px;
  }
}
.company-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.company-table th {
  text-align: left;
  vertical-align: top;
  padding: 8px 16px 8px 0;
  white-space: nowrap;
  font-weight: bold;
  width: 120px; /* 左項目の幅固定で揃える */
  color: #000;
}

.company-table td {
  padding: 8px 0;
  color: #000;
}
.contact-button {
  display: inline-block;
  padding: 14px 32px;
  background-color: #000;
  color: #fff;
  font-weight: bold;
  text-decoration: none;
  border-radius: 6px;
  font-size: 16px;
  border: 2px solid #000;
  transition: all 0.3s ease;
}

.contact-button:hover {
  background-color: transparent;
  color: #000;
}
@media (max-width: 768px) {
  .slide-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 0 auto;
    gap: 20px;
  }

  .slide-logo {
    max-height: 30vh;
    width: auto;
    margin-bottom: 10px;
  }

  .slide-description-box {
    font-size: 14px;
    line-height: 1.8;
    max-width: 98%;
  }

  .slide-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
  }
}

.language-tab {
  position: fixed;
  top: 40%;
  right: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 2px;
  transform: translateY(-50%);
}

.language-tab a.lang-btn {
  writing-mode: vertical-rl;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  text-decoration: none;
  padding: 20px 8px;
  font-size: 1em;
  font-weight: bold;
  border-radius: 4px 0 0 4px;
  margin: 1px 0;
  transition: background 0.3s ease;
  text-align: center;
}

.language-tab a.lang-btn:hover {
  background: #fff;
  color: #000;
}

.language-tab.hide {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* スマホ向け調整 */
@media screen and (max-width: 768px) {
  .language-tab a.lang-btn {
      padding: 18px 10px;
      font-size: 1em;
  }
  .language-tab {
    top: 75%
  }
}

/* PC・タブレット共通 */
.slide-logo {
  width: 500px;
  max-width: 80%;
  margin: 0 auto;
  display: block;
  z-index: 10;
}

/* スマホ用（768px以下）でロゴを小さく・下げる */
@media screen and (max-width: 768px) {
  .slide-logo {
    width: 400px;
    margin-top: 60px; /* ←ここで下にずらす */
  }

  .slide-content {
    padding-top: 40px; /* 全体の詰まり感を減らす */
  }
}

@media (max-width: 768px) {
  nav#global-nav {
    display: none;
  }

  nav#global-nav.active {
    display: flex;
    flex-direction: column;
  }
}

header {
  position: relative;
  z-index: 1000;
}

/* ========== 99. ハンバーガーメニュー関連スタイル (全てここにまとめる) ========== */

/* ハンバーガーアイコンの基本スタイル (PCでは非表示) */
.menu-toggle {
  display: none; /* 初期状態は非表示 (スマホ時にflexで表示) */
  flex-direction: column;
  justify-content: space-between; /* 棒間のスペースを均等に */
  cursor: pointer;
  width: 30px; /* ハンバーガーボタンの幅 */
  height: 22px; /* ハンバーガーボタンの高さ (4px棒×3本 + 5pxギャップ×2箇所 = 22px) */
  background: none;
  border: none;
  padding: 0;
  z-index: 1001; /* メニューより手前に */
}

/* ハンバーガーの棒のスタイル */
.menu-toggle span {
  display: block;
  height: 4px; /* 各棒の高さ */
  background: #fff;
  border-radius: 2px;
  transition: all 0.3s ease; /* アニメーション用 */
}

/* ハンバーガーメニュー展開時のアニメーション (X印) */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translateY(9px); /* X字の交差位置調整 */
}
.menu-toggle.active span:nth-child(2) {
  opacity: 0; /* 中央の棒を非表示 */
}
.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-9px); /* X字の交差位置調整 */
}

/* レスポンシブ対応 (最大幅768px以下のスタイル) */
@media (max-width: 768px) {
  /* ハンバーガーアイコンはスマホ時のみ表示・固定 */
  .menu-toggle {
    display: none; /* スマホ時に表示 */
    position: fixed; /* 画面右上に固定 */
    top: 16px;
    right: 16px;
  }

  /* スマホ用グローバルナビゲーション (メニュー展開時) */
  nav#global-nav {
    display: none; /* 初期状態は非表示 */
    position: fixed; /* 画面全体に固定 */
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh; /* 全画面高さ */
    background: #000;
    flex-direction: column;
    align-items: center; /* メニュー項目を中央揃え */
    justify-content: center; /* メニュー項目を縦方向中央に */
    padding: 20px;
    gap: 20px; /* メニュー項目間の間隔 */
    transform: translateY(-100%); /* 画面外に隠しておく */
    transition: transform 0.3s ease; /* アニメーション */
    z-index: 999; /* ハンバーガーアイコンより下に */
  }

  nav#global-nav.active {
    transform: translateY(0); /* アクティブ時に表示 */
    display: flex; /* transformアニメーションのためflexも忘れずに */
  }

  nav#global-nav ul {
    flex-direction: column;
    gap: 15px; /* メニュー項目間の間隔 */
    text-align: center; /* テキストを中央揃え */
    width: 100%; /* 全幅 */
  }

  nav#global-nav ul li a {
    font-size: 24px; /* スマホ時のメニューフォントサイズを大きく */
    padding: 10px 0; /* クリックしやすいようにパディング */
    display: block; /* リンクをブロック要素にしてクリック範囲を広げる */
  }
}

footer .social-icons {
  margin-bottom: 10px;
}

footer .social-icons a {
  color: #fff;
  margin: 0 10px;
  font-size: 20px;
  text-decoration: none;
  transition: color 0.3s ease;
}

footer .social-icons a:hover {
  color: #ccc;
}

/* PRODUCTセクションのスタイル */
#products {
  /* section { padding: 60px 20px; } に合わせるため、個別の設定は削除 */
  /* background-color や text-align も既存のサイトの統一感を出すために削除 */
}

#products h3 {
  /* 既存のsection h3のスタイルに完全に合わせる */
  font-size: 24px;
  margin-bottom: 20px;
  border-left: 5px solid #c00;
  padding-left: 10px;
  /* colorはbodyで設定されている黒を継承 */
}

/* h3の下線スタイルは不要なので非表示にする */
#products h3::after {
  content: none;
}

.product-logo-grid {
  display: flex; /* Flexboxを有効にする */
  flex-wrap: wrap; /* コンテナ幅を超える場合に折り返す */
  justify-content: flex-start; /* アイテムを左に揃える */
  gap: 20px; /* アイテム間の隙間 */
  /* max-widthやmarginは親の#products（section要素）が制御するため、ここには不要 */
}

.product-logo-item {
  /* PC表示（広幅スクリーン）では3列 */
  flex: 1 1 calc(33.333% - 13.333px); /* 3列表示（gap 20pxを考慮: (100% - 2*20px)/3 = 33.333% - 13.333px ） */
  max-width: calc(33.333% - 13.333px); /* 最大幅も制限して確実に3列にする */
  
  text-align: center; /* アイテム内の画像を中央に */
  transition: transform 0.3s ease, box-shadow 0.3s ease; /* ホバー時のアニメーション */
  box-sizing: border-box; /* paddingとborderを幅に含める */

  /* カード形式のスタイル */
  background-color: #fff; /* 白い背景 */
  border-radius: 8px; /* 角を丸める */
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* 軽い影 */
  padding: 15px; /* 内側の余白 */
}

/* レスポンシブ対応 */
/* タブレット（992px以下）で2列表示 */
@media (max-width: 992px) {
  .product-logo-item {
    flex: 1 1 calc(50% - 10px); /* 2列表示（gap 20pxを考慮: (100% - 1*20px)/2 = 50% - 10px ） */
    max-width: calc(50% - 10px);
  }
}

/* スマートフォン（768px以下）で1列表示 */
@media (max-width: 768px) {
  .product-logo-item {
    flex: 1 1 100%; /* 1列表示 */
    max-width: 100%;
  }
}

.product-logo-item img {
  width: 100%; /* 親要素（.product-logo-item）の幅に合わせる */
  height: auto; /* 比率を維持 */
  display: block; /* 画像の下の余白をなくす */
  max-width: 300px; /* ロゴ画像の最大幅。必要に応じて調整してください */
  margin: 0 auto; /* 画像を中央に配置 */
  border-radius: 4px; /* 画像の角を少し丸める */
  /* box-shadow は親要素に設定済みなのでここには不要 */
}

.product-logo-item:hover {
  transform: translateY(-5px); /* ホバーで少し浮き上がる */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* ホバーで影を濃くする */
}