/* =========================================
    共通
========================================= */
/* スムーズに戻る */
html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
}

main {
  background-color: #000;

}

/* =========================================
    header
========================================= */
/* --- 共通スタイル --- */
h1{
  margin: 0;
}
.hero-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.4); /* 黒の半透明 */
  color: #fff;
  z-index: 100;
  padding: 15px 0;
  box-sizing: border-box;
}

/* 中央揃えと最大幅指定 */
.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  max-width: 1100px;      /* お好みで調整可能 */
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.company-logo{
 display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.company-logo img {
  height: 50px;
  width: auto;
  display: block;
}

@media screen and (max-width: 768px) {
  .company-logo img {
    height: 40px;
  }
}


.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.contact-info {
  display: flex;
  flex-direction: column;
  font-size: 1.5rem;
  line-height: 1.4;
}

.contact-button {
  padding: 6px 12px;
  background-color: #577A8F;
  color: #fff;
  border: 1px solid #fff;
  border-radius: 4px;
  text-decoration: none;
  font-size: 1.2rem;
  transition: background-color 0.3s ease;
}

.contact-button:hover {
  background-color: #6A90A4 !important;
}

.contact-button:link,
.contact-button:visited {
  color: #ffffff !important;
  background-color: #577A8F;
  text-decoration: none;
}

/* --- ハンバーガーメニュー（初期は非表示） --- */
.hamburger-menu {
  display: none;
  font-size: 2rem;
  cursor: pointer;
  color: #fff;
}

/* --- モバイルメニュー（中身） --- */
.mobile-nav {
  display: none; /* 初期は非表示 */
  background-color: rgba(0, 0, 0, 0.95);
  position: fixed;
  top: 60px; /* ヘッダーの高さと合わせて調整 */
  left: 0;
  width: 100%;
  z-index: 9998;
}

.mobile-nav ul {
  list-style: none;
  margin: 0;
  padding: 10px 20px;
}

.mobile-nav ul li {
  border-bottom: 1px solid #666;
}

.mobile-nav ul li a {
  color: #fff;
  text-decoration: none;
  display: block;
  padding: 15px 0;
  font-size: 1.2rem;
}

/* --- スマホ対応（768px以下） --- */
@media screen and (max-width: 768px) {

  /* 固定ヘッダーに変更 */
  .hero-header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    padding: 10px 15px;
  }

  .header-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
  }

  .header-left {
    width: auto;
    text-align: left;
  }

  .header-left .company-name {
    font-size: 1.8rem;
    font-weight: bold;
  }

  .header-right {
    display: none; /* スマホでは非表示 */
  }

  /* ハンバーガーメニュー表示 */
  .hamburger-menu {
    display: block;
  }

  /* モバイルメニュー リンクスタイル調整 */
  .mobile-nav ul li a {
    font-size: 1.1rem;
    padding: 12px 0;
  }
}
/* ==== 追随ヘッダー（PCのみ） ==== */
.sticky-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  color: #fff;
  z-index: 9998;
  padding: 8px 0;
  box-sizing: border-box;
}

.sticky-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  gap: 20px;
}

.sticky-logo{
   display: flex;
  align-items: center;
}
.sticky-logo img {
  height: 35px;
  width: auto;
  display: block;
}

.sticky-telfax {
  display: flex;
  flex-direction: row;  
  align-items: center;
  gap: 30px;             
  font-size: 1rem;
  white-space: nowrap;
}


.sticky-contact-button {
  padding: 6px 10px;
  background-color: #577A8F;
  color: #fff;
  border: 1px solid #fff;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.95rem;
  white-space: nowrap;
}

.sticky-contact-button:hover {
  background-color: #6A90A4;
}

.sticky-contact-button:link,
.sticky-contact-button:visited {
  color: #ffffff !important;
  background-color: #577A8F;
  text-decoration: none;
}
.sticky-hamburger {
  font-size: 1.5rem;
  cursor: pointer;
  color: #fff;
  display: block;
}

