/*
Theme Name: Kyodo Setsubi Theme
Author: Expert
Description: 共同設備工業様向けカスタムテーマ。ブロックエディター完全対応。
Version: 1.0
*/
@charset "utf-8";
/* 全体リセット */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
img {
  max-width: 100%;
  height: auto;
}
.pc {
  display: block;
}
.sp {
  display: none;
}
.container {
  max-width: 1200px !important;
  margin: 0 auto;
}
.container-fluid {
  max-width: 100% !important;
  margin: 0;
  padding: 0;
}
.mt-1m {
  padding-top: 2.5em;
}
.h-95 {
  height: 95%;
}
.h-90 {
  height: 90%;
}
.h-85 {
  height: 85%;
}
.h-80 {
  height: 80%;
}
.h-75 {
  height: 75%;
}
.h-70 {
  height: 70%;
}

/* フォント設定（Adobe Fonts） */
html,
body {
  font-family: "kozuka-gothic-pro", sans-serif;
  font-weight: 400;
  font-style: normal;
  line-height: 1.75;
  font-size: 19px;
  color: #595858;
  overflow-x: hidden !important;
  overscroll-behavior-x: none;
  touch-action: pan-y;
}
/* 2. 横スクロールバーを非表示にする */
/* WebKit系（Chrome, Safari, EdgeChromium） */
body::-webkit-scrollbar {
  height: 0;
}
/* Firefox */
body {
  scrollbar-width: none; /* 全面的にスクロールバーを非表示 */
  -ms-overflow-style: none; /* IE/Edge Legacy */
  padding-top: 75px;
}
strong,
b {
  font-weight: 700;
  font-style: normal;
}
html {
  scroll-behavior: smooth;
}
.text-right {
  text-align: right;
}
.text-left {
  text-align: left;
}
.mb-10 {
  margin-bottom: 5em;
}

/* 初期状態：透明＆左にオフセット */
.fade-in-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* ビュー内に入ったときに付与するクラス */
.fade-in-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/*
------------------------------------------------------------ ヘッダー（共通）
*/
.header {
  position: fixed; /* relative → fixed に変更 */
  top: 0; /* 画面上端に貼り付け */
  left: 0;
  width: 100%; /* 横幅を画面いっぱいに */
  background-color: #fff;
  height: 75px;
  z-index: 1000;
  margin: 0;
  padding: 0;
}
.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.header h1 {
  margin: 0;
  padding: 0;
}
.header .site-logo {
  height: 100%;
  max-height: 75px;
}

/* グローバルナビゲーション */
.header nav ul.nav {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  font-size: clamp(14px, 1.5vw, 18px);
  list-style: none;
}
.header nav ul.nav li {
  margin: 0;
}

/* 通常のhover時の下線 */
.header nav ul.nav li a.nav-link {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  padding: 0 35px;
  line-height: 75px;
  display: inline-block;
  background-color: #fff;
  transition: background-color 0.3s, color 0.3s;
  position: relative;
  display: inline-block;
  padding: 0 1em;
  text-decoration: none;
}

/* 通常のhover時の下線（full-activeは除外） */
.header nav ul.nav li:not(.full-active) a.nav-link:hover::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  width: 90%;
  height: 5px;
  background-color: #005bac;
}

/* v-activeクラスが付いたliに対して常時下線 */
.header nav ul.nav li.v-active a.nav-link::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  width: 90%;
  height: 5px;
  background-color: #005bac;
}

/* full-activeは常時もhover時も下線なし */
.header nav ul.nav li.full-active a.nav-link::after,
.header nav ul.nav li.full-active a.nav-link:hover::after {
  content: none !important;
}

.header nav ul.nav li.full-active a.nav-link {
  background-color: #00a0e9;
  color: #fff;
}
.header nav ul.nav li.full-active a.nav-link:hover {
  background-color: #005bac;
  color: #fff;
}
.header nav ul.nav li {
  position: relative;
}

/* サブメニューの初期設定 */
.sub-menu {
  position: fixed;
  top: 75px; /* ヘッダー高さ分だけ下げる */
  left: 0;
  width: 100%;
  z-index: 900; /* ヘッダーより背面に */
  display: none; /* 必要に応じて hover や JS で表示制御 */
}
#sub-menu-1,
#sub-menu-2,
#sub-menu-3 {
  background-color: #d3edfb;
}
.sub-menu .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  text-align: left;
}

/* サブメニュー共通内容 */
.flex-layout {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  gap: 10px;
}
.sub-menu-heading {
  position: absolute;
  flex: 0 0 auto;
  margin-right: 50px;
  font-size: 24px;
  font-weight: bold;
  color: #005bac;
  text-align: left;
}
.sub-menu h2 {
  color: #005bac;
  font-weight: bold;
  font-size: 20px;
  white-space: nowrap;
  margin: 0px 100px 0 0;
}
.sub-menu .index {
  position: relative;
  white-space: nowrap;
  left: 0;
  top: 30px;
}
.sub-menu .index a {
  color: #000;
  font-size: 14px;
  text-decoration: none;
}
.sub-menu-items {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 15px;
}
.sub-item {
  flex: 0 0 auto;
  text-align: left;
  white-space: nowrap;
}
.sub-item::before {
  content: "●";
  margin-right: 0.5em;
  color: #005bac;
  font-size: 10px;
  line-height: 1;
  display: inline-block;
  vertical-align: middle;
}
.sub-item a {
  text-decoration: none;
  color: #000;
  font-size: 16px;
  transition: color 0.3s ease;
}
.sub-item a:hover {
  color: #005bac;
}

/* サブメニュー1、２ */
.sub-menu-1 {
  display: none;
  position: absolute;
  top: 75px;
  background-color: #e8f5e9;
  z-index: 999;
}

#sub-menu-1,
#sub-menu-2 {
  margin-top: 0px;
}

#sub-menu-1 .col-9 .sub-menu-list,
#sub-menu-2 .col-9 .sub-menu-list {
  display: grid;
  margin-top: -0.25em;
  grid-template-columns: repeat(3, 1fr);
  justify-items: left;
}

#sub-menu-1 .sub-menu-heading,
#sub-menu-2 .sub-menu-heading {
  margin-top: 0 !important;
  margin-bottom: 10px !important;
}

#sub-menu-1 .col-9 .sub-item,
#sub-menu-2 .col-9 .sub-item {
  margin: 0 !important;
  padding: 5px 0;
  text-align: center;
}

#sub-menu-1 .col-9 .sub-item a,
#sub-menu-2 .col-9 .sub-item a {
  text-decoration: none;
  color: #000;
  font-size: 16px;
  transition: color 0.3s ease;
}

#sub-menu-1 .col-9 .sub-item a:hover,
#sub-menu-2 .col-9 .sub-item a:hover {
  color: #005bac;
}

/* サブメニュー3 */
.sub-menu-3 {
  display: none;
  position: absolute;
  top: 75px;
  left: 0;
  width: 100%;
  background-color: #e8f5e9;
  z-index: 999;
}
#sm-inner-3 {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

/* サブ項目のセットを横並び配置 */
.h3-item-container {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
}
.h3-subitem-group {
  display: flex;
  flex-direction: column;
  width: calc(33.33% - 20px);
}
.h3-subitem-group h3 {
  background-color: #005bac;
  color: #fff;
  padding: 10px 15px;
  font-size: 18px;
  margin: 0;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* サブ項目内の配置調整 */
.h3-subitem-group .sub-menu-items {
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

/*
------------------------------------------------------------ トップページ
*/

.mv {
  opacity: 0;
  transform: translateY(75px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

/* 画面内に入ったタイミングで .mv に付与されるクラス */
.mv.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* TOPメインビジュアル */
.topmain > video {
  object-fit: cover;
  object-position: center;
  width: 100%;
  height: 100%;
}

.topmain {
  position: relative;
  overflow: hidden;
  width: 100vw;
  max-height: calc(100vh - 74px);
  aspect-ratio: 3/5;
}

.video-container {
  position: relative;
}

.video-container .video-cover {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: pointer;
}

@media screen and (min-width: 1025px), print {
  .topmain {
    height: calc(100vh - 74px);
    aspect-ratio: 9/16;
  }
}

/* バナーBOX１ */
#box-bnr1 {
  width: 100%;
  max-width: 1145px;
  margin: 60px auto 60px auto;
  display: flex;
  align-items: flex-end;
}
.mh1 {
  padding: 0 17px;
  transition: opacity 1.5s ease;
}
a:hover .mh1 {
  content: url(https://www.kyodosetsubi.jp/sys/wp-content/themes/kyodo/assets/img/top/btn-recruit-o.png);
  transition: opacity 1.5s ease;
}
#box-bnr1 img {
  max-width: 100%;
  height: auto;
  vertical-align: bottom;
}

/* 共同設備について */
#box-about {
  padding: 60px 0 40px 0;
}
#box-about h2 {
  font-size: 38px;
  text-align: center;
  font-weight: bold;
}
.sub-title {
  font-size: 28px;
  font-weight: 800;
  color: #a9a9aa;
  text-align: center;
  margin-top: -0.5em;
}
.read-txt {
  margin: 2em auto 0 auto;
  max-width: 700px;
  position: relative; /* z-index が効くように */
  z-index: 2; /* 数値は .marquee より高くする */
}

.marquee-wrapper {
  position: relative;
  width: 100vw;
  overflow-x: hidden;
}

.marquee {
  display: inline-block;
  white-space: nowrap;
  will-change: transform;
  animation: slide 30s linear infinite;
  position: absolute;
  left: 0;
  margin-top: -0.75em;
  color: #dff2fc;
  z-index: 1;
  font-weight: 800;
  white-space: nowrap;
  font-size: clamp(75px, 15vw, 355px);
  will-change: transform;
  backface-visibility: hidden;
  overflow-x: hidden;
  /* アニメーションは30秒でループ、負の delay を設定して読み込み時に途中から開始 */
  animation: slide 30s linear infinite;
  letter-spacing: -0.05em; /* この値を調整して好みの文字間隔に */
  animation-delay: -15s; /* 30秒周期の半分分ずらす例 */
}

/* 連続させるためのテキスト要素の設定 */
.marquee span {
  display: inline-block;
  margin-right: 0;
}

/* キーフレームでは全体の半分の長さ分（複製した2つ分で1周期となるように調整） */
@keyframes slide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

#about-visual,
#about-visual-b {
  display: flex; /* Flexboxコンテナにする */
  align-items: center; /* 縦方向の中央揃え */
  justify-content: center; /* 横方向も中央揃え（必要に応じて削除可） */
  height: 100vh; /* 画面全体の高さの場合。必要に応じて高さの指定を変更してください */
  margin-top: 6em;
  height: 325px;
  text-align: center;
  vertical-align: middle;
  background-image: url(https://www.kyodosetsubi.jp/sys/wp-content/themes/kyodo/assets/img/top/about-top-bg.jpg);
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #fff;
  font-size: clamp(20px, 3vw, 35px);
  font-weight: 500;
}

#about-visual-b {
  margin-top: 0;
  background-image: url(https://www.kyodosetsubi.jp/sys/wp-content/themes/kyodo/assets/img/top/about-top-bgb.jpg);
}

.vp {
  transition: transform 0.3s ease; /* ホバー時の変化を0.3秒で実現 */
}
.vp:hover {
  transform: scale(1.05); /* 横・縦いずれも5%拡大 */
}

#about-linkbox {
  background: linear-gradient(to bottom, #acc3e6, #f7f9fc);
}
#about-linkbox .container {
  padding: 10em 0;
  background-image: url(https://www.kyodosetsubi.jp/sys/wp-content/themes/kyodo/assets/img/top/about-top-bg2.png);
  background-position: left bottom;
  background-repeat: no-repeat;
  background-size: auto 70%;
}
.lo1,
.lo2 {
  transition: opacity 1.5s ease;
}

#about-linkbox .container a:hover .lo1 {
  content: url(https://www.kyodosetsubi.jp/sys/wp-content/themes/kyodo/assets/img/top/btn-construction-o.png);
  transition: opacity 1.5s ease;
}
#about-linkbox .container a:hover .lo2 {
  content: url(https://www.kyodosetsubi.jp/sys/wp-content/themes/kyodo/assets/img/top/btn-recruit-o.png);
  transition: opacity 1.5s ease;
}

#box-about img {
  padding: 15px;
}
#box-about p {
  margin: 0.5em;
  text-align: center;
}
#box-about a {
  color: #000;
  text-decoration: none;
}

/*  お知らせ */
#box-message {
  width: 95%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0 40px 0;
  background-color: #fff;
  text-align: center;
}
#box-message h2 {
  font-size: 38px;
  text-align: center;
  font-weight: bold;
}
#box-message .news-list {
  margin: 2em 0;
}

.news-dl {
  position: relative;
  margin: 0;
  padding: 0;
  border-top: 1px solid #c9caca;
}
.news-dl::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

/* 各行 */
.news-item {
  position: relative;
  background-image: url(https://www.kyodosetsubi.jp/sys/wp-content/themes/kyodo/assets/img/top/news-arrow.png);
  background-repeat: no-repeat;
  background-position: calc(100% - 20px) 50%; /* 右端から30px内側 */
  background-size: var(--icon-size) var(--icon-size);
  padding: 0 calc(var(--icon-size) + 40px) 0 0; /* ←余白も広げると文字と干渉しない */
  line-height: 1.6;
}

/* aを行全体のクリック領域に */
.news-item a {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  column-gap: var(--gap);
  text-decoration: none;
  color: inherit;
  width: 100%;
  padding: 30px 0px;
}

/* dt, dd リセット */
.news-item dt,
.news-item dd {
  margin: 0;
  padding: 0;
  text-align: left;
}
.news-item dt {
  white-space: nowrap;
  font-weight: 600;
}

/* PC時：全幅の下線 */
@media (min-width: 768px) {
  .news-item {
    border-bottom: 1px solid #c9caca;
  }
  .news-item::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
  }
  .news-item dt {
    padding: 0 50px;
  }
  .news-item dd {
    padding-left: 50px;
    padding-right: 50px;
  }
}

@media (max-width: 767.98px) {
  .news-item {
    background-position: calc(100% - 20px) 40%; /* 右端から30px内側 */
  }
  .news-list .news-item:first-of-type {
    padding-top: 20px;
  }
  /* 行同士の“間”を作っている margin を潰す（他所の .news-item + .news-item 対策） */
  .news-list .news-item {
    margin: 0 !important;
    padding: 0 !important;
  }
  .news-list .news-item + .news-item {
    margin-top: 0 !important;
  }

  /* クリック領域の上下パディングを統一し、余白を調整 */
  .news-list .news-item a {
    display: block !important;
    padding: 10px 5px !important; /* 上下10px / 左右5px に統一 */
  }

  .news-list .news-item dt {
    display: block;
    padding-left: 20px;
    margin-bottom: 0.25em !important;
  }
  .news-list .news-item dd {
    display: block;
    padding: 0 60px 20px 20px !important; /* 右の矢印ぶんの余白は残す */
    border-bottom: 1px solid #c9caca !important;
  }

  /* 念のため、DL自身のデフォルト余白も殺す */
  .news-list .news-dl {
    margin: 0 !important;
    padding: 0 !important;
  }
}

.news-item {
  line-height: 1.6;
}

/* セクション全体設定 */
#box-b-content {
  width: 100%;
  padding: 0;
  margin: 0 0 5em 0;
  box-sizing: border-box;
  background-color: #004098;
}

#box-b-content .bbc-inner {
  max-width: 1400px;
  margin: 0 auto;
}

/* 見出し部 */
.heading-block {
  text-align: center;
  margin-bottom: 2em; /* 見出しと下のレイアウトの間隔 */
}
.heading-block h2 {
  font-size: 38px;
  text-align: center;
  font-weight: bold;
}

/* 2カラム用Flexコンテナ */
.flex-container-two {
  display: flex;
  flex-wrap: nowrap;
}

