/* 全体の基本設定 */
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: relative;          /* 上部に固定 */
  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;
  }
}
@media (max-width: 1024px) {
  header, .header-container { /* ヘッダーのクラス名に合わせてください */
    overflow: visible !important; /* はみ出しを許可する */
    position: relative;
  }
}

/* ヒーローエリア */
.hero {
  position: relative;
  width: 100%;
  height: 120vh; /* かなり高さのある設定を維持 */
  overflow: hidden;
  color: #fff;
  text-align: center;
  padding: 0; /* paddingをリセットして画面一杯に */
}

.slideshow {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
.slideshow img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  /* フェード時間を2秒から4秒に延長（よりヌルッと切り替わります） */
  transition: opacity 4s ease-in-out; 
  /* すべての画像にアニメーションを適用 */
  animation: zoom-animation 25s linear infinite; 
}

.slideshow img.active {
  opacity: 1;
  z-index: 1;
}

/* ズームの動きをさらに「超低速」にする */
@keyframes zoom-animation {
  0% {
    transform: scale(1.0);
  }
  50% {
    transform: scale(1.08); /* 20秒かけて少しずつ大きく */
  }
  100% {
    transform: scale(1.0); 
  }
}


/* フィルター（白オーバーレイ） */
.hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(255, 255, 255, 0.2); /* 少し強めに設定 */
  z-index: 1;
  pointer-events: none;
}

/* テキストコンテンツの配置調整 */
.hero-content {
  position: absolute; /* top: 40%を効かせるためabsoluteに */
  width: 100%;
  z-index: 2;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.hero h1 {
  font-size: clamp(2rem, 6vw, 3.5rem); /* レスポンシブな文字サイズ */
  color: #000; /* 白フィルターに合わせるなら黒系、または濃い色 */
  font-weight: 700;
  letter-spacing: 0.2em;
  text-shadow: 
    0 0 15px rgba(255, 255, 255, 1),   /* 文字の輪郭を優しく保護 */
    0 0 30px rgba(255, 255, 255, 0.8), /* 中範囲の光 */
    0 0 60px rgba(255, 255, 255, 0.4); /* 広範囲の淡い光 */
 
    
  line-height: 1.4;
  margin: 0;
}
.hero p {
  font-size: 2.2rem;
  color: #333;
  margin-top: 1rem;
  letter-spacing: 0.1em;
}

/*メインエリア*/
main section {
  margin-bottom: 10rem; /* セクション間の下余白を広げる */
}

.three-cards {
 display: grid;
  grid-template-columns: repeat(3, 1fr); /* 常に3列 */
  gap: 2rem;
}


/* メインエリア1 */
.p-home-service {
  padding: 5rem 1rem; /* 上下余白を広げてセクションの格を上げる */
  background: #f9f9f9;
}

/* タイトルエリア全体の余白 */
.p-home-service__heading-wrap {
  text-align: center;
  width: 100%;
  margin-bottom: 60px;
}

/* サブタイトル：try ＆ technology 部分 */
.p-home-service__heading-en {
  display: block;
  font-size: 15px;
  color: #008542;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  margin-bottom: 4px; /* 12pxから4pxへ：間隔をギュッと詰めました */
  opacity: 0.9;
  line-height: 1.2; /* 行間を詰めました */
}

/* メインタイトル：製品案内 部分 */
.p-home-service__heading-jp {
  display: inline-block;
  font-size: clamp(26px, 5vw, 34px);
  color: #1a1a1a;
  font-weight: 700;
  position: relative;
  padding-bottom: 15px; /* 下線との距離を少し詰めました */
  letter-spacing: 0.05em;
  line-height: 1.2; /* 行間を詰めてサブタイトルと近づけました */
}

/* タイトルの下の緑の線（2026グラデーションver） */
.p-home-service__heading-jp::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #008542, transparent);
}

