/* 全体の基本設定 */
body {
  font-family: "Helvetica", "Noto Sana JP", sans-serif;
  background-color: #f9f9f9;
  color: #2d2d2d;
  line-height: 2.0;
  margin: 0;
  font-size: 28px; /* ← ここで全体の文字サイズを指定 */
  margin-top: 0px; /* 固定ヘッダー分の余白 */
}

.back-to-top {
  position: fixed;
  right: 60px;      /* 右端から少し離して目立たせる */
  bottom: 60px;     /* 下からも離して独立感を出す */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #1a1a1a;   /* 文字色を濃くしてハッキリと */
  z-index: 9999;
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px);
}

/* スクロール時に現れる動き */
.back-to-top.is-show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* 垂直バー：太さを3pxに、長さを120pxへ拡大 */
.top-line {
  width: 3px;       /* 1pxから3pxへ太く */
  height: 120px;    /* 80pxから120pxへ長く */
  background-color: #d11; /* 力強い赤 */
  margin-bottom: 20px;
  transition: all 0.5s ease;
  position: relative;
  overflow: hidden;
}

/* バーに「光が走る」ような演出（2025年トレンド） */
.top-line::after {
  content: "";
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent, #fff, transparent);
  animation: line-shine 3s infinite;
}

@keyframes line-shine {
  0% { top: -100%; }
  50% { top: 100%; }
  100% { top: 100%; }
}

/* 文字部分：サイズを上げ、間隔を広く */
.top-text {
  font-family: 'Arial Black', sans-serif; /* より太いフォント */
  font-size: 14px;    /* 10pxから14pxへ拡大 */
  font-weight: 900;
  letter-spacing: 0.3em;
  writing-mode: vertical-rl;
  text-transform: uppercase;
}

/* ホバー時の圧倒的インパクト */
.back-to-top:hover {
  transform: translateY(-15px); /* 大きく浮き上がる */
}

.back-to-top:hover .top-line {
  height: 160px;    /* 120pxからさらにスッと伸びる */
  width: 5px;       /* さらに太くなる */
  background-color: #000; /* 色を黒に変えて変化を強調 */
}

.back-to-top:hover .top-text {
  color: #d11;      /* 文字色を赤に変える */
}

/* スマホ対応：スマホでも存在感を維持 */
@media (max-width: 767px) {
  .back-to-top {
    right: 25px;
    bottom: 25px;
  }
  .top-line {
    height: 80px;
    width: 2px;
  }
  .top-text {
    font-size: 11px;
  }
}

/* ヘッダー */
/* ヘッダー全体 */
header {
  background-color: #f9f9f9; /*  */
  color: #000;
  width: 100%;
  height: 80px;             /* 60pxから少し広げてゆとりを出す */
  position: relayive;          /* 上部に固定 */
  top: 0;
  left: 0;
  z-index: 2000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  display: flex;
  align-items: center;      /* 垂直中央揃え */
}

header .container {
  width: 100%;
  max-width: 1800px;        /* フッターの幅と統一 */
  margin: 0 auto;
  padding: 0 40px;
}

.header-inner {
  display: flex;
  justify-content: space-between; /* ロゴは左、ナビは右 */
  align-items: center;
  width: 100%;
}

/* --- ロゴエリア --- */
.logo {
  display: flex;
  align-items: center;
  transition: opacity 0.3s ease;
  text-decoration: none;
}

.logo:hover {
  opacity: 0.8;
}

.logo-img {
  height: 50px;             /* 高さを固定してヘッダー内に収める */
  width: auto;
  display: block;
}

/* --- 右側エリア（ナビ + SNS） --- */
.nav-sns {
  display: flex;
  align-items: center;      /* 横一列に並べる */
  gap: 40px;                /* ナビとSNSの間隔 */
}

/* ナビゲーション（横並び） */
.global-nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin: 0;
  padding: 0;
}

.global-nav a {
  color: #000;           /* 文字 */
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}

.global-nav a:hover {
  color: #cccccc;
}

