/* ────────────── */
/* 全体リセット */
/* ────────────── */
* { margin:0; padding:0; box-sizing:border-box; }

body { 
  font-family: sans-serif; 
  line-height: 1.5; 
  padding-top: 80px; /* ヘッダー固定分の余白 */
}

.wrap { padding: 20px; }

h1 {
  margin-top: 50px;    /* タイトルを下げる */
  margin-bottom: 30px; /* タイトル下の余白 */
  text-align: left;  /* 中央寄せ */
}

.main-content {
  margin-left: 30px;
}

/* ────────────── */
/* ヘッダー */
/* ────────────── */
.site-header {
  position: fixed; 
  top:0;
  left:0;
  width:100%; 
  background:#fff; 
  z-index:1000; 
  border-bottom:3px solid #000; 
  box-shadow: 0 6px 10px rgba(0,0,0,0.3); /* 影付き線 */
  padding-bottom: 0px; /* 下の余白を減らす */
}

.header-inner { 
  display:flex; 
  justify-content:space-between; 
  align-items:center; 
  padding:5px 5px; 
  position: relative; 
}

.logo img {
  width: auto;
  height: 45px;     /* 高さも固定 */
  margin-left: 10px; /* ロゴ画像だけ右にずらす */
  object-fit: contain;
  max-width: none; /* 他のCSSで上書きされないように */
}

/* ────────────── */
/* ナビ */
/* ────────────── */
.nav-links { 
  display:flex; 
  align-items:center; 
  gap:20px; 
}

/* メニューリンク基本スタイル */
.nav-links a { 
  text-decoration:none; 
  color:#000; 
  padding:5px 0; 
  position: relative; /* 擬似要素用 */
  transition: color 0.3s ease;
}

/* ホバーで色変更 */
.nav-links a:hover {
  color: #007acc;
}

/* 擬似要素で下線を作る */
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background-color: #007acc;
  transition: width 0.3s ease;
}

/* ホバー時に下線を横いっぱいに */
.nav-links a:hover::after {
  width: 100%;
}

/* ドロップダウン */
.dropdown { position:relative; }

.dropdown-content {
  display:none;
  position:absolute;
  top:100%;
  left:0;
  background:#fff;
  border:1px solid #ccc;
  min-width:150px;
  z-index:1001;
  flex-direction:column;
}
.dropdown-content a { 
  display:block; 
  padding:5px 10px; 
}

/* ドロップダウン表示 */
.dropdown-content.show {
  display:flex;
  flex-direction:column;
}

.arrow {
  display: inline-block;
  transition: transform 0.3s; /* 回転のアニメーション */
}

/* ドロップダウン開いたとき */
.dropdown-content.show + .arrow,
.dropdown.active .arrow {
  transform: rotate(180deg); /* 上向きに回転 */
}

/* 無効化表示は色だけにする */
.dropdown.disabled > .dropbtn {
  color: #aaa;           /* 薄い色 */
  cursor: default;
  /* pointer-events: none; 削除してクリック可能に */
}

/* ────────────── */
/* ハンバーガー */
/* ────────────── */
.nav-toggle { 
  display:none; 
  flex-direction:column; 
  gap:5px; 
  cursor:pointer; 
  position:absolute; 
  top:0px; 
  right:20px; 
  z-index:1002; 
}
.nav-toggle span { 
  width:25px; 
  height:3px; 
  background:#000; 
  transition: 0.3s;
}

/* ────────────── */
/* 表（テーブル） */
/* ────────────── */
table.info { 
  width:100%; 
  border-collapse: collapse; 
  margin-top:20px; 
}
table.info th, table.info td { 
  border:1px solid #000; 
  padding:8px; 
  text-align:left; 
}
table.info th { width:150px; }

/* ────────────── */
/* スマホ対応 */
/* ────────────── */
@media (max-width:850px){
  .nav-toggle { 
    display:flex; 
    margin-top: 25px;     /* 上方向の余白で下に下げる */
  }

  .nav-links { 
    display:none; 
    flex-direction:column; 
    position:absolute; 
    top:60px; 
    right:0;   
    background:#fff; 
    width:auto; 
    min-width:150px; 
    border:1px solid #ccc; 
    z-index:1001;
    padding: 10px 0;       /* 上下に余白を追加 */
  }

  /* li に余白を追加 */
  .nav-links li {
    margin-bottom: 10px;   /* 各リンクの下に余白 */
  }

  /* 最後の li の余白を確保 */
  .nav-links li:last-child {
    margin-bottom: 10px;   /* 最後のリンク下にも余白 */
  }

  /* aタグ自体にもクリックしやすい余白 */
  .nav-links a {
    display: block;
    padding: 10px 10px;    /* 上下左右の余白 */
    text-decoration: none;
    /*text-align: left; /* ← 確実に左揃え */
  }

  .nav-links.active { display:flex; }

  .dropdown-content { 
    /*display:none;*/ 
    position:relative; 
    border:none; 
    width:auto; 
    text-align:left; 
    background:#fff;
  }
  .dropdown-content.show { display:flex; flex-direction:column; }

  body {
    padding-top: 60px; /* スマホ用に調整 */
  }
}

/* ────────────── */
/* お問い合わせフォーム */
/* ────────────── */
.contact-title {
  margin-top: 0;        /* 上の余白を消す */
  margin-bottom: 8px;   /* 下は少しだけ残す */
}

.contact-top {
  display: flex;
  align-items: flex-start; /* 念のため */
  flex-direction: column;  /* ← これを追加 */
  justify-content: flex-start; /* ← これが肝 */
}

.contact-lead {
  flex: 1;
}

.contact-examples {
  width: 360px;          /* 固定幅にするのがポイント */
  margin-left: 24px;    /* 左から少し離す */
  margin-top: 24px;  /* 必要な分だけ値を調整 */
  margin-bottom: 20px;
  /*margin-right: auto;   /* 右側の余白を吸収させる */
}

.examples-title {
  font-weight: bold;
  margin-bottom: 8px;
}

/* スマホでは縦並び */
@media (max-width: 768px) {
  .contact-top {
    flex-direction: column;
  }
}


.contact-form {
  display: flex;
  flex-direction: column;
}

.contact-form label {
  margin-top: 10px;
  margin-bottom: 4px;
  font-weight: bold;
}

.contact-form input {
  width: 300px;
  max-width: 100%;
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  margin-left: 20px;
}

.contact-form textarea {
  height: 200px;
  min-height: 150px;
  width: calc(100% - 20px);
  max-width: 100%;
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  margin-left: 20px;
  margin-right: 20px;
  box-sizing: border-box;
}

.contact-form button {
  width: 150px;
  margin: 16px auto 0;
  display: block;
  padding: 8px 16px;
  font-size: 16px;
  background-color: #007acc;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.contact-form button:hover {
  background-color: #005fa3;
}
.nav-links.hidden {
  display: none !important;
}

/* 製品紹介メニュー無効化 */
.dropdown.disabled > .dropbtn {
  color: #aaa;          /* 薄い色にして未完成感を表現 */
  cursor: default;      /* カーソルを変える */
  pointer-events: none; /* クリック無効 */
}

.dropdown.disabled .arrow {
  display: none;        /* 矢印非表示 */
}

/* スマホ表示でも同様に無効化 */
@media (max-width:850px){
  .dropdown.disabled > .dropbtn {
    pointer-events: none;
    color: #aaa;
  }
  .dropdown.disabled .arrow {
    display: none;
  }
}