/* 3分割ユニット */
.p-home-service__unit {
  display: flex;
  flex-wrap: wrap;       /* スマホでは縦並びに崩れる */
  justify-content: center;
  gap: 2rem;
}

/* 各カード */
.p-home-service__unit-item {
  flex: 1 1 90px;        /* 最小幅90pxで自動調整 */
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 2rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.p-home-service__unit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* タイトル */
.p-home-service__unit-ttl {
  margin-top: 0;
  font-size: 1.6rem;
  color: #009e6f;
}

/* サブタイトル */
.p-home-service__sub-ttl {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

/* 本文 */
.p-home-service__txt01 {
  margin: 1rem 0;
  line-height: 1.6;
}

/* VIEW MOREリンク風 */
.p-home-service__icon {
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.p-home-service__txt02 {
  font-weight: bold;
  color: #009e6f;
}

.p-home-service__icon-deco {
  width: 20px;
  height: 2px;
  background: #009e6f;
}
/* 各カードの基本スタイル */
.p-home-service__unit-item {
  flex: 1 1 300px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  padding: 2rem;
  color: #fff; /* 背景写真に文字が埋もれないよう白文字に */
  position: relative;
  overflow: hidden;
}

/* 背景画像をカードごとに設定 */
.p-home-service__unit-item--bg01 {
  background-image: url("img/machine.jpg");
  background-size: cover;
  background-position: center;
}

.p-home-service__unit-item--bg02 {
  background-image: url("img/sier.jpg");
  background-size: cover;
  background-position: center;
}

.p-home-service__unit-item--bg03 {
  background-image: url("img/other.jpg");
  background-size: cover;
  background-position: center;
}
/* 背景に半透明の黒オーバーレイを敷く */
.p-home-service__unit-item {
  position: relative; /* ::beforeを正しく重ねるために必要 */
  overflow: hidden;   /* はみ出し防止（必要なら） */
}

.p-home-service__unit-item::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.4); /* 黒の半透明フィルター */
  z-index: 1;
}

/* テキストを前面に配置 */
.p-home-service__unit-link {
  position: relative;
  z-index: 2;          /* 背景より前面に */
  display: block;
  text-decoration: none;
}

/* 半透明の白いボックスで文字を囲む */
.p-home-service__text-overlay {
  background-color: rgba(255, 255, 255, 0.6); /* 白＋透明度60% */
  color: #000;                                /* 黒文字でコントラスト */
  padding: 1rem;
  border-radius: 5px;
  display: inline-block;                      /* ボックスとして表示 */
}
/* ボタンの親要素の配置調整 */
.p-home-service__icon {
  margin-top: 25px;
  display: flex;
  align-items: center;
}

/* ボタン本体：信頼と成長を象徴するグリーン */
.p-home-service__txt02 {
  display: inline-block;
  padding: 10px 30px;
  background-color: #008542; /* ベースの緑 */
  color: #ffffff;            /* 文字は白 */
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 0.1em;
  border-radius: 50px;       /* カプセル型 */
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: none;
}

/* 矢印（deco）の調整 */
.p-home-service__icon-deco {
  width: 8px;
  height: 8px;
  border-top: 2px solid #ffffff;
  border-right: 2px solid #ffffff;
  transform: rotate(45deg);
  margin-left: -15px; /* ボタンに重ねるための調整 */
  margin-right: 15px;
  z-index: 2;
  transition: transform 0.3s ease;
}

/* リンク全体にホバーした時のボタンの変化 */
.p-home-service__unit-link:hover .p-home-service__txt02 {
  background-color: #00a852;   /* ホバーで明るい緑に */
  transform: translateY(-2px); /* 少し浮き上がる */
  box-shadow: 0 5px 15px rgba(0, 133, 66, 0.4); /* 緑色の影 */
}

/* ホバー時に矢印を少し右に動かす演出 */
.p-home-service__unit-link:hover .p-home-service__icon-deco {
  transform: rotate(45deg) translateX(5px);
}

/* テキストオーバーレイ内の調整（文字が重ならないように） */
.p-home-service__text-overlay {
  position: relative;
  z-index: 10;
}

.p-home-service__unit-ttl {
  color: #008542;          /* 信頼感のある深い緑 */
  font-size: 28px;         /* 少し大きめに設定 */
  font-weight: 800;        /* 太字でインパクトを出す */
  letter-spacing: 0.05em;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 12px;               /* 線と文字の間隔 */
}
/* 写真を囲むコンテナ */
.service-visual {
    position: relative;
    margin-bottom: -30px; /* アイコンと少し重ねるための調整 */
    z-index: 1;
}

/* 丸い写真本体 */
.circle-photo {
    width: 120px;   /* サイズはお好みで */
    height: 120px;
    object-fit: cover; /* 写真を切り抜いても歪まないようにする */
    border-radius: 50%; /* 完璧な円形 */
    border: 5px solid #fff; /* 白い縁取りで写真を浮かせる */
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1); /* 柔らかい影 */
    display: block;
    margin: 0 auto;
    transition: transform 0.5s ease;
}

