@charset "UTF-8";

/* 基本リセット & 共通設定 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: "Helvetica Neue", Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
  line-height: 1.6;
  color: #333333;
  background-color: #ffffff;
}
a {
  color: #004080;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

/* ヘッダー・メイン容器 */
.container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 15px;
}
header {
  padding: 15px 0;
  background: #fdfdfd;
}
.header-lead {
  font-size: 0.8rem;
  color: #777777;
  margin-bottom: 10px;
}
.header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}
.logo h1 {
  font-size: 1.5rem;
  font-weight: bold;
}

/* お問い合わせ・コンタクトボタン */
.header-contact-btn {
  display: none;
  background: #008040;
  color: #ffffff;
  padding: 8px 15px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: bold;
}
/* PC画面(768px以上)ではボタンを表示する（必要に応じて調整してください） */
@media (min-width: 768px) {
  .header-contact-btn {
    display: inline-block;
  }
}
.header-contact-btn:hover {
  background: #006633;
  text-decoration: none;
}

/* フルサイズ画像（ヒーローバナー） */
.hero-image {
  width: 100%;
  margin-bottom: 40px; /* 下のコンテンツとの余白 */
}
.hero-image img {
  width: 100%;
  height: auto;
  display: block; /* 画像の下にできる不要な隙間を消す */
  object-fit: cover; /* 画像の比率を保ったまま綺麗に配置 */
}

/* グローバルナビゲーション */
.global-nav {
  background: #333333;
  margin-bottom: 30px;
}
.global-nav ul {
  display: flex;
  list-style: none;
  flex-wrap: wrap;
}
.global-nav li {
  flex: 1;
  min-width: 120px;
  text-align: center;
}
.global-nav a {
  display: block;
  padding: 12px 10px;
  color: #ffffff;
  font-weight: bold;
  font-size: 0.95rem;
  transition: background 0.3s;
}
.global-nav a:hover, .global-nav a.active {
  background: #004080;
  text-decoration: none;
}

/* レイアウト構造（2カラム構成用） */
.layout-wrapper {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-bottom: 40px;
}
@media (min-width: 768px) {
  .layout-wrapper {
    flex-direction: row;
  }
  .main-content {
    flex: 1;
  }
  .sidebar {
    width: 300px;
    flex-shrink: 0;
  }
}

/* コンテンツ装飾等 */
section {
  margin-bottom: 30px;
}
h2.section-title {
  font-size: 1.4rem;
  color: #004080;
  border-left: 5px solid #004080;
  padding-left: 10px;
  margin-bottom: 15px;
}
h3.sub-section-title {
  font-size: 1.15rem;
  color: #008040;
  border-bottom: 1px dashed #008040;
  padding-bottom: 5px;
  margin-bottom: 10px;
}

/* トピックス・お知らせ */
.topics-list {
  list-style: none;
}
.topics-list li {
  padding: 10px 0;
  border-bottom: 1px dashed #cccccc;
  font-size: 0.95rem;
}
.topics-date {
  font-weight: bold;
  color: #666666;
  margin-right: 15px;
  display: inline-block;
}

/* 会社概要テーブル */
.info-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}
.info-table th, .info-table td {
  padding: 12px;
  border-bottom: 1px dashed #cccccc;
  font-size: 0.95rem;
}
.info-table th {
  width: 25%;
  min-width: 100px; /* スマホで縮みすぎないように調整 */
  text-align: left;
  background: #f9f9f9;
  color: #555555;
}

/* 下部製品バナーリンクグリッド */
.product-grid {
  display: grid;
  /* タイポ(11fr)を修正し、自動で折り返すレスポンシブ設定 */
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 40px 0;
}
.product-card {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  overflow: hidden;
  text-align: center;
  padding: 15px;
  transition: transform 0.2s, box-shadow 0.2s;
  background: #ffffff;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  text-decoration: none;
}
.product-card h4 {
  font-size: 0.9rem;
  color: #333333;
  margin-top: 10px;
}

/* フッター */
footer {
  background: #f4f4f4;
  padding: 30px 0;
  margin-top: 40px;
  border-top: 1px solid #e0e0e0;
}
.footer-nav {
  text-align: center;
  margin-bottom: 20px;
  font-size: 0.85rem;
}
.footer-nav a {
  margin: 0 10px;
  color: #555555;
  display: inline-block; /* スマホでタップしやすくするための調整 */
  padding: 5px;
}
.footer-info {
  text-align: center;
  font-size: 0.85rem;
  color: #444444;
  margin-bottom: 15px;
}
.copyright {
  text-align: center;
  font-size: 0.75rem;
  color: #888888;
}

/* 汎用2カラムグリッド（詳細用・会社概要など） */
.grid-2col {
  display: grid;
  /* スマホなどの狭い画面では縦並び（1カラム） */
  grid-template-columns: 1fr;
  gap: 20px;
}

/* タブレット・PCサイズ(768px以上)になったら横並び（2カラム）にする */
@media (min-width: 768px) {
  .grid-2col {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ロゴのサイズ調整とレスポンシブ対応 */
.responsive-logo {
  width: 280px; /* パソコン表示での基本サイズ（お好みで数値を調整してください） */
  max-width: 100%;
  height: auto;
}

/* タブレット・スマートフォン向けのサイズ調整（画面幅768px以下の場合） */
@media screen and (max-width: 768px) {
  .responsive-logo {
    width: 200px; /* スマホ表示でのサイズ（お好みで数値を調整してください） */
  }
}

/* PCサイズではスマホ用メニューとボタンを非表示にする */
.hamburger-btn, .sp-nav {
  display: none;
}

/* 画面幅768px以下のスマートフォン向けスタイル */
@media screen and (max-width: 768px) {
  /* ボタンの配置と見た目 */
  .hamburger-btn {
    display: block;
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 100;
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
  }

  /* 三本線の基本スタイル */
  .hamburger-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #333; /* 株式会社ロジック様のテーマカラーに合わせて変更してください */
    transition: all 0.3s ease;
  }
  .hamburger-line:nth-child(1) { top: 0; }
  .hamburger-line:nth-child(2) { top: 11px; }
  .hamburger-line:nth-child(3) { top: 22px; }

  /* メニューが開いた時（activeクラスがついた時）の三本線の変化（「×」印になる） */
  .hamburger-btn.active .hamburger-line:nth-child(1) { transform: translateY(11px) rotate(45deg); }
  .hamburger-btn.active .hamburger-line:nth-child(2) { opacity: 0; }
  .hamburger-btn.active .hamburger-line:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

  /* スマホ用メニュー画面の裏側（ドロワー） */
  .sp-nav {
    display: block;
    position: fixed;
    top: 0;
    right: -100%; /* 初期状態は画面の外に隠す */
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.95);
    z-index: 99;
    transition: right 0.3s ease;
    padding-top: 80px;
  }

  /* メニューが開いた時（activeクラスがついた時）に右からスライドイン */
  .sp-nav.active {
    right: 0;
  }

  /* メニュー内のリンク配置 */
  .sp-nav-list {
    list-style: none;
    padding: 0;
    text-align: center;
  }
  .sp-nav-list li {
    margin: 25px 0;
  }
  .sp-nav-list a {
    font-size: 18px;
    color: #333;
    text-decoration: none;
    font-weight: bold;
    display: block;
  }
}

@media screen and (max-width: 768px) {
  /* 以前追加したハンバーガーメニューや.global-navの記述がここにある状態 */

  .global-nav {
    display: none !important;
  }

  /* ★ここに今回新しく追記します */
  .header-lead {
    padding-right: 60px;
    font-size: 0.85rem;
    line-height: 1.5;
  }
}