/* スマホでは非表示 */
@media screen and (max-width: 768px) {
  .sticky-header {
    display: none !important;
  }
}




/* =========================================
    各セクションｈ2共通
========================================= */
/* 各セクションｈ2の枠 */
.indexbox {
  background-image: url(../images/indexbox.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  width: 100%;
  aspect-ratio: 255 / 53;
  /* 画像の縦横比に合わせて調整 */
  position: relative;
  /* テキストを相対配置するために必要 */
  margin: 0 auto;
  box-sizing: border-box;
}

.indexbox h2 {
  position: absolute;

  /* 背景画像の枠線内の位置に合わせて調整（%で相対的に） */
  left: 14%;
  /* 例: 左から10% */
  top: 35%;
  /* 例: 上から30% */

  color: #fff;
  font-size: 4vw;
  margin: 0;
}

/* ===============================
   ヒーロースライダー
================================ */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}


/* slickが内部でdivを入れ子にするため、これを指定しないと高さが崩れて1枚しか見えなくなる */
.hero-slider,
.hero-slider .slick-list,
.hero-slider .slick-track {
  height: 100%;
}

.hero-slider img {
  width: 100%;
  height: 100vh;
  object-fit: cover;
}

/* テキストを常に上に固定表示 */
.hero-title {
  position: absolute;
  z-index: 10;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #fff;
   text-align: center;
   white-space: nowrap; /* 改行を防止 */
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.6);
}
.hero-title p{
  margin: 0;
}

.hero-name{
  font-size: clamp(20px, 5vw, 48px);
    margin-bottom: clamp(12px, 6vw, 100px); /* 可変余白 */
}
.hero-flex {
  display: flex;
  align-items: center; /* 縦位置を揃える */
  justify-content: center; /* 中央揃え */
  gap: 15px; /* 文字との間に余白 */
}

.hero-flex img {
  width: clamp(48px, 6vw, 150px);

  height: auto;  /* アスペクト比を維持 */
}

.hero-text{
   font-size: clamp(14px, 4vw, 36px);
}
/* ドット位置調整 */
.slick-dots {
  bottom: 20px;
}

/* レスポンシブ */
@media screen and (max-width: 768px) {
  .hero {
    height: 300px;
  }

  .hero-slider img {
    height: 300px;
  }

  /* .hero-title {


    font-size: 1.5rem;
  } */
}



/* =========================================
    ヒーロー下ナビのビジュアル
========================================= */

/* ナビビジュアルエリア全体 */
.navi-visual {
  width: 100%;
  position: relative;
}