/* --- サブメニュー設定 --- */
.has-submenu {
  position: relative; /* 子要素（サブメニュー）の基準点 */
}

/* --- サブメニューの初期状態（隠す） --- */
.global-nav .has-submenu .submenu {
  display: block;        /* 構造は維持しつつ */
  visibility: hidden;    /* 見えなくする */
  opacity: 0;           /* 透明にする */
  position: absolute;
  top: 100%;            /* 親メニューの真下 */
  left: 50%;
  transform: translateX(-50%) translateY(10px); /* 少し下にずらしておく */
  background: #ffffff;  /* 背景は白が見やすい */
  list-style: none;
  margin: 0;
  padding: 10px 0;
  min-width: 180px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  transition: all 0.3s ease; /* ふわっと出すためのアニメーション */
  pointer-events: none; /* 隠れている時はクリック反応させない */
  z-index: 9999;
}

/* --- ホバー時に表示（出す） --- */
.global-nav .has-submenu:hover .submenu {
  visibility: visible;
  opacity: 1;
  transform: translateX(-50%) translateY(0); /* 定位置に戻る */
  pointer-events: auto; /* 表示されたらクリックを有効にする */
}

/* --- サブメニュー内のリンク装飾 --- */
.global-nav .submenu li a {
  display: block;
  padding: 12px 20px !important;
  color: #333333 !important; /* 文字色は黒 */
  font-size: 14px;
  text-decoration: none;
  line-height: 1.4 !important; /* 行の高さをリセット */
  text-align: left;
  transition: background 0.2s;
  border: none !important; /* 余計な線を消す */
}

.global-nav .submenu li a:hover {
  background: #f5f5f5;
  color: #d11 !important; /* ホバーで赤に */
  text-decoration: none;
}

/* --- 【重要】スマホでの開きっぱなし防止 --- */
@media (max-width: 991px) {
  /* スマホ版でホバーが効かないようにリセット */
  .global-nav .has-submenu:hover .submenu {
    display: none; /* スマホ用ハンバーガーメニュー等を作るまでは隠す設定が安全 */
  }
}
/* --- SNSリンク（横並び） --- */
.sns-links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  border-left: 1px solid rgba(255,255,255,0.3); /* ナビとの境界線 */
  padding-left: 30px;
}

.sns-links a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #000;
  text-decoration: none;
  font-size: 13px;
  font-weight: bold;
}

.sns-links svg {
  vertical-align: middle;
}

/* お問い合わせボタン（CTA）だけ強調 */
.cta {
  background-color: #009e6f;   /* 強調 */
  padding: 10px 20px !important;
  border-radius: 2px;
}

.cta:hover {
  background-color: #d9f1ea;
  color: #000 !important;
}

/* --- ハンバーガーボタンの基本スタイル（PCでは隠す） --- */
.menu-trigger {
  display: none;
  width: 40px;
  height: 40px;
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 3000;
}

.menu-trigger span {
  display: block;
  position: absolute;
  left: 10px;
  width: 20px;
  height: 2px;
  background-color: #000;
  transition: all 0.4s;
}

.menu-trigger span:nth-child(1) { top: 13px; }
.menu-trigger span:nth-child(2) { top: 19px; }
.menu-trigger span:nth-child(3) { top: 25px; }

/* ボタンが押された（active）時のアニメーション */
.menu-trigger.is-active span:nth-child(1) { transform: translateY(6px) rotate(-45deg); }
.menu-trigger.is-active span:nth-child(2) { opacity: 0; }
.menu-trigger.is-active span:nth-child(3) { transform: translateY(-6px) rotate(45deg); }