/* 左カラム：背景画像はそのまま */
.flex-container-two > .left-col {
  width: 60%;
  position: relative;
  overflow: hidden;
}
.left-col::before {
  content: "";
  position: absolute;
  top: 0;
  left: -50%; /* 元の設定通り */
  width: calc(100% + 50%);
  height: 100%;
  background: url(https://www.kyodosetsubi.jp/sys/wp-content/themes/kyodo/assets/img/top/left-img.png) no-repeat center center;
  background-size: auto 100%;
}

/* 右カラム：内容を中央寄せ */
.flex-container-two > .right-col {
  width: 40%;
  display: flex;
  padding: 2em 0;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* メディアクエリ（画面幅768px以下の場合） */
@media (max-width: 768px) {
  .flex-container-two > .left-col {
    display: none;
  }
  .flex-container-two > .right-col {
    width: 100%;
  }
}

/* 親リンクに固定幅とブロック表示を設定 */
.right-col a {
  display: block;
  width: 50%;
  min-width: 220px; /* 各リンクの幅を統一 */
  margin: 10px 0; /* 上下に余白 */
  text-decoration: none;
  font-size: clamp(15px, 1vw, 19px);
}

/* リンク内の.itemは親の幅いっぱい */
.right-col a .item {
  width: 100%;
  border: 2px solid #fff;
  border-radius: 9999px; /* ピル状 */
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  padding: 1em 0; /* テキスト上下に1em余白 */
  text-align: center;
  color: #fff;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}

/* 右端から10pxの位置に "＞" を表示 */
.right-col a .item::after {
  content: "＞";
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #fff;
  transition: color 0.3s;
}

/* ホバー時の状態 */
.right-col a:hover .item {
  background-color: #fff;
  border-color: #fff;
  color: #004098;
}
.right-col a:hover .item::after {
  color: #004098;
}

/*
------------------------------------------------------------ 下層ページ共通
*/
#sub-page h3 {
  font-size: 38px;
  text-align: center;
  margin-bottom: 50px;
  font-weight: bold;
}
#sub-page {
  font-size: 1em;
  line-height: 2.1em;
}
#sub-page .container {
  max-width: 1350px;
  padding-right: 25px;
  padding-left: 25px;
  margin-right: auto;
  margin-left: auto;
}
#sub-page p {
  margin-bottom: 1.5em;
}
#sub-page .nb p {
  margin-bottom: 0px;
}
#sub-page .tc {
  text-align: center;
}

.visually-h {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.visually-h img {
  position: absolute;
  max-width: 100%;
  height: auto;
  padding: 0;
  margin-top: -100px;
}
.pr {
  position: relative;
}

.mt-10 {
  padding-top: 5em;
}
.bp {
  display: inline-block;
  width: 0.25em;
  line-height: 0; /* 万一の余白防止 */
}
.bp2 {
  display: inline-block;
  width: 0;
  line-height: 0; /* 万一の余白防止 */
}
/* Googleマップレスポンシブ */
.gmap {
  position: relative;
  width: 100%;
  max-width: 1310px;
  margin: 2em auto 0 auto;
  height: 0;
  padding-top: 50.8%;
}

/* Google Mapのiframe */
.gmap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

@media screen and (max-width: 768px) {
  .gmap {
    width: 90%;
    margin: 2em auto 0 auto;
  }
}

#main-con {
  margin-top: clamp(50px, 35%, 420px);
  position: relative;
  z-index: 1;
  padding-bottom: 1em;
}

.con-box {
  padding: 4em 0;
}

/*------------------------------------------*/
/* 会社案内
/*------------------------------------------*/
#st-about .title-en {
  width: 100%;
  color: #ffffffbb;
  font-weight: 900;
  line-height: 1em;
  font-size: clamp(50px, 11vw, 130px);
  padding: 20px 0 0 20px;
  display: block;
}
#st-about h2 {
  padding: 0 0 0 25px;
  font-size: clamp(20px, 2.5vw, 35px);
  color: rgb(255, 255, 255);
  font-weight: bold;
  margin-top: 0px;
  z-index: 10000;
}
#st-about h2.mv {
  position: relative;
  z-index: 2;
}

@media screen and (min-width: 768px) {
  #st-about {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 3840 / 1130;
    min-height: 100px;
    background-image: url(https://www.kyodosetsubi.jp/sys/wp-content/themes/kyodo/assets/img/about/heading-bg.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-bottom: 150px;
  }
}

@media screen and (max-width: 768px) {
  #st-about {
    position: relative;
    margin-top: 75px;
    width: 100%;
    height: auto;
    aspect-ratio: 768 / 792;
    background-size: cover;
    background-image: url(https://www.kyodosetsubi.jp/sys/wp-content/themes/kyodo/assets/img/about/sp-heading-bg.jpg);
    background-position: center;
    background-repeat: no-repeat;
    padding-bottom: 150px;
  }
  #st-about .title-en {
    font-size: 21vw;
  }
}

#about-con01 {
  width: 100%;
  background-color: #bbdcf4;
  padding: 1em 0;
  margin: 0 auto;
}
#about-con01 .inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0px 0 9em 0;
  background-image: url(https://www.kyodosetsubi.jp/sys/wp-content/themes/kyodo/assets/img/about/about-con01-bg.png);
  background-size: auto 100%;
  background-position: left top;
  background-repeat: no-repeat;
  text-align: center;
}
#about-con01 .inner h3 {
  margin-top: 2em;
  font-weight: 600;
  font-size: clamp(28px, 2.75vw, 38px);
}
#about-con01 .inner .sub-txt {
  color: #fff;
  font-size: clamp(18px, 2.5vw, 27px);
}
#about-con01 .inner .policy {
  width: 100%;
  height: auto;
  max-width: 1060px;
  margin: 3em auto;
}
@media screen and (max-width: 1200px) {
  /* .mv が幅を絞っている想定を強制解除 */
  #about-con01 .policy,
  #about-con01 .policy.mv {
    width: 90% !important;
    max-width: none !important;
    margin-left: auto;
    margin-right: auto;
  }
  /* 画像自体を親いっぱいに */
  #about-con01 .policy img {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    height: auto;
  }
  /* 念のため、他所の img 共通指定に負けないように */
  #about-con01 img {
    max-width: 100%;
    height: auto;
  }
  #about-con01 .sp-txt {
    width: 90%;
    margin-left: auto;
    margin-right: auto;
  }
}

#about-con02 {
  width: 100%;
  background-color: #fff;
  padding: 1em 0;
  margin: 0;
}
#about-con02 .inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2em 0 8em 0;
  text-align: center;
}
#about-con02 .inner h3 {
  margin-top: 2em;
  font-weight: 600;
  font-size: clamp(28px, 2.75vw, 38px);
}
#about-con02 .inner .sub-txt {
  color: #aaabab;
  font-size: clamp(18px, 2.5vw, 27px);
}
#about-con02 .inner .video-container {
  position: relative;
  width: 100%;
  max-width: 740px;
  aspect-ratio: 1920 / 1080;
  margin: 1em auto 0 auto;
  cursor: pointer;
}
#about-con02 .inner .video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
#about-con02 .inner .video-cover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url(https://www.kyodosetsubi.jp/sys/wp-content/themes/kyodo/assets/img/about/video.png) center center / cover no-repeat;
  z-index: 2;
  transition: opacity 0.3s;
}

#about-con03 {
  width: 100%;
  background-color: #bbdcf4;
  background-image: url(https://www.kyodosetsubi.jp/sys/wp-content/themes/kyodo/assets/img/about/about-con03-bg.jpg);
  background-size: 100% auto;
  background-position: center center;
  background-repeat: no-repeat;
  padding: 0;
  margin: 0;
}
#about-con03 .inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 8.25em 0;
  text-align: center;
}
#about-con03 .inner .sub-txt {
  color: #fff;
  font-size: clamp(18px, 2.5vw, 35px);
  font-weight: 800;
}

#about-con04 {
  width: 100%;
  background-color: #efefef;
  padding: 0;
  margin: 0;
}
#about-con04 .inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2em 0 8em 0;
  text-align: center;
}
#about-con04 .inner h3 {
  margin-top: 2em;
  font-weight: 600;
  font-size: clamp(28px, 2.75vw, 38px);
}
#about-con04 .inner .sub-txt {
  color: #aaabab;
  font-size: clamp(18px, 2.5vw, 27px);
}

.table-box {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.tb01,
.tb02 {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-top: 2em;
}

.tb01 th,
.tb01 td,
.tb02 th,
.tb02 td {
  border-bottom: 1px solid #9fa0a0;
}

.tb01 tr:first-child td,
.tb02 tr:first-child td {
  border-top: 1px solid #9fa0a0;
}

.tb01 th {
  background-color: #004190;
  color: #fff;
  padding: 1em 0;
  text-indent: 90px;
  width: 333px;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}
.tb02 th {
  background-color: #2c893a;
  color: #fff;
  padding: 1em 0;
  text-indent: 120px;
  width: 333px;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.tb01 td,
.tb02 td {
  width: auto;
  color: #000;
  background-color: transparent;
  padding: 1em 0;
  padding-left: 80px;
  text-align: left;
  vertical-align: middle;
}

#about-con05 {
  background-color: #005bac;
}
#about-con05 .inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

#about-con06 {
  width: 100%;
  background-color: #efefef;
  padding: 1em 0 3em 0;
  margin: 0;
}
#about-con06 .inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2em 0 8em 0;
  text-align: center;
}
#about-con06 .inner h3 {
  margin-top: 2em;
  font-weight: 600;
  font-size: clamp(28px, 2.75vw, 38px);
}
#about-con06 .inner .sub-txt {
  color: #aaabab;
  font-size: clamp(18px, 2.5vw, 27px);
}

#about-con07 {
  width: 100%;
  background-color: #fff;
  padding: 1em 0 3em 0;
  margin: 0;
}
#about-con07 .inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2em 0 8em 0;
  text-align: center;
}
#about-con07 .inner h3 {
  margin-top: 2em;
  font-weight: 600;
  font-size: clamp(28px, 2.75vw, 38px);
}
#about-con07 .inner .sub-txt {
  color: #aaabab;
  font-size: clamp(18px, 2.5vw, 27px);
}

@media screen and (max-width: 768px) {
  #about-con02 .inner {
    padding: 1em 0 4em 0;
  }
  #about-con03 .inner {
    padding: 4em 0;
  }
  #about-con04 .inner {
    padding: 2em 0;
  }
  .table-box {
    width: 90%;
    margin: 0 auto;
  }
  .tb01,
  .tb01 tbody,
  .tb01 tr,
  .tb01 th,
  .tb01 td,
  .tb02,
  .tb02 tbody,
  .tb02 tr,
  .tb02 th,
  .tb02 td {
    display: block;
    width: 100%;
  }

  .tb01 th,
  .tb02 th {
    max-width: 100%;
    padding: 1em;
    white-space: nowrap;
    border-bottom: none;
    text-indent: 0px;
    text-align: center;
  }

  .tb01 td,
  .tb02 td {
    padding: 0.5em 1em 1.5em;
  }

  .tb01 tr,
  .tb02 tr {
    border-bottom: none;
    padding-bottom: 1em;
  }
  .tb01 th,
  .tb01 td,
  .tb02 th,
  .tb02 td {
    border-bottom: none;
  }

  .tb01 tr:first-child td,
  .tb02 tr:first-child td {
    border-top: none;
  }
  #about-con06 {
    padding: 1em 0 0 0;
  }
  #about-con06 .inner {
    padding: 2em 0;
    text-align: center;
  }
  #about-con07 .inner {
    padding: 2em 0;
    text-align: center;
  }
}

#greeting,
#philosophy,
#vision,
#overview,
#history,
#access {
  padding: 70px 0;
}

.frame .ac {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 75px auto 0 auto;
}
#philosophy,
#vision {
  background-color: #bbdcf4;
}

.tc {
  text-align: center;
}

#vision {
  margin-top: -85px;
}

/* テーブル TH色あり */
.dec-t01 {
  width: 100%;
  border-collapse: collapse;
}
.dec-t01 th,
.dec-t01 td {
  padding: 1em 1em 1em 4em;
  border-bottom: 1px solid #000;
  text-align: left;
}
.dec-t01 th {
  background-color: #bbdcf4;
  vertical-align: middle;
  text-align: left;
  padding: 1em 10px 1em 4em;
}
/* テーブル TH色なし */
.dec-t01nc {
  width: 100%;
  border-collapse: collapse;
}
.dec-t01nc th,
.dec-t01nc td {
  padding: 1em 1em 1em 4em;
  border-bottom: 1px solid #000;
  text-align: left;
}
.dec-t01nc th {
  background-color: #fff;
  vertical-align: middle;
  text-align: left;
  padding: 1em 10px 1em 4em;
}
.dec-t01nc td {
  position: relative;
  padding-left: 20px;
}
.dec-t01nc td::before {
  content: "●";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #bbdcf4;
  font-size: 14px;
}
.photo-block {
  width: 95%;
  margin: 0 auto;
}
.photo-block .second {
  margin-top: 1.5em;
}

/*------------------------------------------*/
/* 施工実績
/*------------------------------------------*/
#st-works {
  position: relative;
  width: 100%;
  height: auto;
  aspect-ratio: 3840 / 1130;
  min-height: 100px;
  background-image: url(https://www.kyodosetsubi.jp/sys/wp-content/themes/kyodo/assets/img/works/heading-bg.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-bottom: 150px;
}
#st-works .title-en {
  width: 100%;
  color: #ffffffbb;
  font-weight: 900;
  line-height: 1em;
  font-size: clamp(50px, 11vw, 130px);
  padding: 20px 0 0 20px;
  display: block;
}
#st-works h2 {
  padding: 0 0 0 25px;
  font-size: clamp(20px, 2.5vw, 35px);
  color: rgb(255, 255, 255);
  font-weight: bold;
  margin-top: 0px;
  z-index: 10000;
}
#st-works h2.mv {
  position: relative;
  z-index: 2;
}
#works-con {
  width: 100%;
  background-color: #f5f2e9;
  background-image: url(https://www.kyodosetsubi.jp/sys/wp-content/themes/kyodo/assets/img/works/bg-logo.png);
  background-size: 45% auto;
  background-position: 10% bottom;
  background-repeat: no-repeat;
  padding-bottom: 10em;
}
#works-con .inner {
  width: 95%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 3.5em 0 3em 0;
}
.row .wp-caption {
  max-width: 100%;
  margin: 0 0 0.5em auto;
  text-align: right;
  font-size: clamp(14px, 2.5vw, 16px);
}
#works-con .row {
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 3em 0 0 0;
  border-bottom: 1px solid #231815;
}

#works-con .row > [class*="col-"] {
  padding: 0 !important;
  margin: 0 !important;
}
#works-con h4 {
  font-size: clamp(20px, 2.5vw, 28px);
}
#works-con .sub-txt {
  font-size: clamp(20px, 2.5vw, 20px);
  color: #aaabab;
  line-height: 1.3em;
}
#works-con .row .wp-caption img {
  width: 100%;
  height: auto;
  display: block;
}

#works-con .inner > .row {
  margin: 0 !important;
}

#works-con .inner .row > [class*="col-"] {
  padding: 0 !important;
}

.heading-img {
  position: absolute;
  bottom: clamp(-350px, -67%, -150px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  width: auto;
  height: auto;
  max-width: 1160px;
  width: 95%;
}

#works-con .content-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 25px;
}
.h4-icon {
  width: auto;
  height: auto;
  display: block;
  margin-bottom: 1em;
}
.text-wrap {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-bottom: 0.5em;
  min-height: 100%;
}

.main-txt {
  font-size: 36px;
  color: black;
  font-weight: bold;
  margin: 1.5em 0 0 0;
}

.sub-txt {
  font-size: 28px;
  color: black;
  margin: 0;
  font-weight: bold;
}
.works-item {
  list-style: none;
  padding: 0;
  margin: 1em 0;
}

.works-item li {
  position: relative;
  padding-left: 20px;
  padding-right: 3.5em;
  margin-bottom: 5px;
  line-height: 1.9;
}

.works-item li::before {
  content: "●";
  position: absolute;
  left: 0;
  top: 0.85em;
  transform: translateY(0);
  color: #00a9e4;
  font-size: 14px;
  line-height: 1;
}

@media screen and (max-width: 1400px) {
  .works-item li::before {
    top: 0.75em;
    transform: translateY(0);
    color: #00a9e4;
    font-size: 14px;
    line-height: 1;
  }
}

@media screen and (max-width: 992px) {
  #works-con {
    background-size: 90% auto;
    background-position: left bottom;
    background-repeat: no-repeat;
    padding-bottom: 5em;
  }
  #works-con .inner {
    width: 95%;
    margin: 0 auto;
    padding: 1.5em 0 1.5em 0;
  }
  #works-con .inner .row .wp-caption img {
    width: 100%;
    margin-top: 1em;
    height: auto;
    display: block;
  }
  #works-con .inner .row .wp-caption {
    max-width: 100%;
    margin: 0 auto;
    text-align: right;
    font-size: clamp(14px, 2.5vw, 16px);
  }
}