/* 背景画像：高さ固定 */
.navi-visual-background {
  background-image: url(../images/icon-backgroundimage.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 214px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* 中央寄せコンテナ */
.navi-visual-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

/* 横並びを維持しつつ縮小対応 */
.navi-visual-menu {
  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap;
  /* 折り返させない */
  width: 100%;
}

/* 各アイテムを%指定で縮小可能に */
.navi-visual-item {
  flex: 0 0 25%;
  /* 常に4等分（必要に応じて変更可） */
  max-width: 25%;
  box-sizing: border-box;
  padding: 0 8px;
}

/* アイコン画像を親要素に合わせて縮小 */
.navi-visual-item img {
  max-height: 120px;
  /* 高さの上限を小さく */
  width: auto;
  border: none;
  border-radius: 6px;
  transition: transform 0.3s ease;
  display: block;
  margin: 0 auto;
}

/* ホバー時拡大 */
.navi-visual-item img:hover {
  transform: scale(1.05);
}

/* テキスト */
.navi-visual-item p {
  margin-top: 6px;
  margin-bottom: 6px;
  font-size: 1.5em;
  font-weight: bold;
  color: white;
}

/* ✅ スマホ対応： */
@media screen and (max-width: 768px) {
  .navi-visual-item img {
    max-height: 80px;
    /* ←画像を小さく */
  }

  .navi-visual-item p {
    font-size: 0.7em;
    /* ←テキストを小さく */
  }

  .navi-visual-item {
    padding: 0 4px;
    /* ←余白も少し詰め */
  }

  .navi-visual-background {
    height: 130px;
  }
}

/* =========================================
    特徴
========================================= */
.about-wrapper {
  background-color: #000;
  padding: 60px 12px;
  color: white;
  text-align: center;
  width: 80%;
  margin: 0 auto;
}

/* フェードイン(初期値) */
.js-fadeUp {
  opacity: 0;
  /*  最初は非表示*/
  transform: translateY(30px);
  /* 下に30pxの位置から */
  transition: opacity .5s, transform .5s;
  /* 透過率と縦方向の移動を0.8秒 */
}

/* フェードイン(スクロールした後)*/
.js-fadeUp.is-inview {
  opacity: 1;
  /* 表示領域に入ったら表示 */
  transform: translateY(0);
  /* 30px上に移動する */
  transition-delay: .2s;
  /* フェード開始を0.5秒遅らせる */
}

.title-wrapper {
  position: relative;
  display: inline-block;
  margin-bottom: 40px;
  padding: 1em 2em;
}

.bg-shape {
  position: absolute;
  top: 0;
  left: -50px;
  width: 120%;
  height: 100%;
  transform: skewX(-25deg);
  z-index: 0;
}

.bg-under {
  background-color: #577A8F;
}

.bg-over {
  background-color: #000;
  transform: skewX(-25deg) translate(40px, -5px);
  /* 右上にずらす */
  z-index: 1;
}

.title-text {
  position: relative;
  font-size: clamp(1.6rem, 2.5vw + 1rem, 2.5rem);
  color: white;
  z-index: 2;
  margin: 0;
}
.about-label {
    display: inline-block;
    margin-top: 16px;
    padding: 6px 14px;
    border: 1px solid #333;
    font-size: 0.9rem;
    letter-spacing: 0.08em;
}

@media screen and (max-width: 768px) {
  .bg-shape {
    width: 100%;
    /* ←スマホでは幅を100%に縮める */
    left: -20px;
    /* ←ずらし幅も調整（必要に応じて微調整） */
  }

  .bg-over {
    transform: skewX(-25deg) translate(20px, -5px);
    /* ←位置も少し調整 */
  }

  .title-wrapper {
    padding: 1em 1em;
   
  }
}

#about img {
  width: 100%;
  /* 親要素の幅いっぱい */
  overflow-x: hidden;
    height: auto;
  display: block;
}

/* 金属棒の幅調整 */
.image-wrapper {
  width: 100%;
  /* 親要素の幅いっぱい */
  overflow-x: hidden;
  
}

/* ポイントボックス */
.points-container {
  background-color: #FFF;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  /* スマホで縦並びに */
  gap: 5px;
  padding: 100px 10px;
}

.point-box {
  background-color: #000;
  color: #fff;
  border: 10px solid #3F4243;
  padding: 60px;
  width: 30%;
  min-width: 280px;
  transform: skewX(-15deg) translateX(100px);
  opacity: 0;
  transition: transform 0.8s ease, opacity 0.8s ease;
  box-sizing: border-box;
  position: relative;
  transition-delay: 0s;
  /* ← 初期値 */
}

/* アクティブ時にスライドイン */
.point-box.active {
  transform: skewX(-15deg) translateX(0);
  opacity: 1;
}

/* 順番に遅延をかける */
.point-box:nth-child(1) {
  transition-delay: 0.1s;
}

.point-box:nth-child(2) {
  transition-delay: 0.3s;
}

.point-box:nth-child(3) {
  transition-delay: 0.5s;
}

.point-box h3,
.point-box p {
  transform: skewX(15deg);
}

.point-box h3 {
  margin-top: 0;
  font-size: 1.2rem;
}

.point-box p {
  font-size: 1rem;
  line-height: 1.5;
}

@media (max-width: 883px) {
  .point-box {
    width: 80%;
    padding: 20px;
  }
}

/* ✅ 横長画面（1920〜1500px）のときだけ幅を狭くする */
@media screen and (max-width: 1920px) and (min-width: 1500px) {
  .point-box {
    width: 30%;
    /* ← 横幅を狭めると相対的に縦長になります */
    padding: 100px;
  }
}

/* =========================================
    事業内容ボタン
========================================= */
/* 事業内容 ボタン*/
.services-img-wrapper {
  display: flex;
  justify-content: space-between;
  gap: 0;
  width: 100%;
  /* max-width: 1000px; */
  margin: 0 auto 80px;
  padding: 0;
}

.services-img-box {
  flex: 1;
  height: 450px;
  background-size: cover;
  background-position: center;
  position: relative;
  text-decoration: none;
  filter: brightness(0.6);
  transition: filter 0.3s ease;
}

.services-img-box:hover {
  filter: brightness(1);
  
}

.overlay {
  position: absolute;
  bottom: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  text-align: center;
  padding: 10px 0;
}

.services-img-box h3 {
  margin: 0;
  font-size: 2em;
}

@media screen and (max-width: 768px) {
  .services-img-wrapper {
    flex-direction: column;
  }

  .services-img-box {
    height: 160px;
    /* スマホ用の適切な高さ */
  }

  .overlay {
    position: static;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 0px;
    text-align: center;
  }
}

/* =========================================
    事業内容詳細
========================================= */
#services {
  background-color: #000;
}
/* 共通レイアウト */
.trapezoid-section {
  background-size: cover;
  background-position: center;
  padding: 80px 0 120px;
  position: relative;
  overflow: visible;
  color: white;
  min-height: 350px;
  display: flex;
  align-items: center;
  margin-bottom: 80px;
}