/* --- スマホ対応 (1024px以下) --- */
@media (max-width: 1024px) {
  .menu-trigger {
    display: block; /* ボタンを表示 */
  }

  .nav-sns {
    display: flex; /* noneから変更 */
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    position: fixed; /* 画面に固定 */
    top: 0;
    right: -100%; /* 最初は画面の右に隠す */
    width: 80%; /* 画面の8割を覆う */
    height: 100vh;
    background-color: #fff;
    padding: 100px 20px;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    transition: right 0.5s ease; /* スライドアニメーション */
    z-index: 2500;
    overflow-y: auto;
  }

  /* メニューが開いた時（is-active） */
  .nav-sns.is-active {
    right: 0;
  }

  /* スマホ時のナビを縦並びに */
  .global-nav ul {
    flex-direction: column;
    gap: 0;
    width: 100%;
    text-align: center;
  }

  .global-nav a {
    display: block;
    padding: 15px 0;
    font-size: 18px;
    border-bottom: 1px solid #eee;
  }

  /* スマホ時のサブメニュー（常に表示、またはタップで展開） */
  .global-nav .has-submenu .submenu {
    position: static;
    display: block;
    visibility: visible;
    opacity: 1;
    transform: none;
    box-shadow: none;
    background: #f9f9f9;
    min-width: 100%;
    pointer-events: auto;
  }

  .sns-links {
    border-left: none;
    padding-left: 0;
    margin-top: 30px;
    flex-direction: column;
  }
}
:root {
  --main-green: #008542;
  --light-green: #f1f8f4;
  --text-dark: #111111;
  --text-gray: #333333;
}

body {
  font-family: "Helvetica Neue", Arial, "Hiragino Sans", "Meiryo", sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  margin: 0;
}

.l-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ヒーローエリア */
.p-sier-hero {
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('img/sierproject.jpg') center/cover;
  padding: 120px 0;
  color: #fff;
  text-align: center;
   /* 画像の上に80%の白を重ねる設定 */
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.2)), 
    url('img/sierproject.jpg');
  background-size: cover;
  background-position: center;
}

.p-sier-hero__sub {
  font-size: 1.8rem;
  letter-spacing: 0.3em;
  font-weight: bold;
  color: #008542; /* トライテクス・グリーン */
}

.p-sier-hero__ttl {
  font-size: 2.5rem;
  margin: 10px 0;
   color: #111111; /* 濃い黒 */
}
.p-sier-hero__txt {
  font-size: 1.1rem;
  color: #111111; /* 灰 */
  max-width: 800px;
  margin: 0 auto;
}
/* 実績・資格 */
.p-sier-spec {
  margin-top: -60px; /* ヒーローに少し被せる */
  padding-bottom: 80px;
}

.p-sier-spec__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.p-sier-spec__item {
  background: #fff;
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  border-bottom: 5px solid var(--main-green);
}

.p-sier-spec__item--green {
  background: var(--main-green);
  color: #fff;
}

.p-sier-spec__label {
  font-size: 12px;
  font-weight: bold;
  display: block;
  margin-bottom: 10px;
  opacity: 0.8;
}

.p-sier-spec__ttl {
  font-size: 24px;
  margin-bottom: 15px;
}

.p-sier-spec__count strong {
  font-size: 28px;
  color: #ffda00; /* エキスパートを目立たせる */
}
.p-sier-spec__count .indent-2kyu {
  display: inline-block;
  text-indent: 4.5em; /* ここで“2級”の前のスペース量を調整 */
}



/* ロボコラボ全体の背景と余白 */
.p-sier-collabo {
  background: var(--light-green);
  padding: 100px 0;
}

/* 左右並びの制御 */
.p-sier-collabo__flex {
  display: flex;
  align-items: center; /* 垂直方向中央 */
  gap: 60px;           /* 左右の間隔 */
}

/* 左側：テキストエリア */
.p-sier-collabo__text-side {
  flex: 1;
  text-align: left;    /* 文字を左寄せ */
}

.c-section-ttl {
  font-size: 32px;
  margin-bottom: 20px;
  color: var(--main-green);
  line-height: 1.3;
  text-align: left;    /* タイトルも左寄せ */
}

.p-sier-collabo__lead {
  font-size: 1.2rem;
  font-weight: bold;
  color: #111;
  margin-bottom: 15px;
}

.p-sier-collabo__txt {
  font-size: 1rem;
  color: #333;
  margin-bottom: 25px;
}