@media screen and (max-width: 768px) {
  #st-works {
    position: relative;
    margin-top: 75px;
    width: 100%;
    height: auto;
    aspect-ratio: 768 / 792;
    background-size: cover;
    background-image: url(https://www.kyodosetsubi.jp/sys/wp-content/themes/kyodo/assets/img/works/sp-heading-bg.jpg);
    background-position: center;
    background-repeat: no-repeat;
    padding-bottom: 150px;
  }
  #works-con .content-wrap {
    justify-content: flex-start !important;
    align-items: flex-end; /* 念のため明示 */
  }
  #works-con .content-wrap > .h4-icon,
  #works-con .content-wrap > .text-wrap {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  #works-con .col-12,
  #works-con .row,
  #works-con .inner {
    text-align: left !important;
  }
  #works-con .mv img {
    max-width: 100%;
  }
  #st-works .title-en {
    font-size: 21vw;
  }
  #works-con .inner {
    width: 90%;
    margin: 0 auto;
    padding: 1.5em 0 1.5em 0;
  }
  #works-con .inner .row .wp-caption img {
    width: 100%;
    margin-top: 1em;
    height: auto;
    display: block;
    padding: 0;
  }
  #works-con .inner .row .wp-caption {
    max-width: 100%;
    margin: 0 auto;
    text-align: right;
    font-size: clamp(14px, 2.5vw, 16px);
  }
  #works-con .inner .mv img {
    width: 100%;
    margin: 0;
    padding: 0;
    height: auto;
    display: block;
  }
  .works-item li::before {
    top: 0.6em;
    transform: translateY(0);
    color: #00a9e4;
    font-size: 14px;
    line-height: 1;
  }
}

/*
------------------------------------------------------------ 事業内容
*/

#block-2 .inner-readtxt {
  width: 88%;
  max-width: 860px;
  margin: 0 auto;
}

/*  共通 */
#st-service-top .title-en,
#st-service01 .title-en,
#st-service02 .title-en,
#st-service03 .title-en,
#st-service04 .title-en,
#st-service05 .title-en,
#st-service05b .title-en,
#st-service06 .title-en {
  width: 100%;
  color: #ffffffbb;
  font-weight: 900;
  line-height: 1em;
  font-size: clamp(50px, 11vw, 130px);
  padding: 20px 0 0 20px;
  display: block;
}

#st-service-top h2.mv,
#st-service01 h2.mv,
#st-service02 h2.mv,
#st-service03 h2.mv,
#st-service04 h2.mv,
#st-service05 h2.mv,
#st-service05b h2.mv,
#st-service06 h2.mv {
  position: relative;
  z-index: 2;
}

.bottom-box {
  position: absolute;
  width: 100%;
  display: block;
  bottom: 0;
  text-align: center;
  padding: clamp(26px, 3vw, 60px) 0;
  z-index: 1;
}
#st-service01 .bottom-box {
  background-color: #003f98c5;
}
#st-service02 .bottom-box {
  background-color: #00633dc5;
}
#st-service03 .bottom-box {
  background-color: #94252ac5;
}
#st-service04 .bottom-box {
  background-color: #5f376ac5;
}
#st-service05 .bottom-box {
  background-color: #006987c5;
}
#st-service05b .bottom-box {
  background-color: #006987c5;
}
#st-service06 .bottom-box {
  background-color: #7e6b2ec5;
}

.out-box .inner figure.item.mv {
  text-align: center;
  margin: 2em 0;
  font-size: clamp(14px, 2.5vw, 16px);
}

.out-box .inner figure.item.mv img {
  max-width: 100%;
  height: auto;
}

.out-box .inner figure.item.mv figcaption {
  font-size: 0.95em;
  color: #555;
  margin-top: 0.5em;
}

.bottom-box h3 {
  font-size: clamp(28px, 2.5vw, 40px);
  color: #fff;
  font-weight: 600;
}
.bottom-box .sub-txt {
  font-size: clamp(16px, 2vw, 26px);
  margin-top: clamp(0px, 3vw, 10px);
  color: #c9caca;
}

/* 共通設定：最大幅1400px・中央寄せ */
#block-1 {
  max-width: 1400px;
  width: 100%;
  margin: 6em auto;
  line-height: 2em;
  display: flex;
  flex-direction: column-reverse; /* モバイル：画像上・テキスト下 */
  align-items: center; /* モバイル：左右中央配置 */
  gap: 50px; /* モバイル：上下隙間 */
}
#block-1 .inner2 {
  max-width: 800px;
  width: 100%;
  margin: 0 auto 0 auto;
  padding: 0;
  text-align: left;
}
#block-1 .inner2 .row {
  width: 100%;
  margin-top: 4em;
}

#block-1b {
  text-align: center;
  max-width: 1005px;
  width: 95%;
  margin: 6em auto;
  line-height: 2em;
  display: flex;
  flex-direction: column-reverse; /* モバイル：画像上・テキスト下 */
  align-items: center; /* モバイル：左右中央配置 */
  gap: 50px;
}

#block-2 {
  background-color: #dcdddd;
  padding: 8em 0 0 0;
}
#block-2b {
  background-color: #fff;
  width: 95%;
  margin: 0 auto;
  padding: 2em 0 0 0;
}

#block-2c {
  margin-top: -100px;
  background-color: #eaf6fd;
  padding: 0 0 3em 0;
}

#block-2d {
  background-color: #dcdddd;
  padding: 0;
  text-align: center;
}
#block-2d .inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  background-image: url(https://www.kyodosetsubi.jp/sys/wp-content/themes/kyodo/assets/img/services/06/box1-bg.png);
  background-position: left bottom;
  background-repeat: no-repeat;
  padding: 3em 0 8em 0;
}
#block-2d h3 {
  font-size: clamp(20px, 14vw, 125px);
  color: #ffffffa1;
  text-align: center;
  font-weight: 600;
  line-height: 1em;
  margin-bottom: 0.5em;
}
#block-2d .exp-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(20px, 2vw, 38px);
  font-weight: 600;
  color: #fff;
  background-color: #3d62ad;
  width: 4.5em;
  height: 4.5em;
  border-radius: 50%;
  margin-bottom: 1.5em;
}
#block-2d h4 {
  font-size: clamp(20px, 3.5vw, 70px);
  color: #fff;
  font-weight: 800;
  margin-bottom: -0.1em;
}
#block-2d .sub-txt {
  font-size: clamp(20px, 1.5vw, 28px);
}
#block-2d .reno-box {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 3em auto;
  padding: 0;
}
#block-2d .reno-box .row > [class*="col-"] {
  display: flex;
  flex-direction: column; /* 縦方向に積む */
  justify-content: center; /* 縦方向中央揃え */
  align-items: center; /* 横方向中央揃え */
  text-align: center; /* テキストも中央寄せ */
}
#block-2d .reno-box .bg-o {
  display: block;
  width: 100%;
  background-color: #f6ab00;
  margin-bottom: 0.5em;
  text-align: center;
  padding: 0.25em 0;
  font-weight: 500;
}
#block-2d .reno-box .bg-b {
  display: block;
  width: 100%;
  background-color: #aed7f3;
  margin-bottom: 0.5em;
  text-align: center;
  padding: 0.25em 0;
  font-weight: 500;
}
#block-2d .reno-box .text-box {
  background-color: #fff;
  width: 240px;
  height: 140px;
  border: 2px solid #004ea2;
  border-radius: 7px;
  margin-top: 1.5em;
  display: flex;
  font-size: 15px;
  line-height: 1.5em;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.mt-6 {
  padding-top: 1.5em;
}

  .price-cat-wrap {
    text-align: center;
  }

  .price-cat-wrap picture {
  display: block;
  width: 100%;
}

@media screen and (max-width: 1025px) {
  #block-1 .inner2 .row {
    width: 96%;
    margin-top: 4em;
  }
}

@media screen and (max-width: 768px) {
  /* — block-1 の指定は変更なし — */
  #block-1 .inner2 {
    width: 90%;
    margin: 0 auto;
    text-align: left;
  }

  .price-cat-wrap {
    text-align: center;
  }

  .price-cat-wrap picture {
  display: block;
  width: 100%;
}

  .price-cat {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 3rem auto 0 auto; /* Bootstrap mt-5 相当 */
  }

  .price-cat img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
}

/* ================================
   st11 ブロックだけを強制センタリング
   ================================ */

/* 1) この行だけ中央配置にする（2つ目の ml-c には当たらない） */
.img-wrapper > .ml-c.mt-3.mv{
  display: flex;
  justify-content: center;
}

/* 2) ky_picture が出す “何か” が幅100%で伸びても、上限を決めて中央に置く */
.img-wrapper > .ml-c.mt-3.mv > *{
  max-width: 100%;
}

/* 3) 実画像のサイズ（ここが “本来のspsize相当”） */
.img-wrapper > .ml-c.mt-3.mv img{
  display: block;
  width: 100%;
  height: auto;
  max-width: 700px; /* ←ここを希望サイズに */
}




  #block-1 .inner2 .row {
    margin: 4em auto 0 auto;
  }

  #block-2d .inner {
    width: 100%;
    margin: 0 auto;
    background-image: url(https://www.kyodosetsubi.jp/sys/wp-content/themes/kyodo/assets/img/services/06/box1-bg.png);
    background-size: 75% auto;
    background-position: left 10px bottom;
    background-repeat: no-repeat;
    padding: 3em 0 0.25em 0;
  }

  /* Reno-box 自体の最大幅はそのまま */
  #block-2d .reno-box {
    width: 64%;
    max-width: 310px;
    margin: 0 auto 3em;
  }

  /* 各 col-12 をフレックスにして中央寄せ、幅100％ */
  #block-2d .reno-box .row .col-12 {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin: 0 auto 4em;
    padding: 0;
    box-sizing: border-box;
  }

  /* Before／After 画像だけを幅いっぱいに（矢印は除外） */
  #block-2d .reno-box .row .col-12 img:not(.arrow) {
    display: block;
    width: 100%;
    max-width: 380px;
    height: auto;
  }

  /* 背景色帯をカラム幅いっぱいに */
  #block-2d .reno-box .bg-o,
  #block-2d .reno-box .bg-b {
    max-width: 340px;
    width: 100%;
  }

  /* 矢印はそのまま回転＆余白をキープ */
  #block-2d .reno-box img.arrow {
    display: inline-block;
    transform: rotate(90deg);
    transform-origin: center;
    margin-bottom: 2em;
  }
}

#block-3b {
  background-color: #eaf6fd;
  padding: 3em 0 5em 0;
}
#block-3b .inner {
  max-width: 1200px;
  width: 95%;
  margin: 0 auto;
}
#block-3b h4 {
  width: 70%;
  height: auto;
}
#block-3b .left-box {
  padding-left: 140px;
}
#block-3b .right-box {
  padding-right: 60px;
}

#block-3c {
  width: 97%;
  margin: 0 auto;
  background-color: #fff;
  padding: 0 0 5em 0;
}

#block-4c {
  background-color: #eaf6fd;
  padding: 0 0 3em 0;
}

/* 対応エリア */
#areamap {
  margin: 3em 0 !important;
}
#areamap .container {
  width: 90%;
  margin: 0 auto;
  padding: 0 0 0 0;
}
#areamap .row .col-12 {
  text-align: center;
}
#areamap .fsb {
  margin: 2em 0 1em 0;
  font-weight: 600;
  font-size: clamp(20px, 1.75vw, 32px);
  line-height: 1.5em;
  text-align: left;
}
#areamap .fss {
  font-weight: 400;
  font-size: clamp(12px, 1.5vw, 18px);
  line-height: 2em;
  text-align: left;
}

@media screen and (max-width: 768px) {
  #areamap .container {
    width: 100%;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  #areamap .row {
    width: 100%;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  #areamap .row .col-md-4,
  #areamap .row .col-md-8,
  #areamap .row .col-12,
  #areamap .container {
    width: 100%;
    padding-right: 0 !important;
    padding-left: 0 !important;
  }
  #areamap .fsb {
    width: 80%;
    font-size: clamp(26px, 1.75vw, 30px);
    margin: 1.5em auto 0 auto;
  }
  #areamap .fss {
    width: 80%;
    margin: 1.5em auto 0 auto;
  }
  #areamap .map,
  #areamap .map img {
    width: 100%;
    padding-right: 0 !important;
    padding-left: 0 !important;
  }
}

#block-4b {
  max-width: 1200px;
  width: 95%;
  margin: 0 auto;
  background-color: #fff;
  padding-bottom: 2em;
}

.img-hover {
  position: relative;
  display: inline-block;
}

.img-hover img {
  display: block;
  width: 100%; /* 親要素に合わせる（両方同じサイズ） */
  height: auto; /* 比率を保持 */
}

.img-hovered {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.3s ease; /* ← なめらかに */
}

.img-hover a:hover .img-hovered {
  opacity: 1; /* ホバー時だけ上の画像が表示 */
}

@media (max-width: 768px) {
  .img-wrapper {
    display: flex;
    justify-content: center;
    flex-direction: column; /* 画像が縦に並ぶように */
    align-items: center; /* 左右中央揃え */
  }
  .leak-img-wrap {
    width: 95%;
  }


  .spsize {
    width: 80%;
    height: auto;
  }

  /* ホバー用画像は常に非表示 */
  .img-hovered {
    display: none !important;
    opacity: 0 !important;
  }

  /* デフォルト画像は常に表示 */
  .img-hover img.img-default {
    display: block !important;
    opacity: 1 !important;
  }

  /* ホバー時も変化しないように上書き */
  .img-hover a:hover .img-hovered {
    display: none !important;
    opacity: 0 !important;
  }
}

@media screen and (min-width: 768px) {
  #block-1 {
    width: 95%;
    margin-right: auto;
    margin-left: auto;
    flex-direction: row; /* テキスト左・画像右 */
    align-items: stretch; /* 高さ揃え */
    gap: 85px; /* アイテム間の隙間 = 1400 − (600+715) */
  }
  #block-1 > .left-box {
    flex: 600 1 0; /* 左側比率600 */
    width: auto; /* モバイル時の幅指定を解除 */
  }
  #block-1 > .right-box {
    flex: 715 1 0; /* 右側比率715 */
    width: auto;
  }
  #block-1 > .right-box img {
    width: 100%;
    height: auto;
    display: block;
  }
  #block-2 .out-box {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 0 8em 0;
    background-image: url(https://www.kyodosetsubi.jp/sys/wp-content/themes/kyodo/assets/img/services/service-logo-bg.png);
    background-position: left bottom;
    background-repeat: no-repeat;
  }
  #block-2 .out-box .inner {
    width: 100%;
    max-width: 1200px;
    margin: 3em auto 0 auto;
    padding: 0;
  }
  #block-2 .inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: 0;
  }
  #block-2 .inner .item {
    padding: 5px 50px;
    box-sizing: border-box;
  }
  #block-2 .inner .item img {
    width: 100%;
    height: auto;
    display: block;
  }
  #block-2 .inner .item figcaption {
    text-align: right;
  }
}

/* 事業内容TOP 全体レイアウト */
#block-2 .out-box .inner2 {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 5rem 0 8.5rem 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  justify-items: stretch;
}

/* 事業内容TOP job-item 共通 */
#block-2 .out-box .inner2 > div[class^="job-item"] {
  position: relative;
  width: 100%;
  max-width: 680px;
  aspect-ratio: 680 / 234; /* 縦横比維持 */
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

/* job-item 内のリンクを全体に広げる */
#block-2 .out-box .inner2 > div[class^="job-item"] > a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative; /* 子要素の基準に */
  color: inherit;
  text-decoration: none;
}

/* 事業内容TOP 単色透過板 */
#block-2 .out-box .inner2 > div[class^="job-item"] > a::before {
  content: "";
  display: block;
  position: absolute;
  top: 0;
  width: 65.6%;
  height: 100%;
  z-index: 0;
  transition: opacity 0.3s ease;
}
.job-item1 > a::before,
.job-item3 > a::before,
.job-item5 > a::before {
  right: 0;
}
.job-item2 > a::before,
.job-item4 > a::before,
.job-item6 > a::before {
  left: 0;
}

/* 事業内容TOP テキストBOX */
.job-item1 .text-box,
.job-item2 .text-box,
.job-item3 .text-box,
.job-item4 .text-box,
.job-item5 .text-box,
.job-item6 .text-box {
  position: absolute;
  top: 0;
  height: 100%;
  width: 65.6%;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 1;
  color: #fff;
  text-align: center;
  transition: transform 0.3s ease;
}
.job-item1 .text-box,
.job-item3 .text-box,
.job-item5 .text-box {
  right: 0;
}
.job-item2 .text-box,
.job-item4 .text-box,
.job-item6 .text-box {
  left: 0;
}

/* 事業内容TOP テキスト調整 */
.text-box h3 {
  margin: 2rem 0 0 0;
  font-size: clamp(18px, 1.5vw, 25px);
  font-weight: 600;
}
.text-box .sub {
  margin: 0 0 1rem 0;
  font-size: clamp(12px, 1.5vw, 14px);
}
.text-box .more {
  font-size: clamp(10px, 1.5vw, 12px);
}

/* 事業内容TOP PCレイアウト */
@media (min-width: 768px) {
  #block-2 .out-box .inner2 {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 30px;
    justify-items: center;
  }
  .text-box h3 {
    margin: 15% 0 0 0;
  }
  .text-box .sub {
    margin-bottom: 5%;
  }
}