/* 左寄せ台形 */
.trapezoid-text {
  max-width: 600px;
  min-height: 450px;
  background: rgba(17, 8, 43, 0.92);
  padding: 40px 80px 40px 40px;
  clip-path: polygon(0% 0, 90% 0, 100% 100%, 0% 100%);
  margin-top: -120px;
  position: relative;
  z-index: 1;
}

.trapezoid-text h3 {
  padding: 0 60px;
  font-size: 1.8rem;
  margin: 0 0 0.8em;
}

.trapezoid-text p {
  padding: 0 60px;
  font-size: 1.1rem;
  line-height: 1.7;
  margin: 0;
}

/* 各部門の背景画像 */
#bankin.trapezoid-section { background-image: url('../images/bankin-text.jpg'); }
#press.trapezoid-section  { background-image: url('../images/press-text.jpg'); }
#cad.trapezoid-section    { background-image: url('../images/cad-text.jpg'); }
#tosou.trapezoid-section  { background-image: url('../images/tosou-text.jpg'); }

/* 右寄せ台形（プレス・塗装） */
.trapezoid-text.right {
  background: rgba(24, 2, 2, 0.92);
  padding: 40px 40px 40px 80px;
  clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%);
  margin-top: -120px;
  margin-left: auto;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

/* CAD 部門専用色 */
.trapezoid-text.cad {
  background: rgba(8, 22, 43, 0.92);
}

/* 塗装部門専用色（新色） */
.trapezoid-text.tosou {
  background: rgba(1, 15, 2, 0.92);
}

/* スマホ用 */
@media screen and (max-width: 768px) {
  .trapezoid-section {
    flex-direction: column;
    padding: 40px 20px;
    min-height: auto;
  }

  .trapezoid-text,
  .trapezoid-text.right,
  .trapezoid-text.cad {
    width: 100%;
    max-width: none;
    min-height: 300px;
    padding: 20px;
    clip-path: none;
    margin-top: 0;
    background: rgba(0, 0, 0, 0.5);
    text-align: left;
  }

  .trapezoid-text h3 {
    padding: 0;
    font-size: 1.5rem;
  }

  .trapezoid-text p {
    padding: 0;
    font-size: 1rem;
  }
}