/* ホバーした時に写真が少し拡大して回転する（2026年風の遊び心） */
.service-card:hover .circle-photo {
    transform: scale(1.1) rotate(5deg);
}

/* カード内のアイコン位置を微調整 */
.service-icon {
    position: relative;
    z-index: 2; /* 写真より上に表示 */
    background: #008542; /* アイコン背景を緑に */
    color: #fff;
    width: 50px;
    height: 50px;
    line-height: 50px;
    font-size: 1.5rem;
    margin: 0 auto 15px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}


/*メインエリア2*/
.p-home-quality__unit {
  display: flex;
  flex-wrap: wrap;
  padding: 0 1.5rem; /* ← 左右に余白を追加 */
  gap: 1.5rem; /* アイテム間の余白 */
}


.p-home-quality__img {
  width: 100%;
  height: 200px;       /* 固定高さを指定 */
  object-fit: cover;   /* トリミングして収める */
  display: block;
}

.p-home-quality__unit-link:hover {
  text-decoration: none; /* ホバー時も消す */
}

.p-home-quality__heading {
  color: #009e6f; /* フォレストグリーン */
position: relative;    /* 背景装飾を重ねるために必要 */
  z-index: 1;            /* 背景より前面に */
}

/* サブタイトル：WHY CHOOSE US 部分 */
/* p-home-service__heading-en クラスをそのまま使うか、以下を追記してください */
.p-home-quality__heading-wrap .p-home-service__heading-en {
  display: block;
  font-size: 15px;
  color: #008542;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  margin-bottom: 4px; /* 間隔を詰めた設定 */
  opacity: 0.9;
  line-height: 1.2;
}

/* メインタイトル：選ばれる理由 部分 */
.p-home-quality__heading-wrap .p-home-service__heading-jp {
  display: inline-block;
  font-size: clamp(26px, 5vw, 34px);
  color: #1a1a1a;
  font-weight: 700;
  position: relative;
  padding-bottom: 15px;
  letter-spacing: 0.05em;
  line-height: 1.2;
}

/* タイトルの下の緑の線（中央グラデーション） */
.p-home-quality__heading-wrap .p-home-service__heading-jp::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #008542, transparent);
}
/* --- タイトルエリア全体を中央に寄せる --- */
.p-home-service__heading-wrap,
.p-home-quality__heading-wrap {
  text-align: center; /* 中の要素を中央揃えにする */
  width: 100%;
  margin-bottom: 60px; /* 下のコンテンツとの間隔 */
}
/* ボタン本体 */
.p-home-quality__txt02 {
  display: inline-block;
  padding: 10px 30px;
  background-color: #008542; /* 緑色の背景色 */
  color: #fff;               /* 文字色 */
  font-size: 14px;
  font-weight: bold;
  letter-spacing: 0.1em;
  border-radius: 50px;       /* 角丸（カプセル型） */
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  border: none;
}
/* カード本体の調整 */
.p-home-quality__unit-item {
  flex: 1 1 calc(50% - 1.5rem);
  min-width: 300px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  color: #000;
  /* 文字を中央に寄せる設定 */
  text-align: center; 
}