/* タグの並び */
.p-sier-collabo__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.c-tag {
  background: #fff;
  border: 1px solid var(--main-green);
  color: var(--main-green);
  padding: 6px 16px;
  border-radius: 4px;
  font-weight: bold;
  font-size: 13px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* 右側：画像エリア */
.p-sier-collabo__img-side {
  flex: 1;
}

.p-sier-collabo__img {
  width: 100%;
  height: auto;
  border-radius: 12px; /* 角丸でモダンに */
  box-shadow: 0 20px 40px rgba(0,0,0,0.1);
  vertical-align: bottom;
}

/* スマホ対応（768px以下は縦並び） */
@media (max-width: 768px) {
  .p-sier-collabo__flex {
    flex-direction: column; /* 縦並びに変更 */
    gap: 40px;
  }
  
  .p-sier-collabo__text-side {
    order: 1; /* スマホではテキストを上にするなら不要（下にするなら2） */
  }
  
  .c-section-ttl {
    font-size: 24px;
  }
}

/* 業務範囲全体 */
.p-sier-service {
  padding: 120px 0;
  background-color: #ffffff;
}

/* 縦並びのリストコンテナ */
.p-sier-service__list {
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}

/* 縦のラインを通す（かっこよさの演出） */
.p-sier-service__list::before {
  content: "";
  position: absolute;
  top: 0;
  left: 30px;
  width: 1px;
  height: 100%;
  background-color: var(--line-color);
  z-index: 1;
}

/* 各行のスタイル */
.p-sier-service__row {
  display: flex;
  gap: 40px;
  margin-bottom: 60px;
  position: relative;
  z-index: 2;
}

/* 数字部分（アイコン的な役割） */
.p-sier-service__num {
  width: 60px;
  height: 60px;
  background-color: var(--main-green);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0; /* 潰れないように固定 */
  box-shadow: 0 4px 15px rgba(0, 133, 66, 0.3);
}

/* 内容エリア */
.p-sier-service__content {
  flex: 1;
  padding-bottom: 40px;
  border-bottom: 1px solid #eee;
}

.p-sier-service__item-ttl {
  font-size: 24px;
  font-weight: 800;
  color: var(--main-green);
  margin-bottom: 20px;
  letter-spacing: 0.05em;
}

.p-sier-service__txt {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 20px;
}

/* 業界アピール部分（緑の装飾ボックス） */
.p-sier-service__industry {
  background-color: var(--light-green);
  padding: 20px;
  border-left: 4px solid var(--main-green);
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.6;
}

.p-sier-service__industry-label {
  color: var(--main-green);
  display: block;
  margin-bottom: 5px;
  font-size: 13px;
  text-transform: uppercase;
}

/* ホバー時の演出（全体が少し浮き上がる） */
.p-sier-service__row:hover .p-sier-service__num {
  transform: scale(1.1);
  transition: 0.3s;
}

/* スマホ対応 */
@media (max-width: 768px) {
  .p-sier-service__list::before { left: 20px; }
  .p-sier-service__row { gap: 20px; }
  .p-sier-service__num { width: 40px; height: 40px; font-size: 14px; }
  .p-sier-service__item-ttl { font-size: 19px; }
}
/* --- ロボットブランド・SNSセクション --- */
.p-sier-brands {
  padding: 100px 0;
  background-color: #ffffff;
}

.p-sier-brands__header {
  text-align: center;
  margin-bottom: 50px;
}

.p-sier-brands__sub {
  color: var(--main-green);
  font-weight: 800;
  letter-spacing: 0.2em;
  font-size: 13px;
  display: block;
  margin-bottom: 10px;
}

/* メーカーバッジのグリッド */
.p-sier-brands__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 80px;
}

.c-brand-badge {
  background: #fcfcfc;
  border: 1px solid var(--light-green);
  padding: 25px 10px;
  text-align: center;
  font-weight: 900;
  color: #888;
  font-size: 16px;
  transition: all 0.3s ease;
  border-radius: 4px;
}

.c-brand-badge:hover {
  background: var(--main-green);
  color: #fff;
  border-color: var(--main-green);
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 133, 66, 0.2);
}