/* =========================================
    製品加工例
========================================= */
/* 製品加工例 */
#item-list {
  background-color: #000;
}

.tab-container {
  max-width: 1200px;
  margin: 0px auto;
  font-family: sans-serif;
  padding: 0 20px;
}

.tab-buttons {
  display: flex;

}

.tab-button {
  position: relative;
  padding: 14px 36px;
  background-color: #444;
  border: none;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
  white-space: nowrap;
  text-align: center;
}

/* 左ボタン（工業機械部品）: 左まっすぐ、右斜め（↘） */
.tab-button:first-child {
  clip-path: polygon(0% 0, 90% 0, 100% 100%, 0% 100%);
  ;
}

/* 右ボタン（産業機械部品）: 左・右どちらも右下がりの斜め（↘） */
.tab-button:last-child {
  clip-path: polygon(0% 0, 90% 0, 100% 100%, 10% 100%);
  margin-left: -20px;
  /* 隙間を詰める */
}

/* アクティブなボタンの色 */
.tab-button.active {
  background-color: #08162B;
}

.tab-content {
  display: none;
  background-color: #FFF;
  /* ← 白背景に */
  padding: 20px;
  /* ← 内側に余白 */
  border-radius: 8px;
  /* ← 角を少し丸く（任意） */
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  /* ← 影をつけて浮き上がり感（任意） */
}

.tab-content.active {
  display: block;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* 3列 */
  gap: 16px;
}

.image-grid img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  object-fit: cover;
}

/* レスポンシブ（スマホ用） */
@media screen and (max-width: 768px) {
  .image-grid {
    grid-template-columns: repeat(2, 1fr);
    /* スマホは2列 */
  }
}

@media screen and (max-width: 480px) {
  .image-grid {
    grid-template-columns: 1fr;
    /* 小さい画面は1列 */
  }
}

/* =========================================
    主要設備
========================================= */
/* 主要設備 */
#facility {
  background-color: #000;
}

.facility-text {
  width: 80%;
  padding: 120px 0px;
  margin: 0 auto;
  color: #FFF;
  font-size: 1.2em
}

/* レスポンシブ（スマホ用） */
@media screen and (max-width: 768px) {
  .facility-text {
    padding: 60px 0px;
  }
}

/* 設備スライダー */

.slider-container {
  width: 100%;
  max-width: 1200px;
  
  margin: 0 auto;
  padding: 0 20px;
  
}

.facility-table {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  background: rgba(255, 255, 255, 0.9);
  border-collapse: collapse;
  width: 100%;
}

.facility-table th,
.facility-table td {
  border: 1px solid #ccc;
  padding: 12px;
  text-align: left;
}

.facility-table th {
 
  background-color: #f0f0f0;
}


/* =========================================
    作業工程
========================================= */
/* 作業工程 */
#process
{background-color: #FFF;

}

.sagyoukoutei {
  display: block;
  margin: 0 auto;
  width: 80%;
  padding: 15vh 0;
  /* 画面の高さの10% */
}

@media screen and (max-width: 768px) {
  .sagyoukoutei {
    padding: 5vh 0;
    /* 小さい画面では半分に */
    width: 100%;
  }
}

/* =========================================
    会社概要
========================================= */
/* 会社概要 */
.company-bg {
  background: url('../images/gaiyou-haikei.png') no-repeat center center;
  background-size: cover;
  padding: 10vh 20px;
}

/* 写真とMAP */
.photo-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  /* 高さを揃えるために stretch */
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.left-photo,
.map {
  flex: 1 1 48%;
  display: flex;
  flex-direction: column;
}

.left-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* 縦横比を保ちつつトリミング */
}