/* リンクをブロック要素にして、中身を整列しやすくする */
.p-home-quality__unit-link {
  display: flex;
  flex-direction: column; /* 上から順に並べる */
  align-items: center;    /* 横方向の中央寄せ */
  text-decoration: none;
  color: #000;
  height: 100%;
}

/* 
   画像以外のテキストエリアに余白と整列を適用
   画像の下にある要素すべてに一括で左右余白を作る 
*/
.p-home-quality__unit-ttl,
.p-home-quality__txt01,
.p-home-quality__icon {
  padding-left: 20px;
  padding-right: 20px;
  width: 100%; /* 中央寄せを安定させる */
  box-sizing: border-box;
}

/* タイトル（一貫生産など）の調整 */
.p-home-quality__unit-ttl {
  margin-top: 15px;
  font-size: 2.5rem;
  font-weight: bold;
}

/* 説明文の調整 */
.p-home-quality__txt01 {
  margin-top: 10px;
  font-size: 1.5rem;
  line-height: 1.3;
  flex-grow: 1; /* テキスト量に関わらずボタンの位置を揃えたい場合に有効 */
}

/* ボタンエリアの調整 */
.p-home-quality__icon {
  margin-top: 20px;
  margin-bottom: 25px; /* カード下部との余白 */
  display: flex;
  justify-content: center;
}
/* ホバー演出（マウスを乗せた時） */
.p-home-quality__unit-link:hover .p-home-quality__txt02 {
  background-color: #00a852;   /* ホバー時に少し明るい緑に変化 */
  transform: translateY(-2px); /* 少し浮き上がる */
  box-shadow: 0 5px 15px rgba(0, 133, 66, 0.3); /* 緑系の影で馴染ませる */
}





/* セクション全体 */
.p-home-sier {
  margin-top: 100px; /* 上のセクションとの間隔 */
  padding: 80px 0;
  background-color: #ffffff;
}

/* タイトル部分のデザイン */
.p-home-sier__heading-wrap {
  text-align: center;
  margin-bottom: 50px; /* タイトルと丸いバッジの間隔 */
}

.p-home-sier__heading-en {
  display: block;
  font-size: 14px;
  color: #008542; /* トライテクス・グリーン */
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 10px;
}

.p-home-sier__heading-jp {
  display: block;
  font-size: 32px;
  color: #333;
  font-weight: 700;
  position: relative;
  padding-bottom: 15px;
}

/* タイトルの下に短い緑の線を入れる */
.p-home-sier__heading-jp::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: #008542;
  border-radius: 2px;
}