/* 事業内容TOP ホバー効果 */
#block-2 .out-box .inner2 > div[class^="job-item"] > a:hover::before {
  opacity: 0.85; /* 板を少し濃くする */
}
#block-2 .out-box .inner2 > div[class^="job-item"] > a:hover .text-box {
  transform: scale(1.03); /* テキストを軽く拡大 */
}

/* 事業内容TOP 色だけ個別指定（透過70%） */
.job-item1 > a::before {
  background-color: rgba(0, 64, 152, 0.7);
}
.job-item2 > a::before {
  background-color: rgba(0, 99, 61, 0.7);
}
.job-item3 > a::before {
  background-color: rgba(148, 37, 42, 0.7);
}
.job-item4 > a::before {
  background-color: rgba(95, 55, 106, 0.7);
}
.job-item5 > a::before {
  background-color: rgba(0, 105, 135, 0.7);
}
.job-item6 > a::before {
  background-color: rgba(126, 107, 46, 0.7);
}

/* 事業内容TOP 背景画像 個別指定 */
.job-item1 {
  background-image: url(https://www.kyodosetsubi.jp/sys/wp-content/themes/kyodo/assets/img/services/00/service1.jpg);
}
.job-item2 {
  background-image: url(https://www.kyodosetsubi.jp/sys/wp-content/themes/kyodo/assets/img/services/00/service2.jpg);
}
.job-item3 {
  background-image: url(https://www.kyodosetsubi.jp/sys/wp-content/themes/kyodo/assets/img/services/00/service3.jpg);
}
.job-item4 {
  background-image: url(https://www.kyodosetsubi.jp/sys/wp-content/themes/kyodo/assets/img/services/00/service4.jpg);
}
.job-item5 {
  background-image: url(https://www.kyodosetsubi.jp/sys/wp-content/themes/kyodo/assets/img/services/00/service5.jpg);
}
.job-item6 {
  background-image: url(https://www.kyodosetsubi.jp/sys/wp-content/themes/kyodo/assets/img/services/00/service6.jpg);
}

@media screen and (max-width: 768px) {
  #st-service-top,
  #st-service01,
  #st-service02,
  #st-service03,
  #st-service04,
  #st-service05,
  #st-service05b,
  #st-service06 {
    margin-top: 75px;
    aspect-ratio: 768/792;
    position: relative;
    width: 100%;
    height: auto;
    background-size: auto 25%;
    background-position: calc(50% + 50px) 50%;
    background-repeat: no-repeat;
  }
  #st-service-top .title-en,
  #st-service01 .title-en,
  #st-service02 .title-en,
  #st-service03 .title-en,
  #st-service04 .title-en,
  #st-service05 .title-en,
  #st-service05b .title-en,
  #st-service06 .title-en {
    font-size: 21vw;
  }
  #st-service-top h2,
  #st-service01 h2,
  #st-service02 h2,
  #st-service03 h2,
  #st-service04 h2,
  #st-service05 h2,
  #st-service05b h2,
  #st-service06 h2 {
    margin: 0;
    padding: 0;
  }
  #block-1 {
    width: 95%;
    margin: 0 auto;
    padding: 3em 0;
  }
  #block-1 > .left-box {
    width: 80%;
  }
  #block-1 > .right-box img {
    width: 100%;
    height: auto;
    display: block;
  }

  #block-1b {
    text-align: center;
    max-width: 1005px;
    width: 95%;
    margin: 2em auto 6em auto;
    line-height: 2em;
    display: flex;
    flex-direction: column-reverse; /* モバイル：画像上・テキスト下 */
    align-items: center; /* モバイル：左右中央配置 */
  }

  #block-2 {
    width: 100%;
    margin: 0;
    padding: 4em 0 0 0;
  }
  #block-2.container-fluid {
    padding-left: 0;
    padding-right: 0;
  }
  #block-2 .out-box {
    width: 100%;
    margin: 0;
    padding-left: 0;
    padding-right: 0;
    padding-bottom: 4em;
    background-image: url(https://www.kyodosetsubi.jp/sys/wp-content/themes/kyodo/assets/img/services/service-logo-bg.png);
    background-size: 80% auto;
    background-position: 10px bottom;
    background-repeat: no-repeat;
  }
  #block-2 .inner {
    width: 95%;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start; /* ← 左詰め */
    margin: 0 auto;
    padding: 0; /* ← 画面端⇔画像までの隙間10px */
    box-sizing: border-box;
  }
  #block-2 .inner .item {
    flex: 0 0 85%; /* ← 絶対に 50% 幅、伸び縮みしない */
    max-width: 100%;
    margin: 0 auto;
  }
  #block-2 .inner .item img {
    display: block;
    margin-bottom: 0.5em;
    width: 100%;
    height: auto;
  }
  #block-2 .inner .item figcaption {
    text-align: right;
    margin-bottom: 1.5em;
  }
  #block-2b {
    width: 90%;
    margin: 0 auto;
    background-color: #fff;
    padding: 0;
  }
  #block-2c .container {
    width: 90%;
    margin: 0 auto;
  }
  #block-3b {
    background-color: #eaf6fd;
    padding: 1.5em 5% 3em 5%;
  }
  #block-3b .inner {
    width: 100%;
    margin: 0 auto;
  }
  #block-3b .left-box {
    width: 87%;
    margin: 0 auto;
    padding-left: 0;
    padding-right: 0;
  }
  #block-3b .right-box {
    width: 100%;
    margin: 0 auto;
    text-align: center;
    padding-left: 0;
    padding-right: 0;
  }
  #block-3c {
    width: 90%;
    margin: 0 auto;
    padding: 0 0 3em 0;
  }

  #block-4b {
    width: 87%;
    margin: 0 auto;
    background-color: #fff;
    padding: 0;
  }
  #block-4c .container {
    width: 90%;
    margin: 0 auto;
    padding: 0 0 0 0;
  }
}

#block-3 {
  background-color: #004098;
}
#block-3-2 {
  background-color: #00633d;
}
#block-3-3 {
  background-color: #94252a;
}
#block-3-4 {
  background-color: #5f376a;
}
#block-3-5 {
  background-color: #006987;
}
#block-3-6 {
  background-color: #7e6b2e;
}

#block-3,
#block-3-2,
#block-3-3,
#block-3-4,
#block-3-5,
#block-3-6 {
  padding: 0 0 8em 0;
  background-image: url(https://www.kyodosetsubi.jp/sys/wp-content/themes/kyodo/assets/img/services/block-3-bg.png);
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: 100% auto;
  margin-bottom: 4em;
}
#block-3 .inner-box,
#block-3-2 .inner-box,
#block-3-3 .inner-box,
#block-3-4 .inner-box,
#block-3-5 .inner-box,
#block-3-6 .inner-box {
  display: flex;
  gap: 20px; /* 円同士の間隔 */
  justify-content: space-between;
  flex-wrap: wrap; /* 狭い画面では折り返し */
}
#block-3 .out-box,
#block-3-2 .out-box,
#block-3-3 .out-box,
#block-3-4 .out-box,
#block-3-5 .out-box,
#block-3-6 .out-box {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0;
}
#block-3 h2,
#block-3-2 h2,
#block-3-3 h2,
#block-3-4 h2,
#block-3-5 h2,
#block-3-6 h2 {
  text-align: left;
  width: 100%;
  color: #ffffffbb;
  font-weight: 900;
  line-height: 1em;
  font-size: clamp(135px, 11vw, 145px);
  padding: 30px 0 0 0px;
  display: block;
}
#block-3 .sub-txt,
#block-3-2 .sub-txt,
#block-3-3 .sub-txt,
#block-3-4 .sub-txt,
#block-3-5 .sub-txt,
#block-3-6 .sub-txt {
  width: 100%;
  color: #fff;
  padding: 0;
  margin: 0 auto;
  font-weight: 800;
  font-size: clamp(20px, 2vw, 38px);
  text-align: center;
  white-space: nowrap; /* 改行禁止 */
}
.anchor-offset {
  scroll-margin-top: 75px;
}
/* circle-con：白背景の正円・中身はみ出さない */
#block-3 .circle-con,
#block-3-2 .circle-con,
#block-3-3 .circle-con,
#block-3-4 .circle-con,
#block-3-5 .circle-con,
#block-3-6 .circle-con {
  background-color: #fff;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  flex: 1 1 calc((100% - 40px) / 3);
  max-width: calc((100% - 40px) / 3);
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(25px) scale(0.85);
  transform-origin: center center;
}

/* タイポグラフィ */
#block-3 .circle-con h3 {
  color: #004098;
}
#block-3-2 .circle-con h3 {
  color: #00633d;
}
#block-3-3 .circle-con h3 {
  color: #94252a;
}
#block-3-4 .circle-con h3 {
  color: #5f376a;
}
#block-3-5 .circle-con h3 {
  color: #006987;
}
#block-3-6 .circle-con h3 {
  color: #7e6b2e;
}

#block-3 .circle-con h3,
#block-3-2 .circle-con h3,
#block-3-3 .circle-con h3,
#block-3-4 .circle-con h3,
#block-3-5 .circle-con h3,
#block-3-6 .circle-con h3 {
  margin: 0;
  font-size: clamp(16px, 2.5vw, 40px);
  font-weight: 800;
  white-space: nowrap; /* 改行禁止 */
}
#block-3 .circle-con .sub-txt,
#block-3-2 .circle-con .sub-txt,
#block-3-3 .circle-con .sub-txt,
#block-3-4 .circle-con .sub-txt,
#block-3-5 .circle-con .sub-txt,
#block-3-6 .circle-con .sub-txt {
  color: #d3d3d4;
  margin: -0.25em 0 0.5em 0;
  font-size: clamp(16px, 2.5vw, 36px);
  font-weight: 800;
  white-space: nowrap; /* 改行禁止 */
}

#block-3 .circle-con .c-text {
  color: #004098;
}
#block-3-2 .circle-con .c-text {
  color: #00633d;
}
#block-3-3 .circle-con .c-text {
  color: #94252a;
}
#block-3-4 .circle-con .c-text {
  color: #5f376a;
}
#block-3-5 .circle-con .c-text {
  color: #006987;
}
#block-3-6 .circle-con .c-text {
  color: #7e6b2e;
}

#block-3 .circle-con .c-text,
#block-3-2 .circle-con .c-text,
#block-3-3 .circle-con .c-text,
#block-3-4 .circle-con .c-text,
#block-3-5 .circle-con .c-text,
#block-3-6 .circle-con .c-text {
  margin: 0;
  padding: 0 2.5em;
  text-align: center;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.4;
  word-break: break-word; /* 要素幅に合わせて改行 */
}

/* レスポンシブ：768px以下は縦積み */
@media (max-width: 768px) {
  #block-3,
  #block-3-2,
  #block-3-3,
  #block-3-4,
  #block-3-5,
  #block-3-6 {
    background-size: auto 7%;
    margin-bottom: 4em;
  }
  #block-3 h2,
  #block-3-2 h2,
  #block-3-3 h2,
  #block-3-4 h2,
  #block-3-5 h2,
  #block-3-6 h2 {
    font-size: clamp(40px, 11vw, 70px);
    padding: 20px 0 0 10px;
    display: block;
  }
  #block-3 .inner-box,
  #block-3 .inner-box2,
  #block-3-2 .inner-box,
  #block-3-2 .inner-box2,
  #block-3-3 .inner-box,
  #block-3-3 .inner-box2,
  #block-3-4 .inner-box,
  #block-3-4 .inner-box2,
  #block-3-5 .inner-box,
  #block-3-5 .inner-box2,
  #block-3-6 .inner-box,
  #block-3-6 .inner-box2 {
    flex-direction: column;
    gap: 0px; /* 縦配置時のアイテム間隔を半分に */
  }
  #block-3 .circle-con,
  #block-3-2 .circle-con,
  #block-3-3 .circle-con,
  #block-3-4 .circle-con,
  #block-3-5 .circle-con,
  #block-3-6 .circle-con {
    flex: none;
    width: 90%;
    margin: 0 auto;
    max-width: none;
    /* margin-bottom をクリアして gap に一本化 */
    margin-bottom: 0;
  }

  #block-3 .circle-con h3 {
    color: #004098;
  }
  #block-3-2 .circle-con h3 {
    color: #00633d;
  }
  #block-3-3 .circle-con h3 {
    color: #94252a;
  }
  #block-3-4 .circle-con h3 {
    color: #5f376a;
  }
  #block-3-5 .circle-con h3 {
    color: #006987;
  }
  #block-3-6 .circle-con h3 {
    color: #7e6b2e;
  }

  #block-3 .circle-con h3,
  #block-3-2 .circle-con h3,
  #block-3-3 .circle-con h3,
  #block-3-4 .circle-con h3,
  #block-3-5 .circle-con h3,
  #block-3-6 .circle-con h3 {
    margin: 0;
    font-size: clamp(32px, 2.5vw, 40px);
    font-weight: 800;
    white-space: nowrap; /* 改行禁止 */
  }
  #block-3 .circle-con .sub-txt,
  #block-3-2 .circle-con .sub-txt,
  #block-3-3 .circle-con .sub-txt,
  #block-3-4 .circle-con .sub-txt,
  #block-3-5 .circle-con .sub-txt,
  #block-3-6 .circle-con .sub-txt {
    font-size: 32px;
    font-weight: bold;
    color: #a9a9aa;
  }
}

/* アニメーション定義：25px下→元位置＋フェードイン */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(25px) scale(0.85);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(0.85);
  }
}

/* in-view トリガー */
#block-3 .circle-con.in-view:nth-of-type(1),
#block-3-2 .circle-con.in-view:nth-of-type(1),
#block-3-3 .circle-con.in-view:nth-of-type(1),
#block-3-4 .circle-con.in-view:nth-of-type(1),
#block-3-5 .circle-con.in-view:nth-of-type(1),
#block-3-6 .circle-con.in-view:nth-of-type(1) {
  animation: fadeUp 0.8s ease-out 0s forwards;
}
#block-3 .circle-con.in-view:nth-of-type(2),
#block-3-2 .circle-con.in-view:nth-of-type(2),
#block-3-3 .circle-con.in-view:nth-of-type(2),
#block-3-4 .circle-con.in-view:nth-of-type(2),
#block-3-5 .circle-con.in-view:nth-of-type(2),
#block-3-6 .circle-con.in-view:nth-of-type(2) {
  animation: fadeUp 0.8s ease-out 0.3s forwards;
}
#block-3 .circle-con.in-view:nth-of-type(3),
#block-3-2 .circle-con.in-view:nth-of-type(3),
#block-3-3 .circle-con.in-view:nth-of-type(3),
#block-3-4 .circle-con.in-view:nth-of-type(3),
#block-3-5 .circle-con.in-view:nth-of-type(3),
#block-3-6 .circle-con.in-view:nth-of-type(3) {
  animation: fadeUp 0.8s ease-out 0.6s forwards;
}

#st-service-top h2,
#st-service01 h2,
#st-service02 h2,
#st-service03 h2,
#st-service04 h2,
#st-service05 h2,
#st-service05b h2,
#st-service06 h2 {
  padding: 0 0 0 25px;
  font-size: clamp(20px, 2.5vw, 35px);
  color: rgb(255, 255, 255);
  font-weight: bold;
  margin-top: 0px;
  z-index: 10000;
}

.col-box1 {
  margin-bottom: 40px;
}
.row.col-box1 {
  display: flex;
  align-items: stretch;
}

.col-box1 .col-md-6:first-child {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.col-box1 .col-md-6:first-child img {
  width: 98%;
  height: auto;
  margin-left: 0;
  margin-right: auto;
}

.col-box1 .col-md-6:last-child img {
  width: 100%;
  height: auto;
  margin-left: auto;
  margin-right: 0;
  object-fit: cover;
}

@media screen and (min-width: 768px) {
  #st-service-top,
  #st-service01,
  #st-service02,
  #st-service03,
  #st-service04,
  #st-service05,
  #st-service05b,
  #st-service06 {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 3840 / 1130;
    min-height: 100px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-bottom: 150px;
  }
  #st-service05b {
    margin-bottom: 0px;
    padding-bottom: 0px;
  }

  /* 事業内容TOP */
  #st-service-top {
    background-image: url(https://www.kyodosetsubi.jp/sys/wp-content/themes/kyodo/assets/img/services/00/s00-heading-bg.jpg);
  }
  /* 給排水衛星設備工事 */
  #st-service01 {
    background-image: url(https://www.kyodosetsubi.jp/sys/wp-content/themes/kyodo/assets/img/services/01/s01-heading-bg.jpg);
  }
  /* 空気調和設備工事 */
  #st-service02 {
    background-image: url(https://www.kyodosetsubi.jp/sys/wp-content/themes/kyodo/assets/img/services/02/s02-heading-bg.jpg);
  }
  /* 生産設備工事 */
  #st-service03 {
    background-image: url(https://www.kyodosetsubi.jp/sys/wp-content/themes/kyodo/assets/img/services/03/s03-heading-bg.jpg);
  }
  /* 土木工事 */
  #st-service04 {
    background-image: url(https://www.kyodosetsubi.jp/sys/wp-content/themes/kyodo/assets/img/services/04/s04-heading-bg.jpg);
  }
  /* 漏水調査 */
  #st-service05 {
    background-image: url(https://www.kyodosetsubi.jp/sys/wp-content/themes/kyodo/assets/img/services/05/s05-heading-bg.jpg);
  }
  /* 漏水調査料金 */
  #st-service05b {
    background-image: url(https://www.kyodosetsubi.jp/sys/wp-content/themes/kyodo/assets/img/services/05/s05b-heading-bg.jpg);
  }
  /* リノベーション */
  #st-service06 {
    background-image: url(https://www.kyodosetsubi.jp/sys/wp-content/themes/kyodo/assets/img/services/06/s06-heading-bg.jpg);
  }
}