.map iframe {
  width: 100%;
  height: 100%;
  /* 親の高さに合わせる */
  min-height: 300px;
  border: 0;
}

/* 会社概要表 */
.info-table {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  background: rgba(255, 255, 255, 0.9);
  border-collapse: collapse;
  width: 100%;
}

.info-table th,
.info-table td {
  border: 1px solid #ccc;
  padding: 12px;
  text-align: left;
}

.info-table th {
  width: 30%;
  background-color: #f0f0f0;
}


@media screen and (max-width: 768px) {
  .photo-wrapper {
    flex-direction: column;
  }

  .left-photo img {
    height: auto;
    /* スマホでは画像の自然な高さ */
  }

  .map iframe {
    height: auto;
    aspect-ratio: 4 / 3;
    /* スマホで自然なサイズ感に */
  }
}

.factory-map-wrapper{
  width: 100%;
  padding: 20px;
 background-color: #FFF;
}
.factory-map{
  
  max-width: 1000px;
  margin: 0 auto
}

.factory-map img{
  width: 100%;
}


/* =========================================
    お問い合わせ
========================================= */

#contact {
  background-color: #fff;
}

.contact-text {
  margin: 0;
  padding: 20px 20px;
  text-align: center;
}

.contact-form-area {
  background-color: #BDBDB7;
}

/* ContactForm7 カスタマイズ */
/* 全体のフォーム幅を80%・中央寄せ */
table.CF7_table {
  width: 80%;
  margin: 0 auto;
  border-collapse: collapse;
  font-family: sans-serif;
}

/* テーブルのセル基本設定 */
.CF7_table th,
.CF7_table td {
  padding: 12px 15px;
  vertical-align: top;
}

/* ラベル列幅（PCのみ） */
@media screen and (min-width: 768px) {
  .CF7_table th {
    width: 30%;
  }
}

/* 入力欄共通：画面に収まるように修正 */
.CF7_table input,
.CF7_table textarea {
  width: 100%;
  padding: 8px;
  border-radius: 6px;
  font-size: 1em;
  box-sizing: border-box;
}

/* テキストエリアは高くする */
.CF7_table textarea {
  height: 200px;
}

/* 「必須」「任意」マーカー */
.marker {
  display: inline-block;
  background: #e60000;
  /* 赤色 */
  color: #fff;
  padding: 2px 8px;
  font-size: 12px;
  border-radius: 6px;
  margin-right: 0.5em;
}

.optional-bg .marker {
  background: #9e9e9e;
  /* グレー */
}

/* プレースホルダーの色調整 */
.CF7_table ::placeholder {
  color: #888;
}

/* 送信ボタン */
.CF7_btn {
  text-align: center;
  margin-top: 30px;
}

.wpcf7 input.wpcf7-submit {
  background-color: #577A8F;
  padding: 12px 30px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;

  /* ボタン中央寄せ */
  display: block;
  margin: 0 auto;
}

.wpcf7 input.wpcf7-submit:hover {
  background-color: #008ecc;
}

/* 独自クラス：短い入力欄 */
.short-input {
  width: 300px;
  padding: 8px;
  border: 1px solid #d8d8d8;
  border-radius: 6px;
  font-size: 1em;
  box-sizing: border-box;
}

/* 独自クラス：お問い合わせ内容など広めの欄 */
.long-input {
  width: 100%;
  height: 200px;
  padding: 10px;
  border: 1px solid #d8d8d8;
  border-radius: 6px;
  box-sizing: border-box;
  font-size: 1em;
  resize: vertical;
}