/* --- 丸いバッジのデザイン (前回の設定を維持) --- */
.p-home-sier__circle-unit {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.p-home-sier__circle-item { width: 220px; text-align: center; }
.p-home-sier__circle-visual {
  width: 180px; height: 180px; border-radius: 50%; border: 4px solid #008542;
  margin: 0 auto 15px; display: flex; flex-direction: column; justify-content: center; align-items: center;
}
.p-home-sier__circle-visual--green { background-color: #008542; }
.p-home-sier__circle-visual--green .p-home-sier__circle-name,
.p-home-sier__circle-visual--green .p-home-sier__circle-label { color: #fff; }

.p-home-sier__circle-label { font-size: 11px; font-weight: bold; color: #008542; }
.p-home-sier__circle-name { color: #008542; font-size: 18px; font-weight: 900; }

/* --- ボタンのデザイン --- */
.p-home-sier__action { text-align: center; }
.p-home-sier__btn {
  display: inline-flex;
  align-items: center;
  background-color: #008542;
  padding: 14px 50px;
  border-radius: 50px;
  text-decoration: none;
  transition: 0.3s;
}
.p-home-sier__btn:hover { background-color: #00a852; transform: translateY(-3px); }
.p-home-sier__txt02 { color: #fff; font-weight: bold; }

/* スマホ対応 */
@media (max-width: 768px) {
  .p-home-sier__heading-jp { font-size: 24px; }
  .p-home-sier { margin-top: 60px; padding: 60px 0; }
}
/* --- 1. 背景に薄い幾何学模様を足して「質感」を出す --- */
.p-home-sier {
  margin-top: 100px;
  padding: 100px 0;
  background-color: #ffffff;
  background-image: radial-gradient(#008542 0.5px, transparent 0.5px); /* 薄いドット */
  background-size: 30px 30px;
  background-position: center;
  position: relative;
  overflow: hidden;
}

/* --- 2. タイトルの装飾をリッチにする --- */
.p-home-sier__heading-en {
  letter-spacing: 0.4em; /* 文字間隔を広げて高級感を出す */
  opacity: 0.8;
}

.p-home-sier__heading-jp {
  font-size: clamp(24px, 5vw, 36px); /* 画面サイズで自動可変 */
  letter-spacing: 0.05em;
}

/* 緑の線を「伸びる」アニメーションにする */
.p-home-sier__heading-jp::after {
  width: 100px; /* 少し長く */
  height: 2px;  /* 細くして洗練させる */
  background: linear-gradient(90deg, transparent, #008542, transparent);
}

/* --- 3. 丸いバッジに「浮遊感」と「高級感」を出す --- */
.p-home-sier__circle-visual {
  border: 1px solid rgba(0, 133, 66, 0.2); /* 枠線を細く上品に */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* 柔らかい影 */
  transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  background: #fff;
  position: relative;
}

/* 緑色のバッジを光らせる */
.p-home-sier__circle-visual--green {
  background: linear-gradient(135deg, #008542, #00a852);
  box-shadow: 0 15px 35px rgba(0, 133, 66, 0.3);
  border: none;
}

/* バッジがゆっくり浮き沈みするアニメーション */
.p-home-sier__circle-item:nth-child(odd) .p-home-sier__circle-visual {
  animation: float 4s ease-in-out infinite;
}
.p-home-sier__circle-item:nth-child(even) .p-home-sier__circle-visual {
  animation: float 4s ease-in-out infinite 2s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ホバー時に中身を拡大 */
.p-home-sier__circle-item:hover .p-home-sier__circle-visual {
  transform: scale(1.1) translateY(-15px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  border-color: #008542;
}

/* --- 4. ボタンを「次世代」デザインに変える --- */
.p-home-sier__btn {
  position: relative;
  overflow: hidden;
  background: #008542;
  border-radius: 4px; /* 50pxからあえて少し角を立たせると誠実な印象に */
  padding: 18px 60px;
  box-shadow: 0 4px 0 #005a2d; /* 立体的なボタン */
}

.p-home-sier__btn:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #005a2d;
}

/* ボタンの中を光が走る演出 */
.p-home-sier__btn::before {
  content: "";
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.3), transparent);
  transform: skewX(-25deg);
  transition: 0.5s;
}

.p-home-sier__btn:hover::before {
  left: 150%;
}

.p-home-sier__btn:hover {
  background-color: #008542;
  transform: translateY(-2px);
}

/* セクション全体 */
.service-section-v2026 {
    padding: 100px 20px; /* 前のセクションと合わせるため少し広めに調整 */
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    text-align: center;
}

/* タイトル部分：既存のデザインに合わせる */
.section-title {
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 32px; /* 既存の .p-home-sier__heading-jp と統一 */
    color: #333;
    font-weight: 700;
    position: relative;
    padding-bottom: 15px; /* 線を入れるための余白 */
    margin: 0;
    display: inline-block; /* 線を文字の幅に合わせるために必要 */
}

/* ★ここに緑の線を追加 */
.section-title h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px; /* 指定のサイズ */
    height: 2px; /* 指定のサイズ */
    background-color: #008542; /* トライテクス・グリーン */
  background: linear-gradient(90deg, transparent, #008542, transparent);
}

/* サブタイトル（英語）がある場合 */
.sub-title {
    display: block;
    color: #008542;
    font-weight: 800;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 10px;
}

/* サービスグリッド */
.service-grid {
    display: flex;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap;
}

/* サービスカード（華やかさの核） */
.service-card {
    background: #ffffff;
    width: 320px;
    padding: 40px 30px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* アイコン部分（写真を使わずに華やかに） */
.service-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    background: #f8fafc;
    width: 80px;
    height: 80px;
    line-height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
}

.service-card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #2d3748;
}

.service-card p {
    font-size: 0.95rem;
    color: #718096;
    line-height: 1.6;
}

/* 装飾バッジ */
.service-badge {
    display: inline-block;
    margin-top: 20px;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    background: #edf2f7;
    color: #4a5568;
}

/* 枠線の色のアクセント */
.gold-border { border-top: 5px solid #d4af37; }
.blue-border { border-top: 5px solid #4a90e2; }

/* スマホ対応 */
@media (max-width: 640px) {
    .service-card {
        width: 100%;
    }
}
/* --- スマホ調整：地味さを回避 --- */
@media (max-width: 768px) {
  .p-home-sier { padding: 60px 20px; }
  .p-home-sier__circle-unit { gap: 20px; }
  .p-home-sier__circle-visual { width: 140px; height: 140px; }
  .p-home-sier__circle-name { font-size: 15px; }
}





/*メインエリア5*/
.p-home-contact {
  display: flex;
  flex-direction: column; /* ✅ 縦並びにする */
  gap: 1rem;              /* ✅ ボタン同士の間隔 */
  padding: 10rem 0;
  align-items: center;    /* ✅ 子要素（ボタン）を中央に */
/* ✅ 背景画像＋透かし */
  background-image: 
    linear-gradient(rgba(255,255,255,0.2), rgba(255,255,255,0.2)), /* 透かし */
    url("img/link.jpg"); /* ←好きな写真に変更 */
  background-size: cover;
  min-height: 500px; /* ← 好きな高さに調整 */
  background-position: center;
  background-repeat: no-repeat;
 padding-bottom: 1rem; /* ← 下だけ小さく */
}
.button {
  background-color: #009e6f; /* 深緑で信頼感 */
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 1.2rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2); /* 立体感 */
  text-decoration: none;
  width: 200px;
  display: inline-block;
  text-align: center;

  /* ✅ ホバーの動きを滑らかに */
  transition: 
    background-color 0.3s ease,
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.button:hover {
  background-color: #00b88a; /* 少し明るく */
  transform: translateY(-4px); /* ✅ ふわっと浮く */
  box-shadow: 0 8px 16px rgba(0,0,0,0.25); /* ✅ 影を強くして浮いて見せる */
}

.button:active {
  transform: translateY(-1px); /* ✅ クリック時は少し沈む */
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

 



/* タイトル用 */
.section-title {
  font-size: 2rem;
  font-weight: bold;
  text-align: center;
  margin-top: 3rem;    /* ← 上に余白を追加 */
  margin-bottom: 2rem; /* ← 下にも余白を追加 */
  color: #009e6f;      /* セクション見出しと同じ色に合わせてもOK */
}


/* フッター */
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-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);
  }
}
/* 下部のコピーライトなどの装飾（必要に応じて） */
.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;
}

/* スマホ対応：横幅いっぱいを維持 */
@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;
  }
}