@media screen and (max-width: 768px) {
  #st-service-top,
  #st-service01,
  #st-service02,
  #st-service03,
  #st-service04,
  #st-service05,
  #st-service05b,
  #st-service06 {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 768 / 792;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-bottom: 150px;
  }
  #st-service05b {
    margin-bottom: 0px;
    padding-bottom: 0px;
  }

  /* 事業内容TOP */
  #st-service-top {
    background-image: url(https://www.kyodosetsubi.jp/sys/wp-content/themes/kyodo/assets/img/services/00/sp00-heading-bg.jpg);
  }
  /* 給排水衛星設備工事 */
  #st-service01 {
    background-image: url(https://www.kyodosetsubi.jp/sys/wp-content/themes/kyodo/assets/img/services/01/sp01-heading-bg.jpg);
  }
  /* 空気調和設備工事 */
  #st-service02 {
    background-image: url(https://www.kyodosetsubi.jp/sys/wp-content/themes/kyodo/assets/img/services/02/sp02-heading-bg.jpg);
  }
  /* 生産設備工事 */
  #st-service03 {
    background-image: url(https://www.kyodosetsubi.jp/sys/wp-content/themes/kyodo/assets/img/services/03/sp03-heading-bg.jpg);
  }
  /* 土木工事 */
  #st-service04 {
    background-image: url(https://www.kyodosetsubi.jp/sys/wp-content/themes/kyodo/assets/img/services/04/sp04-heading-bg.jpg);
  }
  /* 漏水調査 */
  #st-service05 {
    background-image: url(https://www.kyodosetsubi.jp/sys/wp-content/themes/kyodo/assets/img/services/05/sp05-heading-bg.jpg);
  }
  /* 漏水調査料金 */
  #st-service05b {
    background-image: url(https://www.kyodosetsubi.jp/sys/wp-content/themes/kyodo/assets/img/services/05/sp05b-heading-bg.jpg);
  }
  /* リノベーション */
  #st-service06 {
    background-image: url(https://www.kyodosetsubi.jp/sys/wp-content/themes/kyodo/assets/img/services/06/sp06-heading-bg.jpg);
  }
}

.ml-c {
  text-align: center;
}
.ml-cu {
  margin-top: 0px;
  padding-top: 0px;
  text-align: center;
}
.ml-c img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5em auto;
}
.t-lgb h4 {
  font-size: clamp(32px, 5vw, 50px);
  color: #005bac;
  margin: 1em 0 0.25em 0;
  font-weight: bold;
}
.col-md-3.d-flex {
  display: flex;
  align-items: center;
  justify-content: center;
}
.lst {
  margin-top: -1em;
  text-indent: -1em;
  padding-left: 1em;
}
#st-service05 .col-md-3 img {
  max-width: 100%;
  height: auto;
}
.list1,
.list2,
.list3 {
  list-style: none;
  padding: 0;
  margin: 3em 0 2.5em 0;
}
.list1 li,
.list2 li,
.list3 li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 5px;
  line-height: 1.6;
}
.list1 li::before {
  content: "●";
  position: absolute;
  left: 0;
  top: 0.3em;
  transform: translateY(0);
  color: #172a88;
  font-size: 20px;
  line-height: 1;
}
.list2 li::before {
  content: "●";
  position: absolute;
  left: 0;
  top: 0.3em;
  transform: translateY(0);
  color: #009944;
  font-size: 20px;
  line-height: 1;
}
.list3 li::before {
  content: "●";
  position: absolute;
  left: 0;
  top: 0.3em;
  transform: translateY(0);
  color: #000;
  font-size: 20px;
  line-height: 1;
}
.tbc {
  font-size: clamp(20px, 5vw, 24px);
  background-color: #036eb8;
  color: #fff;
  padding: 0.5em 2em;
  border-radius: 9999px;
  display: inline-block;
  font-weight: bold;
}
.variable-box {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 0.5em;
  text-align: center;
}
.variable-box img {
  margin-bottom: 2.5em;
}

/* 漏水調査費用ボタンロールオーバー盛業 */
/* 表示領域（箱）を確定：ここが最重要 */
.leak-img-wrap a {
  position: relative;
  display: block;
  overflow: hidden;

  /* これで「数倍化」対策：画像の実寸で暴れない */
  width: 100%;

  /* 行ボックス由来のズレ対策 */
  line-height: 0;
}

/* 通常画像（ky_picture）が出す picture/img を箱に合わせる */
.leak-img-wrap picture {
  display: block;
  width: 100%;
}

.leak-img-wrap picture img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  vertical-align: top;
}

/* hover画像は箱(a)に完全追従させる */
.leak-img-wrap .img-hovered {
  position: absolute;
  inset: 0;

  /* ★ここで「箱に対して100%」を強制 */
  width: 100%;
  height: 100%;
  max-width: none;

  /* ★拡大してはみ出すのを防ぎ、箱にフィット */
  object-fit: contain;

  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.leak-img-wrap a:hover .img-hovered {
  opacity: 1;
}

.leak-img-wrap .img-hovered{
  object-fit: contain;
  object-position: center top; /* ★これが本命 */
}





/* 漏水調査費用 */
.price-box h4 {
  text-align: center;
}
.price-box h4 img {
  margin: 3em 0;
}
@media (max-width: 768px) {
  .variable-item1 {
    width: 35.5% !important;
    height: auto !important; /* アスペクト比を維持 */
  }
  .variable-item2 {
    width: 35% !important;
    height: auto !important; /* アスペクト比を維持 */
  }
  .variable-item3 {
    width: 60% !important;
    height: auto !important; /* アスペクト比を維持 */
  }
}

.price-t {
  width: 100%;
}
.price-t tr {
  border-bottom: 1px #3e3e3e solid;
}
.price-t tr th,
.price-t tr td {
  font-size: clamp(16px, 3vw, 36px);
  font-weight: 500;
  padding: 1em 1em;
}
.price-t tr td {
  text-align: right;
}
.fsb {
  font-size: clamp(16px, 5vw, 28px);
}
.fsl {
  font-size: clamp(20px, 5vw, 36px);
}
.line {
  border: none;
  border-bottom: 2px #3e3e3e solid;
  margin: 1em 0;
}
.cat-box {
  width: 100%;
  margin: 1em auto 2em auto;
  padding: 2em;
  text-align: center;
  border: 3px #00b9ef solid;
  border-radius: 15px 15px;
}

/* リノベーション工事 */
#block-1 .inner {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0;
  text-align: center;
}
/* Bootstrapのrowとcolの影響をリセット */
#block-1 .row,
#block-1 .row .col-md-6,
#block-1 .row .col-12 {
  margin: 0;
  padding: 0;
}

/* 初期状態（モバイルファースト） */
#block-1 .l-box img,
#block-1 .r-box img {
  width: 90%;
  height: auto;
  display: block;
  margin: 1em auto;
}

/* 768px以上のとき */
@media screen and (min-width: 768px) {
  #block-1 .l-box img {
    width: 100%;
    max-width: 668px;
    height: auto;
    margin-left: 0; /* 左寄せ */
    margin-right: 1.5rem;
  }

  #block-1 .r-box img {
    width: 100%;
    max-width: 668px;
    height: auto;
    margin-left: 1.5rem; /* 右寄せ */
    margin-right: 0;
  }
}

.rn-box1 {
  border: #26b7bc 8px solid;
  border-radius: 15px 15px;
  padding: 20px;
  text-align: center;
}
.rn-box1 .row:last-child {
  padding-top: 1em;
}
.rn-box2 {
  border: none;
  text-align: center;
}
.rn-box1 img,
.rn-box2 img {
  padding: 10px;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
}
.rn-box2 figure {
  margin: 0;
  padding: 0;
  text-align: center; /* キャプションを中央揃え */
}

.rn-box2 figcaption {
  font-size: clamp(14px, 1.5vw, 18px);
  color: #666;
  margin-top: 5px;
}

/*
------------------------------------------------------------ 採用情報
*/

/* rec-slider-section：背景スライダーの親セクション */
.rec-slider-section {
  position: relative;
  overflow: hidden;
}

/* rec-overlay：スライダー上に重ねるオーバーレイ領域 */
.rec-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-start; /* ここをcenterからflex-startに変更 */
  justify-content: center;
  z-index: 2;
  pointer-events: none;
}

.rec-overlay h2 {
  color: #fff; /* テキスト色はお好みで調整 */
  font-size: 2.5rem; /* 必要に応じてサイズ調整 */
  margin: 0;
}

#rec-top {
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 2;
  min-height: 100px;
  /*  background-image: url(https://www.kyodosetsubi.jp/sys/wp-content/themes/kyodo/assets/img/recruit/rec-top-heading-bg.jpg");*/
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 1;
  padding-bottom: 150px;
}
#rec-top .container {
  max-width: 1200px;
  width: 100%;
  margin: 0;
  padding: 0;
  position: relative;
}

#rec-top .container h2 {
  padding: 25px 0 0 35px;
  text-align: left;
  font-size: clamp(20px, 2.5vw, 35px);
  color: rgb(255, 255, 255);
  font-weight: bold;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.7);
}
#rec-top .rec-catch {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -40%);
  padding: 1em;
  color: #000;
  background-color: rgba(255, 255, 255, 0.9);
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
  font-weight: bold;
  font-size: clamp(14px, 2.5vw, 42px); /* ✅ 画面幅に応じて可変 */
  z-index: 10;
}
.list4 {
  list-style: none;
  padding: 0;
  margin: 3em 0 2.5em 0;
}
.list4 li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 5px;
  line-height: 1.6;
}
.list4 li::before {
  content: "●";
  position: absolute;
  left: 0;
  top: 0.3em;
  transform: translateY(0);
  color: #005bac;
  font-size: 20px;
  line-height: 1;
}

/*------------------------------------------*/
/* 共同設備の仕事
/*------------------------------------------*/

#job-box-b {
  background-color: #bbdcf4;
}
#job-box-w {
  background-color: #fff;
}
#job-box-b2 {
  background-color: #84bae5;
}

/* box --------------------------------*/
.contents.job .box + .box {
  margin-top: 40px;
}

@media screen and (min-width: 768px), print {
  .contents.job .box {
    display: flex;
    align-items: center;
  }

  .contents.job .box.reverse {
    flex-direction: row-reverse;
  }

  .contents.job .box + .box {
    margin-top: 60px;
  }
}

/* 画像 --------------------------------*/
.contents.job .box figure img {
  width: 100%;
}

.contents.job .box figure {
  width: 100px;
}

@media screen and (max-width: 767px) {
  .contents.job .box figure {
    margin-bottom: 10px;
  }
}

@media screen and (min-width: 768px), print {
  .contents.job .box figure {
    flex-shrink: 0;
    width: 160px;
    margin-right: 110px;
  }

  .contents.job .box.reverse figure {
    margin-right: 0;
    margin-left: 110px;
  }
}

/* cont --------------------------------*/
.contents.job .box .cont {
  position: relative;
  text-align: left;
  background: white;
  border-radius: 10px;
  width: 100%;
  padding: 20px;
}
.contents.job .box .cont-b {
  position: relative;
  text-align: left;
  background: white;
  border-radius: 10px;
  width: 100%;
  padding: 20px;
  border: 3px solid #005bac;
}

@media screen and (min-width: 768px), print {
  .contents.job .box .cont,
  .contents.job .box .cont-b {
    padding: 20px 40px;
  }
}

/* 吹き出し --------------------------------*/
.contents.job .box .cont::before {
  content: "";
  display: inline-block;
  background: url(https://www.kyodosetsubi.jp/sys/wp-content/themes/kyodo/assets/img/recruit/balloon_arrow.svg) no-repeat;
  background-size: 100%;
  aspect-ratio: 100/42;
  height: auto;
  position: absolute;
}
.contents.job .box .cont-b::before {
  content: "";
  display: inline-block;
  background: url(https://www.kyodosetsubi.jp/sys/wp-content/themes/kyodo/assets/img/recruit/balloon_arrow2.svg) no-repeat;
  background-size: 100%;
  aspect-ratio: 100/42;
  height: auto;
  position: absolute;
}

@media screen and (max-width: 767px) {
  .contents.job .box .cont-b::before {
    background: url(https://www.kyodosetsubi.jp/sys/wp-content/themes/kyodo/assets/img/recruit/balloon_arrow2t.svg) no-repeat;
  }
  .contents.job .box .cont::before,
  .contents.job .box .cont-b::before {
    width: 60px;
    top: -20px;
    left: 100px;
    transform: scaleY(-1) rotate(310deg);
  }
}

@media screen and (min-width: 768px), print {
  .contents.job .box .cont::before,
  .contents.job .box .cont-b::before {
    width: 100px;
    bottom: 40px;
    left: -100px;
  }

  .contents.job .box.reverse .cont::before,
  .contents.job .box.reverse .cont-b::before {
    left: auto;
    right: -100px;
    transform: scaleX(-1);
  }
}

/* 小見出し --------------------------------*/
#sub-page h3.heading {
  margin: 0.5em 0 0 0;
  color: #005bac;
  font-size: clamp(18px, 3vw, 30px);
  font-weight: bold;
  text-align: left;
}

@media screen and (min-width: 768px), print {
  #sub-page h3.heading {
    font-size: clamp(18px, 3vw, 30px);
  }
}

/* テキスト --------------------------------*/
.contents.job .box .cont .text,
.contents.job .box .cont-b .text {
  text-align: justify;
  text-justify: inter-ideograph;
  margin-top: 1em;
}

/* リンク --------------------------------*/
.contents.job .box .cont .btn a {
  display: inline-block;
  border-bottom: 1px solid #005bac;
  color: #005bac;
  font-weight: bold;
}

@media screen and (min-width: 834px), print {
  .contents.job .box .cont .btn a p {
    display: inline-block;
  }

  .contents.job .box .cont .btn a p + p {
    margin-left: 1em;
  }
}

/*------------------------------------------*/
/* 人材育成制度
/*------------------------------------------*/

/* box --------------------------------*/
.contents.training .box + .box {
  margin-top: 40px;
}

@media screen and (min-width: 768px), print {
  .contents.training .box {
    display: flex;
    align-items: center;
  }

  .contents.training .box.reverse {
    flex-direction: row-reverse;
  }

  .contents.training .box + .box {
    margin-top: 60px;
  }
}

/* 画像 --------------------------------*/
.contents.training .box figure img {
  width: 100%;
}

.contents.training .box figure {
  position: relative;
  width: calc(375px / 1.7);
  z-index: 10;
}

.contents.training .box.large figure {
  width: calc(570px / 1.7);
}

@media screen and (max-width: 767px) {
  .contents.training .box figure {
    max-width: 100%;
    margin: 0 auto;
    margin-bottom: 10px;
  }
}

@media screen and (min-width: 768px), print {
  .contents.training .box figure {
    flex-shrink: 0;
    width: calc(375px / 1.5);
    margin-right: 40px;
  }

  .contents.training .box.large figure {
    width: calc(570px / 1.5);
  }

  .contents.training .box.reverse figure {
    margin-right: 0;
    margin-left: 40px;
  }
}

/* cont --------------------------------*/
.contents.training .box .cont,
.contents.training .box .cont-b {
  text-align: left;
  background: white;
  border-radius: 10px;
  width: 100%;
  padding: 20px;
}
.contents.training .box .cont-b {
  border: 3px solid #005bac;
}

@media screen and (min-width: 768px), print {
  .contents.training .box .cont,
  .contents.training .box .cont-b {
    padding: 20px 40px;
  }
}

/* 小見出し --------------------------------*/
#sub-page h3.heading {
  margin: 0.5em 0 0 0;
  position: relative;
  color: #005bac;
  font-size: clamp(18px, 3vw, 30px);
  font-weight: bold;
  text-align: left;
  z-index: 5;
}