/* レスポンシブ：スマホ対応 */
@media screen and (max-width: 768px) {
  table.CF7_table {
    width: 95%;
  }

  .CF7_table tr,
  .CF7_table th,
  .CF7_table td {
    display: block;
    width: 100%;
  }

  .CF7_table th,
  .CF7_table td {
    padding: 0px 15px;
  }

  .CF7_table th {
    margin-bottom: 5px;
    text-align: left;
  }

  .CF7_table td {
    margin-bottom: 20px;
  }

  .CF7_table input,
  .CF7_table textarea {
    text-align: left;
  }

  /* モバイル時は入力欄を100%に（強制） */
  .wpcf7 input[type="email"],
  .wpcf7 input[type="text"],
  .wpcf7 input[type="tel"],
  .wpcf7 textarea {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 独自クラスもモバイル時に100%に */
  .short-input,
  .long-input {
    width: 100% !important;
  }
}

/* =========================================
    ＴＯＰへ戻るボタン
========================================= */
/* 通常・visited 両方に白文字を強制 */
.back-to-top,
.back-to-top:visited {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 48px;
  height: 48px;
  background-color: rgba(0, 0, 0, 0.7);
  /* 黒の半透明背景 */
  color: #fff;
  /* 白い▲ */
  border: 1px solid #fff;
  /* 白の縁取り */
  border-radius: 50%;
  /* 丸ボタン */
  text-align: center;
  line-height: 48px;
  font-size: 18px;
  text-decoration: none;
  z-index: 1000;
  transition: all 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

/* ホバー時：白背景・黒文字に反転 */
.back-to-top:hover {
  background-color: #fff;
  color: #000;
  border-color: #000;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

@media (max-width: 768px) {
  .back-to-top {
    width: 56px;
    height: 56px;
    font-size: 20px;
    line-height: 56px;
    bottom: 16px;
    right: 16px;
  }
}

/* =========================================
    最下層余白削除
========================================= */
.post,
.page {
  margin: 0 0 1.5em;
}

.post:last-child,
.page:last-child {
  margin-bottom: 0;
}

/* =========================================
    footer
========================================= */
.site-footer {
    background-image: url("../images/footer-bg.png");
    background-size: cover;
    background-position: center;
    box-sizing: border-box;
    font-size: 14px;
    color: #fff;
    padding: 40px 20px;
}

.footer-top {
    display: flex;
    justify-content: center;
    /* space-between から変更 */
    align-items: flex-start;
    gap: 40px;
    /* 左右の距離を明示的にコントロール */
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer-left {
    max-width: 50%;
    /* 必要に応じて 40〜50% に調整 */
    flex: 1 1 auto;
}

/* .footer-right {
    flex-shrink: 0;
} */

.footer-left table {
    color: #fff;
    font-size: 20px;
    line-height: 1.8;
}

.footer-left .company-name {
    font-size: 20px;
    font-weight: bold;
    padding-bottom: 10px;
    color: #fff;
}


.footer-left .label {
    padding-right: 1em;
    white-space: nowrap;
    vertical-align: top;
    font-weight: bold;
}

/* .footer-right img {
    max-width: 100%;
    height: auto;
} */

.footer-sitemap {
    text-align: center;
    margin-bottom: 20px;
    word-break: keep-all;    /* 単語途中で改行しない */
    white-space: normal;     /* 通常の改行を許可 */
}


.footer-sitemap a {
    color: #FFF;
    text-decoration: none;
    margin: 0 10px;
    position: relative;
    display: inline-block; 
}


.footer-sitemap a::after {
    content: "|";
    color: #fff;
    margin-left: 20px;
}

.footer-sitemap a:last-child::after {
    content: "";
}

.footer-bottom {
    text-align: center;
    font-size: 12px;
    color: #fff;
}

.footer-sitemap a,
.footer-sitemap a:visited,
.footer-sitemap a:hover {
    color: #fff;
    text-decoration: none;
}

/* --- レスポンシブ対応 --- */
@media screen and (max-width: 768px) {

    .footer-top {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .footer-left {
        text-align: left;
        max-width: 100%;
    }

    .footer-right img {
        max-width: 200px;
    }

    .footer-left table {
        margin: 0 auto;
    }

}