.c-brand-badge--more {
  border-style: dashed;
  background: transparent;
}

/* SNSボックス：背景を少しグレーにして区切る */
.p-sier-social__box {
  background-color: var(--light-green);
  border-radius: 12px;
  padding: 50px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.p-sier-social__info { flex: 1.5; }
.p-sier-social__ttl {
  font-size: 24px;
  color: var(--main-green);
  font-weight: 800;
  margin-bottom: 15px;
}

.p-sier-social__txt {
  font-size: 15px;
  line-height: 1.8;
  color: #333;
}

.p-sier-social__links {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* SNSボタンのかっこいいデザイン */
.c-btn-social {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #fff;
  border: 1px solid #ddd;
  padding: 15px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 800;
  color: #111;
  transition: 0.3s;
}

.c-btn-social span {
  font-size: 11px;
  color: #888;
  font-weight: normal;
}

.c-btn-social--yt:hover {
  background: #ff0000;
  color: #fff;
  border-color: #ff0000;
}
.c-btn-social--yt:hover span { color: #fff; }

.c-btn-social--ig:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  color: #fff;
  border-color: transparent;
}
.c-btn-social--ig:hover span { color: #fff; }

/* 相談無料エリア */
.p-sier-contact-info {
  margin-top: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
}

.p-sier-contact-info__badge {
  background-color: var(--main-green);
  color: #fff;
  padding: 4px 12px;
  font-weight: 900;
  font-size: 14px;
  border-radius: 4px;
}

.p-sier-contact-info__txt {
  font-size: 16px;
  color: #111;
  font-weight: bold;
}
/* セクション全体の境界線を明確にする */
.p-sier-brands {
  padding: 120px 0;
  background-color: #f8f9fa; /* 薄いグレーを敷いて上の白セクションと分離 */
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}

/* 見出しエリア：左右スプリット（PC時） */
.p-sier-brands__header-group {
  display: flex;
  justify-content: space-between;
  align-items: flex-end; /* 下揃えでラインを合わせる */
  gap: 40px;
  margin-bottom: 60px;
  padding-bottom: 30px;
  border-bottom: 2px solid #e0e0e0; /* 見出しエリアを区切る線 */
}

/* タイトルエリア（左） */
.p-sier-brands__title-side {
  flex: 1;
}

.p-sier-brands__sub-en {
  display: block;
  font-size: 14px;
  color: var(--main-green);
  font-weight: 800;
  letter-spacing: 0.3em;
  margin-bottom: 12px;
}

.p-sier-brands__main-ttl {
  font-size: 28px;
  font-weight: 900;
  color: #111;
  line-height: 1.2;
  position: relative;
  padding-left: 20px;
}

/* タイトル横の緑の縦線（トライテクスの強みを象徴） */
.p-sier-brands__main-ttl::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5%;
  width: 6px;
  height: 90%;
  background-color: var(--main-green);
  border-radius: 3px;
}

/* リード文エリア（右） */
.p-sier-brands__lead-side {
  flex: 1;
}

.p-sier-brands__lead-txt {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
  font-weight: 500;
  margin: 0;
}

/* スマホ対応 */
@media (max-width: 960px) {
  .p-sier-brands__header-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
  
  .p-sier-brands__main-ttl {
    font-size: 26px;
  }
  
  .p-sier-brands__lead-txt {
    font-size: 15px;
  }
}
/* セクション全体：ここを背景写真のベースにする */
.p-sier-brands {
  position: relative;
  padding: 140px 0;
  background-color: #fff;
  overflow: hidden;
  z-index: 1;
}

/* HTMLを変えずにCSSで背景写真を追加（擬似要素） */
.p-sier-brands::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* ロボットや工場の質感写真を指定 */
  background-image: url('img/robot.jpg'); 
  background-size: cover;
  background-position: center;
  /* 写真を少し暗く・または薄くして文字を浮かせる（白透過） */
  opacity: 0.5; /* 写真をうっすら見せる（前衛的な透かし風） */
  z-index: -1;
  filter: grayscale(100%); /* あえてモノクロにする */
}

/* 上のセクションとの境界を「光のグラデーション」で分ける（擬似要素2） */
.p-sier-brands::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 150px; /* 上部の境界エリア */
  /* 上から下へ白から透明に消えていくグラデーション */
  background: linear-gradient(to bottom, #ffffff 0%, rgba(255, 255, 255, 0) 100%);
  z-index: -1;
}

/* 見出しエリア：ここを左寄せにするだけで印象が激変します */
.p-sier-brands__header {
  text-align: left; /* 中央揃えから左寄せに変更 */
  max-width: 900px;
  margin: 0 auto 60px;
  border-left: 8px solid var(--main-green); /* 左側に太い緑のラインを追加 */
  padding-left: 30px;
}

.p-sier-brands__sub {
  color: var(--main-green);
  font-weight: 800;
  letter-spacing: 0.4em;
  font-size: 14px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.c-section-ttl {
  font-size: 40px;
  font-weight: 900;
  color: #111;
  line-height: 1.2;
  margin-bottom: 20px;
}

.p-sier-brands__lead {
  font-size: 18px;
  line-height: 1.8;
  color: #333;
  font-weight: 600;
  max-width: 700px;
}

/* バッジのグリッドを少し前衛的に（浮遊感） */
.p-sier-brands__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 80px;
}

.c-brand-badge {
  background: rgba(255, 255, 255, 0.8); /* わずかに透かす */
  backdrop-filter: blur(10px); /* 磨りガラス効果 */
  border: 1px solid #eee;
  padding: 30px 10px;
  border-radius: 2px; /* あえて角を立てて工業感を出す */
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
  transition: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.c-brand-badge:hover {
  background: var(--main-green);
  color: #fff;
  transform: translateY(-8px) scale(1.05);
  box-shadow: 0 15px 30px rgba(0, 133, 66, 0.2);
}

/* スマホ対応 */
@media (max-width: 768px) {
  .p-sier-brands__header { padding-left: 20px; }
  .c-section-ttl { font-size: 26px; }
  .p-sier-brands__grid { grid-template-columns: repeat(2, 1fr); }
}
/* スマホ対応 */
@media (max-width: 768px) {
  .p-sier-brands__grid { grid-template-columns: repeat(2, 1fr); }
  .p-sier-social__box { flex-direction: column; padding: 30px 20px; text-align: center; }
  .p-sier-contact-info { flex-direction: column; gap: 10px; text-align: center; }
}

/* フッター */
footer {
  /* 背景を少し薄いグレーに変更 */
  background-color: #77787B; 
  /* 文字色 */
  color: #ffffff; 
  /* 上下余白はしっかり、左右は詰め気味に */
  padding: 4rem 1.5rem; 
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  /* 両横いっぱいに広げるため、最大幅を大きくし、横幅を96%程度に設定 */
  max-width: 1600px; 
  width: 96%;
  margin: 0 auto;
}

.footer-info p {
  margin: 0.3rem 0;
  font-size: 0.9rem;
  line-height: 1.6;
}

/* リンク文字色を白に */
.footer-nav a {
  color: #ffffff; 
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  transition: opacity 0.3s ease;
}

.footer-nav a:hover {
  opacity: 0.6;
  text-decoration: none;
}


/* ナビゲーションの間隔 */
.footer-nav ul {
  list-style: none;
  display: flex;
  gap: 2.5rem; /* 項目間の間隔を少し広げてゆとりを出す */
  margin: 0;
  padding: 0;
}

/* 下部のコピーライトなどの装飾（必要に応じて） */
.footer-copy {
  max-width: 1600px;
  width: 96%;
  margin: 3rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid #ddd; /* 背景より少しだけ濃い線 */
  font-size: 0.8rem;
  color: #888;
}
.footer-nav ul {
  display: grid;
  /* 4項目ずつ2行に並べる設定（画面幅に合わせて自動調整） */
  grid-template-columns: repeat(4, auto); 
  gap: 1rem 2.5rem; /* 上下の間隔1rem、左右の間隔2.5rem */
  justify-content: flex-end;
}

/* スマホやタブレットでは2列にする */
@media (max-width: 1024px) {
  .footer-nav ul {
    grid-template-columns: repeat(2, auto);
  }
}
/* スマホ対応：横幅いっぱいを維持 */
@media (max-width: 767px) {
  .footer-inner {
    flex-direction: column;
    gap: 2rem;
    width: 100%;
  }
}
/*レスポジ対応*/
/* 1. 全体文字サイズの強制修正（28px対策） */
@media (max-width: 768px) {
  html { font-size: 16px; } /* 基準を16pxに */
  body {
    font-size: 1rem !important; /* 16px相当 */
    line-height: 1.7 !important;
  }
}

/* 2. ヘッダー：ハンバーガーメニュー化 */
@media (max-width: 1024px) {
  header { position: sticky !important; top: 0; height: 70px !important; }
  .header-inner { padding: 0 20px; }
  
  /* ボタンを表示させる（HTMLに .menu-toggle が必要） */
  .menu-toggle { display: flex !important; }

  /* メニューを右側に隠す */
  .nav-sns {
    display: flex !important; 
    flex-direction: column;
    position: fixed;
    top: 0; right: -100%; /* 画面外 */
    width: 80%; height: 100vh;
    background: #f9f9f9;
    padding: 80px 30px;
    transition: 0.4s ease;
    box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    z-index: 2500;
  }
  
  /* 開いた時のクラス */
  .nav-sns.is-active { right: 0; }

  .global-nav ul { flex-direction: column; gap: 1.5rem; }
  .sns-links { border: none; padding: 0; flex-direction: row; justify-content: center; }
}

/* 3. ヒーローエリア：高さと文字の調整 */
@media (max-width: 768px) {
  .hero { height: 70vh !important; } /* 120vhから短縮 */
  .hero h1 { font-size: clamp(1.5rem, 8vw, 2.5rem) !important; letter-spacing: 0.1em !important; }
  .hero p { font-size: 1.1rem !important; }
}

/* 4. メインセクション：カードを1列に強制 */
@media (max-width: 1024px) {
  main section { margin-bottom: 4rem !important; padding: 0 20px; }
  
  /* すべてのグリッド・フレックス要素を1列化 */
  .three-cards, 
  .p-home-service__unit,
  .p-home-quality__unit {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
  }

  .three-cards .card,
  .p-home-service__unit-item,
  .p-home-quality__unit-item {
    width: 100% !important;
    flex: none !important;
    min-width: 0 !important;
  }

  /* スタッフアコーディオンのレイアウト調整 */
  .staff-detail { flex-direction: column !important; align-items: center; text-align: center; }
}

/* 5. フッター：縦並びと色の修正 */
@media (max-width: 767px) {
  footer { padding: 3rem 1rem !important; text-align: center; }
  .footer-inner { flex-direction: column !important; gap: 2rem !important; align-items: center !important; }
  .footer-nav ul { flex-direction: column !important; gap: 1rem !important; }
  .footer-copy { color: #ccc !important; } /* 背景と同化するのを防止 */
}

/* 6. ページトップボタン：位置調整 */
@media (max-width: 767px) {
  .back-to-top { right: 20px !important; bottom: 20px !important; }
  .top-line { height: 60px !important; }
}
@media (max-width: 1024px) {
  /* PC用のホバー効果を強制解除 */
  .global-nav .has-submenu:hover .submenu {
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    display: block !important;
  }

  /* サブメニューを浮かさない（重なりの原因） */
  .global-nav .has-submenu .submenu {
    position: static !important; /* 絶対配置をやめて、メニューの下に並べる */
    width: 100% !important;
    pointer-events: auto !important; /* タップ可能にする */
    box-shadow: none !important;
    background: #f5f5f5 !important; /* 少し色を変えて区別 */
  }

  /* リンクのクリックエリアを広げる */
  .global-nav a {
    display: block !important;
    width: 100%;
    padding: 15px 20px !important;
    z-index: 10;
  }
}