@media screen and (min-width: 768px), print {
  #sub-page h3.heading {
    font-size: clamp(18px, 3vw, 30px);
  }
}

/* 吹き出し --------------------------------*/
.contents.training .box .heading::before {
  content: "";
  display: inline-block;
  background: url(https://www.kyodosetsubi.jp/sys/wp-content/themes/kyodo/assets/img/recruit/dot-line.svg) no-repeat;
  background-size: 100%;
  aspect-ratio: 220/6;
  height: auto;
  position: absolute;
}

@media screen and (max-width: 767px) {
  .contents.training .box .heading::before {
    width: 100px;
    top: -30px;
    left: 50%;
    transform: translateX(-65%) rotate(-25deg);
  }
}

@media screen and (min-width: 768px), print {
  .contents.training .box .heading::before {
    width: 160px;
    top: 50px;
    left: -170px;
    transform: rotate(-25deg);
  }

  .contents.training .box.reverse .heading::before {
    left: auto;
    right: -140px;
    transform: rotate(25deg);
  }
}

/* テキスト --------------------------------*/
.contents.training .box .cont .text,
.contents.training .box .cont-b .text {
  text-align: justify;
  text-justify: inter-ideograph;
  margin-top: 1em;
}

.txt-sub {
  font-size: clamp(20px, 2.5vw, 35px);
  font-weight: bold;
  text-align: center;
  color: #005bac;
}

.tbc2 {
  font-size: clamp(20px, 5vw, 24px);
  background-color: #036eb8;
  color: #fff;
  width: 300px;
  padding: 0.5em 2em;
  border-radius: 9999px;
  display: inline-block;
  font-weight: bold;
  text-align: center;
}

.tbc3 {
  font-size: clamp(20px, 5vw, 24px);
  background-color: #036eb8;
  color: #fff;
  padding: 0.5em 2em;
  border-radius: 9999px;
  display: inline-block;
  font-weight: bold;
  text-align: center;
}
.tbc3 a {
  color: #fff;
  text-decoration: none;
}

.rt01 {
  text-align: center;
}
.rt01 img {
  width: 100%;
  height: auto;
  max-width: 150px;
}
.rec-st {
  text-align: center;
}
.rec-st img {
  max-width: 650px;
  height: auto;
}
.rec-st-box,
.rec-st-box2 {
  border: 4px solid #005bac;
  padding: 2em 1.5em 0 1.5em;
  border-radius: 17px 17px;
  margin: 1.5em auto 1.5em auto;
  max-width: 880px;
  text-align: center;
}
.rec-st-box2 {
  text-align: left;
}
.rec-st img {
  width: 100%;
  height: auto;
}

.rec-st-box h5,
.rec-st-box2 h5 {
  font-size: clamp(18px, 5vw, 30px);
  color: #005bac;
  font-weight: bold;
  margin-bottom: 1em;
  text-align: center;
}
.outer-box {
  text-align: center;
}
.outer-box ul {
  display: inline-block;
  text-align: left;
  list-style: none;
}
.bpr {
  display: block;
}
@media screen and (max-width: 825px), print {
  .bpr {
    display: inline;
  }
}

.h-title {
  font-size: clamp(18px, 5vw, 24px);
  color: #005bac;
  font-weight: bold;
  margin-bottom: 1em;
  text-align: center;
}

#job-box-b2 h3 {
  margin-top: -3em;
}
#job-box-b2 h3 img {
  margin-left: 1em;
}

.w-box {
  border: 4px solid #005bac;
  background-color: #fff;
  color: #005bac;
  font-weight: bold;
  padding: 1em;
  border-radius: 17px 17px;
  text-align: center;
  margin: 1em;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

/*------------------------------------------*/
/* 仲間を知る
/*------------------------------------------*/
.fellow-box {
  margin: 4em 0;
}
#fellow-top {
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 2;
  min-height: 100px;
  background-image: url(https://www.kyodosetsubi.jp/sys/wp-content/themes/kyodo/assets/img/recruit/fellow/fellow-top-heading-bg.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin: 0;
  padding: 0;
  position: relative;
  z-index: 1;
  padding-bottom: 150px;
}

#fellow-top .container {
  max-width: 1200px;
  width: 100%;
  margin: 0;
  padding: 0;
  position: relative;
}

#fellow-top .container h2 {
  padding: 25px 0 0 35px;
  text-align: left;
  font-size: clamp(20px, 2.5vw, 35px);
  color: rgb(0, 0, 0);
  font-weight: bold;
  text-shadow: 2px 2px 5px rgba(255, 255, 255, 0.7);
}

#fellow-top .over-img {
  position: absolute;
  bottom: 0; /* 画像を下部に配置 */
  left: 50%; /* 水平中央に配置 */
  transform: translateX(-50%); /* 画像を中央にシフト */
  width: 100%;
  max-width: 1200px;
  height: auto;
}
#fellow-top .over-img img {
  width: 100%;
  height: auto;
}
#sub-page .over-img img {
  width: 90%;
  padding: 0 5%;
  margin: 2em auto;
}
.fellow-box .row {
  padding-top: 1.5em;
}
.fellow-box .img-box {
  text-align: center;
}
.fellow-box .img-box img {
  padding-bottom: 1em;
}
.fellow-box a {
  font-size: 22px;
  text-decoration: none;
  color: #000;
  line-height: 1.4em;
  font-weight: bold;
}
.fellow-box a span {
  font-weight: 500;
  font-size: 18px;
}
.fss-b {
  font-size: 22px;
  color: #005bac;
  margin-top: -1em;
}

/* member-01 03 共通 */
.fellow-box2 {
  margin: 5em 0 4em 0;
}
.fellow-box2 .sp3 {
  padding: 1em;
}

#sub-page .fellow-box2 h2 {
  font-size: 28px;
  font-weight: bold;
  margin: 0.25em 0;
  text-align: left;
}

#fellow-01,
#fellow-02,
#fellow-03,
#fellow-04 {
  width: 100%;
  height: auto;
  margin-bottom: 1em;
}

#fellow-01 .container,
#fellow-02 .container,
#fellow-03 .container,
#fellow-04 .container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

#fellow-01 .container,
#fellow-02 .container,
#fellow-03 .container,
#fellow-04 .container {
  position: relative;
}

#fellow-01 .on-text {
  position: absolute;
  bottom: 3%;
  left: 3%;
  background-color: #fff;
  padding: 1.25em 1.25em 0.75em 1.25em;
}

#fellow-02 .on-text,
#fellow-04 .on-text {
  position: absolute;
  bottom: 3%;
  right: 3%;
  background-color: #fff;
  padding: 1em 1em 0.5em 1em;
}

#fellow-03 .on-text {
  position: absolute;
  top: 3%;
  left: 3%;
  background-color: #fff;
  padding: 1em 1em 0.5em 1em;
}

.on-text2 {
  width: 100%;
  border: 4px solid #005bac;
  background-color: #fff;
  padding: 1em 1em 0.5em 1em;
  margin-top: 3em;
}

.pos {
  font-size: clamp(14px, 1.5vw, 24px);
  font-weight: bold;
}
.pos-item {
  font-size: clamp(12px, 1.5vw, 18px);
}
.on-text2 .pos {
  font-size: clamp(20px, 1vw, 24px);
  font-weight: bold;
}
.on-text2 .pos-item {
  font-size: clamp(12px, 1vw, 18px);
}

.pos-item ul {
  margin: 0 0 0 -1.75em;
  line-height: 1em;
}
.pos-item li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 5px;
  line-height: 1.6;
  list-style: none;
}
.pos-item li::before {
  content: "●";
  position: absolute;
  left: 0;
  top: 0.3em;
  transform: translateY(0);
  color: #005bac;
  font-size: 18px;
  line-height: 1;
}

.time-line {
  border: 4px solid #005bac;
  border-radius: 15px 15px;
  margin-top: 3em;
  padding: 3em;
}

/* 親要素 .row にフレックスを設定 */
.time-line .row {
  display: flex;
  align-items: center; /* 縦中央に配置 */
}

/* 左側ボックス (左の画像を右寄せ) */
.time-line .left-box {
  display: flex;
  justify-content: flex-end; /* 画像を右寄せ */
  align-items: center; /* 縦中央に配置 */
  height: 100%; /* 高さを親要素に合わせる */
  width: 100%; /* 横幅100% */
}

/* 右側ボックス (右の画像を左寄せ) */
.time-line .right-box {
  display: flex;
  justify-content: flex-start; /* 画像を左寄せ */
  align-items: center; /* 縦中央に配置 */
  height: 100%; /* 高さを親要素に合わせる */
  width: 100%; /* 横幅100% */
}

/* 画像に対して縦横中央に収まるように設定 */
.time-line .left-box img,
.time-line .right-box img {
  max-height: 100%; /* 画像が親要素に収まるように */
  object-fit: contain; /* 画像が歪まないように調整 */
}
/* 画面幅が992px以下の場合のスタイル */
@media (max-width: 992px) {
  .time-line .left-box,
  .time-line .right-box {
    justify-content: center; /* 画像を横中央に配置 */
  }
  .time-line .left-box img {
    margin-bottom: 2.5em;
  }
}

.menber-list {
  margin-top: 3em;
  text-decoration: none;
  font-weight: bold;
  text-align: right;
}
.menber-list a {
  text-decoration: none;
  color: #005bac;
}

/*------------------------------------------*/
/* 採用の流れ
/*------------------------------------------*/
.process-box {
  margin: 4em 0;
}
#process-top,
#process-qa {
  background-color: #d3edfb;
  padding: 1em 0 3em 0;
}
#process-top .container,
#process-qa .container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

#process-top .container h2,
#process-qa .container h2 {
  padding: 25px 0 0 35px;
  text-align: left;
  font-size: clamp(20px, 2.5vw, 35px);
  color: rgb(0, 0, 0);
  font-weight: bold;
  text-shadow: 2px 2px 5px rgba(255, 255, 255, 0.7);
}

#process-top .container h3,
#process-qa .container h3 {
  padding: 25px 0 0 35px;
  text-align: center;
  font-size: clamp(20px, 2.5vw, 35px);
  color: #000;
  font-weight: bold;
  margin: 2em auto;
}
#process-top .container h4 {
  padding: 25px 0 0 35px;
  text-align: center;
  font-size: clamp(20px, 2.5vw, 35px);
  color: #000;
  font-weight: bold;
  margin: 1em auto;
}
#process-top .con-box {
  max-width: 810px;
  height: auto;
  margin: 0 auto;
  padding: 1.5em 90px;
  background-color: #fff;
  border: 4px solid #005bac;
  border-radius: 15px 15px;
  color: #005bac;
  font-size: clamp(16px, 1.8vw, 28px);
  font-weight: bold;
  position: relative;
}

#process-top .con-box img.con-box-img {
  position: absolute;
  top: -120px;
  right: -75px;
  width: 120px;
  height: auto;
}

.con-box p {
  margin-bottom: 0;
}

@media screen and (max-width: 1000px), print {
  #process-top .con-box {
    padding: 1em 80px;
  }
  #process-top .con-box img.con-box-img {
    position: absolute;
    top: -100px;
    right: -25px;
    width: 100px;
    height: auto;
  }
}

@media screen and (max-width: 800px), print {
  #process-top .con-box {
    padding: 1em 1.5em;
  }
  #process-top .con-box br {
    display: none;
  }
  #process-top .con-box img.con-box-img {
    position: absolute;
    top: -200px;
    right: 0px;
    width: 100px;
    height: auto;
  }
}

#process-top .d-arrow {
  max-width: 100%;
  height: auto;
  text-align: center;
  margin: 1.5em auto;
}
.process-box .sub-text {
  margin: 0 0;
  text-align: center;
}
.list-box {
  background-color: #005bac;
  color: #fff;
  padding: 1.5em 0;
  border-radius: 15px 15px;
  margin: 0.5em 0;
  text-align: center;
  font-weight: bold;
  font-size: clamp(16px, 1.8vw, 28px);
}
#list a {
  text-decoration: none;
}

@media screen and (max-width: 767px), print {
  #list .row {
    margin: 0 auto;
  }
  #list .row .col-md-1 {
    display: none;
  }
}

#process-qa .qa-box {
  max-width: 800px;
  margin: 0 auto;
}

#process-qa .qa-box dt {
  margin: 1em 0;
  font-weight: 500;
}
#process-qa .qa-box dd {
  margin: 1em 0 3em 0;
}
.img-q {
  position: relative;
  padding-left: 50px; /* 画像の幅に応じて調整 */
  background: url(https://www.kyodosetsubi.jp/sys/wp-content/themes/kyodo/assets/img/recruit/process/img-q.png) no-repeat left center;
  background-size: 40px; /* 画像サイズを適宜調整 */
}

.img-a {
  position: relative;
  padding-left: 50px; /* 画像の幅に応じて調整 */
  background: url(https://www.kyodosetsubi.jp/sys/wp-content/themes/kyodo/assets/img/recruit/process/img-a.png) no-repeat left center;
  background-size: 40px; /* 画像サイズを適宜調整 */
}

@media screen and (max-width: 576px), print {
  .img-q,
  .img-a {
    padding-left: 35px; /* 画像の幅に応じて調整 */
    background-size: 30px; /* 画像サイズを適宜調整 */
  }
}

.list-box2 {
  display: inline-block;
  background-color: #005bac;
  color: #fff;
  padding: 1.25em 2.5em;
  border-radius: 15px 15px;
  margin: 0.5em auto;
  text-align: center;
  font-weight: bold;
  font-size: clamp(16px, 1.8vw, 28px);
}

.con-table,
.con-table-b {
  width: 81%;
  margin: 0 auto;
  border-collapse: separate;
  border-spacing: 5px;
}
.con-table th {
  width: 40%;
  padding: 0.8em 0;
  border: 3px solid #fff;
  background-color: #005bac;
  color: #fff;
  text-align: center;
  font-size: clamp(16px, 1.8vw, 21px);
}

.con-table td {
  height: 110%;
  vertical-align: middle; /* セル内のテキストを上下中央に揃えたい場合 */
}

.con-table td input,
.con-table td textarea {
  padding: 0.25em;
  height: 100%;
}
.con-table #prefecture {
  color: #666;
  padding: 0.25em;
}

.w-80 {
  width: 88%;
}

@media screen and (max-width: 767px), print {
  .con-table,
  .con-table tbody,
  .con-table tr,
  .con-table th,
  .con-table td,
  .con-table-b,
  .con-table-b tbody,
  .con-table-b tr,
  .con-table-b th,
  .con-table-b td {
    display: block;
    width: 100%;
  }

  .con-table tr,
  .con-table-b tr {
    margin-bottom: 1em;
  }

  .con-table th,
  .con-table-b th {
    text-align: left;
    padding: 0.5em;
  }

  .con-table td {
    text-align: left;
    padding: 0.5em;
  }

  .con-table-b td {
    text-align: left;
    margin: 0;
    padding: 0.5em;
    border-bottom: none;
  }

  .con-table td label,
  .con-table td input,
  .con-table td textarea {
    display: inline-block;
    vertical-align: middle;
    white-space: nowrap;
  }

  .con-table td input,
  .con-table td textarea {
    width: 100%;
    max-width: 100%;
  }
}

#occupation-top {
  background-color: #005bac;
}
#occupation-top .container {
  max-width: 1200px;
  margin: 0 auto 5em auto;
  padding: 2em;
  display: flex;
  align-items: center;
  justify-content: center; /* 追加 */
}

.h2-before-img {
  margin-right: 25px; /* h2との間隔 */
  width: 15%;
  max-width: 135px; /* 適宜調整 */
  height: auto;
}

#occupation-top .container h2 {
  color: #fff;
  font-weight: bold;
  font-size: clamp(32px, 3.25vw, 57px);
}
.cat {
  width: 100%;
  margin: 3em auto 2em auto;
}
.t-red {
  color: red;
}

/*------------------------------------------*/
/* プライバシーポリシー
/*------------------------------------------*/
#st-privacy .title-en {
  width: 100%;
  color: #ffffffbb;
  font-weight: 900;
  line-height: 1em;
  font-size: clamp(50px, 11vw, 130px);
  padding: 20px 0 0 20px;
  display: block;
}
#st-privacy h2 {
  padding: 0 0 0 25px;
  font-size: clamp(20px, 2.5vw, 35px);
  color: rgb(255, 255, 255);
  font-weight: bold;
  margin-top: 0px;
  z-index: 10000;
}
#st-privacy h2.mv {
  position: relative;
  z-index: 2;
}
#privacy-block {
  width: 95%;
  max-width: 1400px;
  margin: 6.5em auto 0 auto;
  background-image: url(https://www.kyodosetsubi.jp/sys/wp-content/themes/kyodo/assets/img/policy/item-box-bg.jpg);
  background-size: 70% auto;
  background-position: left top;
  background-repeat: no-repeat;
}
#privacy-block h3 {
  color: #231815;
  font-size: clamp(20px, 1.8vw, 36px);
  font-weight: 600;
}
#privacy-block .item-box {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}
#privacy-block .item-box h4 {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 3em 0 0.5em 0;
  color: #005bac;
  font-size: clamp(20px, 1.8vw, 26px);
  border-bottom: solid 2px #005bac;
}
.secidt {
  display: block;
  padding: 0 0 0 1.5em;
  margin: 0;
  text-indent: -1.25em;
  box-sizing: border-box;
}

@media screen and (min-width: 768px) {
  #st-privacy {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 3840 / 1130;
    min-height: 100px;
    background-image: url(https://www.kyodosetsubi.jp/sys/wp-content/themes/kyodo/assets/img/policy/heading-bg.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-bottom: 150px;
  }
}

@media screen and (max-width: 768px) {
  #st-privacy {
    position: relative;
    margin-top: 75px;
    width: 100%;
    height: auto;
    aspect-ratio: 768 / 792;
    background-size: cover;
    background-image: url(https://www.kyodosetsubi.jp/sys/wp-content/themes/kyodo/assets/img/policy/sp-heading-bg.jpg);
    background-position: center;
    background-repeat: no-repeat;
    padding-bottom: 150px;
  }
  #st-privacy .title-en {
    font-size: 21vw;
  }
  #privacy-block {
    width: 98%;
    margin: 60px auto 0 auto;
  }
  #privacy-block .item-box {
    width: 90%;
    margin: 0 auto;
  }
}

/*------------------------------------------*/
/* お問い合わせ
/*------------------------------------------*/
#st-contact .title-en {
  width: 100%;
  color: #ffffffbb;
  font-weight: 900;
  line-height: 1em;
  font-size: clamp(50px, 11vw, 130px);
  padding: 20px 0 0 20px;
  display: block;
}
#st-contact h2 {
  padding: 0 0 0 25px;
  font-size: clamp(20px, 2.5vw, 35px);
  color: rgb(255, 255, 255);
  font-weight: bold;
  margin-top: 0px;
  z-index: 10000;
}
#st-contact h2.mv {
  position: relative;
  z-index: 2;
}

@media screen and (min-width: 768px) {
  #st-contact {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 3840 / 1130;
    min-height: 100px;
    background-image: url(https://www.kyodosetsubi.jp/sys/wp-content/themes/kyodo/assets/img/contact/heading-bg.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-bottom: 150px;
  }
  #contact-top h2,
  #contact-form h3 {
    text-align: center;
    font-size: clamp(20px, 2.5vw, 35px);
    color: #000;
    font-weight: bold;
    margin: 2em auto 0.5em auto;
  }
  #contact-form {
    max-width: 1400px;
    width: 95%;
    margin: 0 auto;
    padding: 2em 0;
  }

  #contact-form .con-btn2 {
    text-align: center; /* ボタンを中央寄せ（任意） */
  }

  #contact-form .con-btn2 .rl-box {
    display: inline-block; /* 横幅いっぱい → ボタン幅だけにする */
    width: auto; /* 念のためリセット */
    text-decoration: none; /* 下線を消す */
  }

  #contact-form .con-btn2 .rl-box:hover {
    text-decoration: none; /* ホバー時も下線を出さない */
  }

  #contact-form .rl-box .rl-content {
    width: 333px;
    margin: 2em auto 0 auto;
    white-space: nowrap;
    padding: 0.5em 0;
    text-align: center;
    background-color: #005bac;
    color: #fff;
    font-weight: 500;
    font-size: 38px;
    border: 2px solid #005bac;
    border-radius: 19px;
    transition: background-color 0.2s ease, color 0.2s ease,
      border-color 0.2s ease;
  }
  /* ホバー時：背景を白に、文字・枠線を#005bacに */
  #contact-form .rl-box:hover .rl-content {
    background-color: #fff;
    color: #005bac; /* ホバー時文字色 */
    border-color: #005bac; /* ホバー時枠線色 */
  }
}

@media screen and (max-width: 768px) {
  #st-contact {
    position: relative;
    margin-top: 75px;
    width: 100%;
    height: auto;
    aspect-ratio: 768 / 792;
    background-size: cover;
    background-image: url(https://www.kyodosetsubi.jp/sys/wp-content/themes/kyodo/assets/img/contact/sp-heading-bg.jpg);
    background-position: center;
    background-repeat: no-repeat;
    padding-bottom: 150px;
  }
  #contact-form h2 {
    text-align: center;
    font-size: clamp(20px, 2.5vw, 35px);
    color: #000;
    font-weight: bold;
    margin: 2em auto 0.5em auto;
  }
  #contact-form h3 {
    text-align: center;
    font-size: 26px;
    color: #000;
    font-weight: bold;
    margin: 2em auto 30px auto;
  }
  #st-contact .title-en {
    font-size: 21vw;
  }
  #contact-form {
    width: 94%;
    margin: 0 auto;
    padding: 2em 0;
  }
  #contact-form .sub-title,
  #contact-form .cat {
    width: 94%;
    margin-right: auto;
    margin-left: auto;
  }
  #contact-form .rl-box .rl-content {
    width: 283px;
    margin: 1.5em auto;
    white-space: nowrap;
    padding: 0.5em 0;
    text-align: center;
    background-color: #005bac;
    color: #fff;
    font-weight: 500;
    font-size: 26px;
    border: 2px solid #005bac;
    border-radius: 19px;
    transition: background-color 0.2s ease, color 0.2s ease,
      border-color 0.2s ease;
  }
  /* ホバー時：背景を白に、文字・枠線を#005bacに */
  #contact-form .rl-box:hover .rl-content {
    background-color: #fff;
    color: #005bac; /* ホバー時文字色 */
    border-color: #005bac; /* ホバー時枠線色 */
  }
}

#contact-top {
  background-color: #efefef;
  padding: 6.5em 0;
}
#contact-top .container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.list-box3 {
  display: inline-block;
  background-color: #005bac;
  color: #fff;
  padding: 0.75em 1.5em;
  border-radius: 15px 15px;
  margin: 0.5em auto;
  text-align: center;
  font-weight: bold;
  font-size: clamp(16px, 1.8vw, 28px);
}

#contact-form .rmf-table {
  width: 100%;
}

#contact-form .rmf-table th p {
  margin: 0;            /* ← 最重要 */
  line-height: 1.2;     /* 任意：見た目を締める */
}

#contact-form .rmf-table td p {
  margin: 0;
  padding: 0.05em 0;   /* ← ここで縦を稼ぐ */
  line-height: 1.6;
}

#contact-form .rmf-table th,
#contact-form .rmf-table td {
  min-height: 1em; /* 高さを統一する基準値 */
  height: 100%;
}
#contact-form .rmf-table th {
  height: 50px; /* 固定高さ */
  line-height: 1;
  vertical-align: middle;
  width: 366px;
  font-weight: 400;
  background-color: #005bac;
  color: #fff;
  padding: 0 0.5em;
  text-align: center;
  vertical-align: middle;
  border-top: 3px #fff solid;
  border-bottom: 3px #fff solid;
  font-size: 21px;
}
#contact-form .rmf-table td {
  height: 50px; /* th と同じ高さ */
  vertical-align: middle;
  padding: 0.3em; /* 高さ計算のノイズを除く */
}

#contact-form .rmf-table td input,
#contact-form .rmf-table td select {
  width: 100%;
  height: 4em; /* 揃える */
  display: block;
  box-sizing: border-box;
  padding: 0 0.5em;
  border: 1px solid #999;
  font-size: 1em;
}
#contact-form .rmf-table td textarea {
  width: 100%;
  height: 12em; /* 揃える */
  display: block;
  box-sizing: border-box;
  padding: 0 0.5em;
  border: 1px solid #999;
  font-size: 1em;
}

@media (max-width: 768px) {
  #contact-top .col-md-5 {
    text-align: center;
  }
  #contact-top .col-md-5 img {
    display: inline-block;
    margin: 0 auto;
  }
  #contact-form .rmf-table th {
    font-size: 16px;
    text-align: left;
    padding: 0.75em 1em 0.75em 1em;
    border: none;
  }
  #contact-form .rmf-table td {
    padding: 0;
  }
  #contact-form .rmf-table th,
  #contact-form .rmf-table td {
    display: block; /* 横並びを解除して縦並びに */
    width: 100%; /* ブロック幅いっぱいに */
    height: auto !important; /* 高さ固定を解除 */
    min-height: unset;
  }
  #contact-form .rmf-table td input {
    height: 100% !important; /* input/selectの高さも解除 */
    padding: 0.5em 1em;
  }
  #contact-form .rmf-table td select {
    height: 100% !important;
    padding: 0.5em 1em;
    line-height: 1.7; /* もしくは input に合わせて 1.2〜1.6 あたりで調整 */
    appearance: none; /* （任意）Safari/Chromeでの装飾を統一したい場合 */
  }
  #contact-form .rmf-table td textarea {
    height: auto !important; /* textareaも高さ解除 */
  }
}

/*
------------------------------------------------------------ お問い合わせ（共通）
*/
#box-contact {
  padding: 60px 0 80px 0;
  font-size: 20px;
  text-align: center;
  vertical-align: middle;
  background-color: #eaeff9;
  color: #231815;
}
#box-contact h2 {
  font-size: 38px;
  text-align: center;
  font-weight: bold;
}
#box-contact .txt-box,
#box-contact select {
  max-width: 530px;
  margin: 0 auto;
  text-align: center;
}
#box-contact .tel {
  font-family: "kozuka-gothic-pro", sans-serif;
  font-size: 43px;
  margin: -0.25em 0;
  padding: 0;
  font-weight: 700;
  text-align: center;
}
@supports (-webkit-touch-callout: none) {
  /* iOS専用のスタイル */
  #box-contact .tel {
    font-family: "kozuka-gothic-pro", sans-serif;
    font-size: 36px;
    font-weight: 700;
    text-align: justify;
  }
}
.mh8 {
  transition: opacity 1.5s ease;
}
a:hover .mh8 {
  content: url(https://www.kyodosetsubi.jp/sys/wp-content/themes/kyodo/assets/img/top/btn-contact-o.png);
  transition: opacity 1.5s ease;
}

/* -------------------------------------------------- フッター（共通） */
#foot-menu {
  max-width: 1400px;
  padding: 60px 0px 50px 0px;
  font-size: clamp(12px, 1vw, 14px);
  text-align: left;
  margin: 0 auto;
}
#foot-menu .contact-box,
#foot-menu .contact-box .row {
  width: 100%;
  max-width: 1400px;
}
#foot-menu .left-box,
#foot-menu .right-box {
  padding-bottom: 1.5em;
}
#foot-menu .item {
  border-left: 2px solid #fff;
  padding: 0.5em 0 0.5em 1em;
  margin-bottom: 1em;
}
#foot-menu .item2 {
  padding: 43px 0 0.5em 0.5em;
  margin-bottom: 1em;
}
#foot-menu h2 {
  font-size: 3em;
  font-weight: 800;
  color: #ffffff81;
  text-align: center;
  padding: 1em 0 2em 0;
}
#foot-menu h3,
#foot-menu h4,
#foot-menu h3 a,
#foot-menu h4 a {
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  margin-top: 0.5em;
  text-decoration: none;
}
#foot-menu .item ul,
#foot-menu .item2 ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
#foot-menu .item ul li,
#foot-menu .item2 ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  color: #000;
  text-decoration: none;
}
#foot-menu .item ul li::before,
#foot-menu .item2 ul li::before {
  content: "●";
  position: absolute;
  left: 0;
  top: 0;
  transform: none;
  color: #fff;
}
#foot-menu li a {
  color: #fff;
  text-decoration: none;
}

#foot-menu .left-box {
  background-image: url(https://www.kyodosetsubi.jp/sys/wp-content/themes/kyodo/assets/img/top/footer-left-bg.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
#foot-menu .right-box {
  background-image: url(https://www.kyodosetsubi.jp/sys/wp-content/themes/kyodo/assets/img/top/footer-right-bg.png);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

#footer .foot-logo {
  max-width: 432px;
  height: auto;
  margin-top: 50px;
}

/* デフォルトでは fot-logo 内は右寄せ、fot-insta 内は左寄せ */
.fot-insta {
  text-align: right;
}
.fot-insta img {
  margin-right: 5px;
  width: 100%;
  max-width: 453px;
  height: auto;
}
.fot-entry {
  text-align: left;
}
.fot-entry img {
  margin-left: 5px;
  width: 100%;
  max-width: 453px;
  height: auto;
}

.address {
  margin: 2em auto;
  text-align: center;
}

.policy {
  margin-top: -1em;
  text-align: center;
}
.policy a {
  color: #000;
  text-decoration: none;
}

/* 768px以下の場合は両方とも中央寄せ */
@media (max-width: 768px) {
  #footer .foot-logo {
    width: 80%;
    height: auto;
    max-width: 432px;
    margin-top: 30px;
  }
  .fot-entry,
  .fot-insta {
    width: 80%;
    margin: 0 auto;
    padding: 0;
    text-align: center;
  }
}

#footer .copyright {
  text-align: center;
  margin: 3em 0 1em 0;
}

@media (max-width: 1200px) {
  .rec {
    padding: 0 14px;
  }
}

@media (max-width: 1024px) {
  .header nav ul.nav {
    font-size: 14px;
  }
  .header nav ul.nav li a.nav-link {
    padding: 0 20px;
  }
}

@media (max-width: 850px) {
  .pc {
    display: none;
  }
  .sp {
    display: block;
    position: relative;
  }

  /* 新着情報 */
  .news-item {
    display: block;
    text-align: left;
    padding: 1.2em 0;
  }
  .news-date {
    display: block;
    padding-left: 0;
    padding-right: 0;
  }
  .news-title {
    padding-left: 0;
  }
  #foot-menu .item2 {
    border-left: 2px solid #005bac;
    padding: 0em 0 0.5em 1.5em;
    margin: -1.75em 0 1em 0;
  }

  /* ハンバーガー */
  .hamburger {
    display: block;
    position: fixed;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    z-index: 1000;
  }
  .hamburger span {
    display: block;
    position: absolute;
    width: 30px;
    height: 3px;
    background-color: #000;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s;
  }
  .hamburger span:nth-child(1) {
    top: 8px;
  }
  .hamburger span:nth-child(2) {
    top: 18px;
  }
  .hamburger span:nth-child(3) {
    top: 28px;
  }
  .hamburger.active span:nth-child(1) {
    transform: translateX(-50%) rotate(-45deg);
    top: 18px;
  }
  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }
  .hamburger.active span:nth-child(3) {
    transform: translateX(-50%) rotate(45deg);
    top: 18px;
  }

  /* SPメニュー */
  .globalMenuSp {
    position: fixed;
    top: 75px;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #efefef;
    transform: translateY(100%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0s linear 0.3s;
    z-index: 998;
    overflow-y: auto;
  }
  .globalMenuSp.active {
    transform: translateY(0);
    visibility: visible;
    transition: transform 0.3s ease;
  }
  .globalMenuSp ul {
    border-top: 1px solid #c9c9cb;
  }

  .toggle-submenu {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    color: #fff;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
  }

  .sp-t {
    color: #bfc0c0;
    font-size: clamp(12px, 30vw, 16px);
    padding: 5em 2em 1em 2em;
    font-weight: 800;
  }
  /* メニューリスト */
  .menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    text-align: center;
  }
  .menu-list .item {
    border-bottom: 1px solid #c9c9cb;
  }

  /* 見出し部分 */
  .menu-title,
  .menu-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1em 2em;
    color: #727071;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
  }
  .menu-link .arrow {
    margin-left: auto;
  }

  /* サブメニュー */
  .submenu {
    background-color: #efefef;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }
  .submenu li {
    padding: 0 1em;
    margin-left: -1em;
    list-style: none;
  }

  .submenu li a {
    display: block;
    list-style: none;
    padding: 0.75em 1.5em 0.75em 0;
    color: #727071;
    text-decoration: none;
    font-size: 16px;
  }
  .item.open > .submenu {
    max-height: 500px;
  }
  .bnr-area {
    display: block;
    margin-top: 2em;
  }
  .bnr-link1,
  .bnr-link2,
  .bnr-link3 {
    width: 80%;
    margin: 1.5em auto;
    padding: 1.25em 0;
    text-align: center;
    font-size: 18px;
    font-weight: 800;
  }
  .bnr-area a,
  .spm-foot a {
    text-decoration: none;
  }
  .bnr-link1 {
    background-color: #f6ab00;
    color: #fff;
  }
  .bnr-link2 {
    background-color: none;
    color: #727071;
    border: #c9c9ca 2px solid;
  }
  .bnr-link3 {
    background-color: #005bac;
    color: #fff;
    border: 2px solid #fff;
  }
  .spm-foot {
    margin-top: 3em;
    color: #727071;
    text-align: center;
  }
  .spm-foot a {
    color: #727071;
  }
  .spm-foot .copyright {
    margin-top: 1em;
  }

  /* テーブル（dec-t01）*/
  .dec-t01 {
    width: 100%;
  }

  .dec-t01 th,
  .dec-t01 td {
    display: block;
    padding: 1em 1em;
    width: 100%;
  }

  .dec-t01 th {
    text-align: left;
  }

  /* テーブル（dec-t01nc）*/
  .dec-t01nc th,
  .dec-t01nc td {
    display: block;
    width: 100%;
    padding: 1em;
  }
  .dec-t01nc th {
    text-align: left;
  }
  .dec-t01nc td {
    padding-left: 3em;
  }
  .dec-t01nc td::before {
    padding-left: 2em;
  }
  .photo-block .second {
    margin-top: 0;
  }
  .photo-block img {
    margin: 1em 0;
  }
}

@media (max-width: 768px) {
  html,
  body {
    padding-top: 0;
  }
  .header .site-logo {
    width: 75%;
    height: auto;
  }
  .heading-block {
    margin-top: 6em;
  }
  .sub-title {
    font-size: 18px;
    font-weight: 800;
    color: #a9a9aa;
    text-align: center;
    margin-top: -1.5em;
  }
  img:not(header img) {
    max-width: 80%;
    margin: 0 auto;
    text-align: center;
  }
  #about-linkbox .container {
    padding: 2em 0;
    background-image: url(https://www.kyodosetsubi.jp/sys/wp-content/themes/kyodo/assets/img/top/about-top-bg2.png);
    background-position: left bottom;
    background-repeat: no-repeat;
    background-size: auto 45%;
  }
  #about-visual {
    margin-top: 3em;
  }
  #about-visual,
  #about-visual-b {
    height: 150px;
  }
  .right-col a {
    width: 75%;
  }
  .col-box1 .col-12:first-child img {
    width: 100%;
    height: auto;
    margin: 0 auto;
  }
  .col-box1 .col-12:last-child img {
    width: 100%;
    height: auto;
    margin: 0 auto;
    margin-top: 2.9em;
  }
  .price-box h4 {
    text-align: center;
  }
  .price-box h4 img {
    width: auto;
    height: 200px;
    margin: 1.5em 0;
  }
  .rn-box1 .row:last-child {
    padding: 0px;
    margin-top: 0px;
  }
  #footer {
    padding-top: 2em;
  }
  #footer img {
    margin-bottom: 2.5em;
  }
  #about-linkbox .container a .lo1,
  #about-linkbox .container a .lo2,
  #about-linkbox .container a:hover .lo1,
  #about-linkbox .container a:hover .lo2 {
    width: 70%;
    height: auto;
  }
}

@media (max-width: 576px) {
  body {
    font-family: "kozuka-gothic-pro", sans-serif;
    font-weight: 400;
    font-style: normal;
    line-height: 1.6;
    font-size: 16px;
  }
  #box-message,
  .heading-block {
    padding-top: 20px;
    margin-top: 20px;
  }
  #box-contact {
    padding-top: 70px;
    margin-top: 30px;
  }

  #information h2,
  #box-about h2,
  #box-message h2,
  #box-b-content h2,
  #box-contact h2,
  .heading-block h2 {
    font-size: 26px;
    margin-bottom: 30px;
  }
  #box-contact .txt-box {
    max-width: 530px;
    font-size: 18px;
    text-align: center;
  }
  #box-contact .tel {
    font-family: "kozuka-gothic-pro", sans-serif;
    font-size: 39px;
    font-weight: 700;
    margin: 0.25em 0 0.05em 0;
    text-align: center;
  }
  @supports (-webkit-touch-callout: none) {
    /* iOS専用のスタイル */
    #box-contact .tel {
      font-family: "kozuka-gothic-pro", sans-serif;
      font-size: 32px;
      font-weight: 700;
      margin: 0.25em 0 0.05em 0;
      text-align: center;
    }
  }
  #foot-menu {
    display: none;
  }
  #foot-menu .copyright {
    font-size: 13px;
  }
  #foot-menu {
    padding: 60px 30px 10px 30px;
    text-align: center;
  }

  /* 下層ページ */
  #sub-page h3 {
    font-size: 26px;
    margin-bottom: 30px;
  }
  #sub-page {
    margin: 0 auto;
    font-size: 16px;
    line-height: 2.1em;
  }
  .bp,
  .bp2 {
    display: block;
    height: 0;
  }
  .mt-10 {
    padding-top: 1em;
  }
  .fot-logo img,
  .fot-insta img {
    margin-left: 0;
    margin-right: 0;
  }
}

/*------------------------------------------*/
/* お知らせ
/*------------------------------------------*/
#st-news .title-en {
  width: 100%;
  color: #ffffffbb;
  font-weight: 900;
  line-height: 1em;
  font-size: clamp(50px, 11vw, 130px);
  padding: 20px 0 0 20px;
  display: block;
}
#st-news h2 {
  padding: 0 0 0 25px;
  font-size: clamp(20px, 2.5vw, 35px);
  color: rgb(255, 255, 255);
  font-weight: bold;
  margin-top: 0px;
  z-index: 10000;
}
#st-news h2.mv {
  position: relative;
  z-index: 2;
}
#news-con .inner2 h3 {
  margin: 0.5em 0 1.5em 0;
  padding-bottom: 0.75em;
  border-bottom: 1px #000 solid;
  font-size: clamp(20px, 2.5vw, 31px);
}
#news-con {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  background-color: #ffffff;
  background-image: url(https://www.kyodosetsubi.jp/sys/wp-content/themes/kyodo/assets/img/news/bg-logo.png);
  background-size: 45% auto;
  background-position: 10% bottom;
  background-repeat: no-repeat;
  padding-bottom: 5em;
}
#news-con .row {
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 3em 0 0 0;
}
#news-con .cara {
  text-align: left;
  display: block; /* 念のため */
}
#news-con .cara img {
  width: 90%;
  height: auto;
  max-width: 316px; /* 768px以上のとき効く */
  display: block;
}

@media (max-width: 768px) {
  #news-con .cara img {
    width: 60%;
    height: auto;
    display: block;
  }
}

.pager {
  text-align: center;
  margin-top: 7.5em;
}

.list-btn {
  width: 228px;
  margin: 0 auto; /* 左右中央寄せ */
}

.list-btn a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 52px;
  border: 1px solid #000;
  border-radius: 26px;
  text-decoration: none;
  color: #000; /* 通常時：黒 */
  font-size: 16px;
  position: relative;
  box-sizing: border-box;
  background-color: #fff; /* 初期背景白 */
  transition: all 0.3s ease; /* アニメーション */
}

.list-btn a::after {
  content: "＞";
  position: absolute;
  right: 16px;
  font-size: 16px;
  line-height: 1;
  color: inherit; /* 親のcolorに追従 */
  transition: color 0.3s ease; /* 矢印もスムーズに変化 */
}

.list-btn a:hover {
  background-color: #000; /* 背景黒 */
  color: #fff; /* テキスト白 */
}

@media screen and (min-width: 768px) {
  #st-news {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 3840 / 1130;
    min-height: 100px;
    background-image: url(https://www.kyodosetsubi.jp/sys/wp-content/themes/kyodo/assets/img/news/heading-bg.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding-bottom: 150px;
  }
  #news-con .inner {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 3.5em 0 3em 0;
  }
  #news-con dl {
    margin-left: 40px;
  }
  #news-con .inner2 {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 3.5em 0 3em 0;
  }
}

@media screen and (max-width: 992px) {
  #news-con {
    background-size: 90% auto;
    background-position: left bottom;
    background-repeat: no-repeat;
    padding-bottom: 3em;
  }
  #news-con .inner2 {
    width: 95%;
    margin: 0 auto;
    padding: 1.75em 0 1.75em 0;
  }
  #news-con .cara {
    display: flex;
    justify-content: center;
  }
  #news-con .cara img {
    margin-bottom: 3em;
  }
  #news-con dl {
    margin-left: 0px;
  }
}

@media screen and (max-width: 768px) {
  #st-news {
    position: relative;
    margin-top: 75px;
    width: 100%;
    height: auto;
    aspect-ratio: 768 / 792;
    background-size: cover;
    background-image: url(https://www.kyodosetsubi.jp/sys/wp-content/themes/kyodo/assets/img/news/sp-heading-bg.jpg);
    background-position: center;
    background-repeat: no-repeat;
    padding-bottom: 150px;
  }
  #st-news .title-en {
    font-size: 21vw;
  }
  .content-wrap {
    gap: 0px;
  }
  #news-con .inner2 {
    width: 90%;
    margin: 0 auto;
    padding: 1.75em 0 1.75em 0;
  }
  .news-nav {
    gap: 30px; /* カラム間の間隔60px */
  }
}




/* =========================================================
   WordPress（Classic Editor）由来：画像配置・キャプション等の不足分補完
   - ビジュアルエディタで設定した配置（中央/左/右）をフロントでも反映
   ========================================================= */

/* 1) 画像・要素の基本：はみ出し防止 */
.entry-content img,
.entry-content video,
.entry-content iframe,
.entry-content embed,
.entry-content object {
  max-width: 100%;
  height: auto;
}

/* 2) WordPress画像配置クラス（Classic Editor） */
.entry-content img.aligncenter,
.entry-content .aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
  clear: both;
}

.entry-content img.alignleft,
.entry-content .alignleft {
  float: left;
  margin: 0.4em 1.2em 1.2em 0;
}

.entry-content img.alignright,
.entry-content .alignright {
  float: right;
  margin: 0.4em 0 1.2em 1.2em;
}

.entry-content img.alignnone,
.entry-content .alignnone {
  float: none;
  margin: 0;
}

/* 3) 回り込み解除（画像の後に続く要素の崩れを防ぐ） */
.entry-content::after {
  content: "";
  display: block;
  clear: both;
}

/* 4) WordPressキャプション（Classic Editor） */
.entry-content .wp-caption {
  max-width: 100%;
  margin: 0 0 1.2em;
}

.entry-content .wp-caption.aligncenter {
  margin-left: auto;
  margin-right: auto;
}

.entry-content .wp-caption-text {
  font-size: 0.9em;
  line-height: 1.6;
  margin-top: 0.4em;
}

/* 5) ギャラリー（Classic標準） */
.entry-content .gallery {
  margin: 0 0 1.2em;
}

.entry-content .gallery-item {
  display: inline-block;
  vertical-align: top;
  max-width: 100%;
  margin: 0 0 1em;
  text-align: center;
}

.entry-content .gallery img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  height: auto;
}

/* columns-* の簡易対応（必要なら増やす） */
.entry-content .gallery-columns-2 .gallery-item { width: 50%; }
.entry-content .gallery-columns-3 .gallery-item { width: 33.3333%; }
.entry-content .gallery-columns-4 .gallery-item { width: 25%; }

/* 6) iFrameが横長で崩れる場合の保険（必要な場合のみ） */
/*
.entry-content iframe {
  width: 100%;
}
*/

/* =========================================================
   News Pager（#news-con 内だけ）中央寄せ＋ボタン風
   ========================================================= */

#news-con .pager{
  margin-top: 70px;
  width: 100%;
  text-align: center; /* nav-links が inline-* のとき確実に中央へ */
}

#news-con .pager .navigation.pagination{
  width: 100%;
  margin: 0;
}

#news-con .pager .navigation.pagination .nav-links{
  display: inline-flex !important; /* 既存CSSの display:flex 等に勝つ */
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

#news-con .pager .page-numbers{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(0,0,0,0.14);
  border-radius: 999px;
  background: #fff;
  color: #005BAB;
  text-decoration: none;
  font-weight: 700;
  line-height: 1;
  transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, border-color .15s ease;
}

#news-con .pager .page-numbers:hover{
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.10);
  border-color: rgba(0,0,0,0.22);
}

#news-con .pager .page-numbers.current{
  background: #005BAB;
  border-color: #005BAB;
  color: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,0.14);
}

#news-con .pager .page-numbers.dots{
  border: none;
  background: transparent;
  box-shadow: none;
  min-width: auto;
  padding: 0 6px;
}

/* .pager 自体が左寄せ指定されてても中央にできるようにする */
#news-con .pager {
  width: 100%;
}

/* WPが出す .navigation.pagination を中央寄せのレイアウトコンテナにする */
#news-con .pager .navigation.pagination {
  width: 100%;
  display: flex !important;
  justify-content: center !important;
}

/* nav-links は中身の並び。ここは素直に */
#news-con .pager .navigation.pagination .nav-links {
  display: inline-flex !important;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* =========================================================
   CF7 確認画面ボタン（最終版・一本化）
   - 横並び（PC）/ 縦並び（SP）
   - 完全中央配置（左右ズレを作らない）
   - <p> と <br> が出る CF7 出力に対応
========================================================= */

/* 改行を殺す（縦並びの原因） */
#contact-form .con-btn2--confirm br {
  display: none !important;
}

/* con-btn2 を “中央寄せのflexコンテナ” にする（これが一番ズレない） */
#contact-form .con-btn2--confirm {
  display: flex;
  justify-content: center;  /* 全体を中央 */
  align-items: center;
  gap: 30px;                /* pが無い時の保険 */
  text-align: initial;      /* 以前の text-align の影響を遮断 */
}

/* CF7が吐く p は “中身” として扱い、余計な余白だけ消す */
#contact-form .con-btn2--confirm > p {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin: 0;
  padding: 0;
}

/* ボタン共通幅（PC） */
#contact-form .con-btn2--confirm .wpcf7-previous,
#contact-form .con-btn2--confirm .wpcf7-submit {
  width: 333px;
  box-sizing: border-box;
  margin: 0;
}

/* 戻る（白） */
#contact-form .con-btn2--confirm .wpcf7-previous {
  -webkit-appearance: none;
  appearance: none;
  padding: 0.75em 0;
  border-radius: 19px;
  border: 2px solid #005bac;
  background-color: #fff;
  color: #005bac;
  font-weight: 500;
  font-size: 38px;
  line-height: 1.3;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
#contact-form .con-btn2--confirm .wpcf7-previous:hover {
  background-color: #005bac;
  color: #fff;
}

/* 送信（青）※ input.rl-content を確実に固定 */
#contact-form .con-btn2--confirm input.wpcf7-submit.rl-content {
  -webkit-appearance: none;
  appearance: none;
  padding: 0.75em 0;
  border-radius: 19px;
  border: 2px solid #005bac;
  background-color: #005bac;
  color: #fff;
  font-weight: 500;
  font-size: 38px;
  line-height: 1.3;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
#contact-form .con-btn2--confirm input.wpcf7-submit.rl-content:hover {
  background-color: #fff;
  color: #005bac;
}

/* SP：縦並び */
@media screen and (max-width: 768px) {
  #contact-form .con-btn2--confirm,
  #contact-form .con-btn2--confirm > p {
    flex-direction: column;
    gap: 12px;
  }

  #contact-form .con-btn2--confirm .wpcf7-previous,
  #contact-form .con-btn2--confirm .wpcf7-submit {
    width: 283px;
  }

  #contact-form .con-btn2--confirm .wpcf7-previous,
  #contact-form .con-btn2--confirm input.wpcf7-submit.rl-content {
    font-size: 26px;
  }
}

/* =========================================================
   CF7スピナーが横幅を取って中央がズレる問題の対策（確認画面だけ）
========================================================= */

/* 1) スピナーの幅をレイアウトに参加させない（最優先） */
#contact-form .con-btn2--confirm .wpcf7-spinner {
  display: none !important;
}

/* 2) has-spinner が余計な右パディング等を持ってる場合の保険 */
#contact-form .con-btn2--confirm .wpcf7-submit.has-spinner {
  padding-right: 0 !important;
}

/* 入力画面：input に rl-box が付いている場合の最終保険 */
#contact-form .con-btn2 input.rl-box.wpcf7-submit {
  display: block;
  width: 333px;
  margin: 2em auto 0;
  white-space: nowrap;
  padding: 0.5em 0;
  text-align: center;
  background-color: #005bac;
  color: #fff;
  font-weight: 500;
  font-size: 38px;
  border: 2px solid #005bac;
  border-radius: 19px;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

#contact-form .con-btn2 input.rl-box.wpcf7-submit:hover {
  background-color: #fff;
  color: #005bac;
  border-color: #005bac;
}

/* ky_picture の出力を確実に中央寄せ */
.ml-c picture,
.ml-c picture > img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}
