@charset "UTF-8";

/* --- 共通設定 --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}


body {
  margin: 0;
}

li {
  list-style: none;
}

a {
  color: #000;
  text-decoration: none;
}

a:hover {
  opacity: .8;
}

h1, h2, h3, p, a, th, td, span {
  font-family: "Noto Sans JP", sans-serif;
}

p {
  line-height: 2em;
  letter-spacing: 1px;
}

/* --- コンテナ設定 --- */
.w-container {
  width: 96%;
  margin-left: 2%;
  margin-right: 2%;
}

img {
  max-width: 100%;
  height: auto;
  border-style: none;
}

/* 消してる要素 */
.sp-header, .sp-br, .p1-c-img2, .sp-fixed-nav {
  display: none;
}


/* ヘッダー */
#header {
  width: 100%;
  height: min(7.69vw, 100px);
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  background-color: #fff;
}

.header-container {
  width: 100%;
  height: 100%;
  padding-right: min(1.23vw, 16px);
}

.header-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.header-logo {
  display: flex;
  gap: min(2.15vw, 28px);
}

.header-logo img {
  width: min(9vw, 117px);
  height: auto;
}

.header-logo p {
  line-height: normal;
}

.header-logo p:first-child {
  font-size: clamp(10px, 3.07vw, 40px);
  font-family: "Klee One", cursive;
  padding-top: min(1.38vw, 18px);
}

.header-logo p:last-child {
  text-align: right;
  font-size: clamp(10px, 1.23vw, 16px);
}

.header-nav {
  display: flex;
  align-items: center; /* 縦方向を中央に固定 */
  gap: min(3.31vw, 43px);
}

.header-nav-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: min(1.08vw, 14px);
  height: auto;
}

.header-tel {
  text-align: right;
}

.header-tel a {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  font-size: clamp(10px, 1.85vw, 24px);
}

.header-tel a::before {
  content: "";
  display: inline-block;
  width: min(1.77vw, 23px);
  height: min(1.77vw, 23px);
  margin-right: min(0.54vw, 7px);
  background-image: url(../image/tel.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.header-nav nav ul {
  display: flex;
  gap: min(2.69vw, 35px);
}

.header-nav nav ul li {
  line-height: 1.2;
}

.header-nav nav ul li a {
  display: flex;
  flex-direction: column; /* 上下並びにする */
  align-items: center;    /* 中央に寄せる */
  justify-content: center;
  font-size: clamp(10px, 1.23vw, 16px);
  font-family: "Klee One", cursive;
  line-height: .8;         /* 余計な行間を消す */
}

.header-nav nav ul li a span {
  display: block;
  font-size: clamp(10px, 1.08vw, 14px);
  color: #044ED6;
  line-height: 1;
}

.header-contact {
  display: flex;
  align-items: center;
}

.header-contact a {
  display: flex;
  align-items: center;
  font-size: clamp(10px, 1.23vw, 16px);
  color: #fff;
  background-color: #044ED6;
  transition: all 0.3s;
  padding: min(0.85vw, 11px) min(1.08vw, 14px);
}

.header-contact a::before {
  content: "";
  display: inline-block;
  width: min(1.54vw, 20px);
  height: min(1.54vw, 20px);
  margin-right: min(1.54vw, 20px);
  background-image: url(../image/mail1.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.header-contact a:hover {
  background-color: #fff;
  color: #000;
}

.header-contact a:hover::before {
  background-image: url(../image/mail2.png);
}

/* トップ */
.main-v {
  position: relative;
  width: 100%;
  height: calc(100vh - min(7.69vw, 100px));
  margin-top: min(7.69vw, 100px);
  overflow: hidden;
}

.main-v-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.slide-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.slide-img.is-active {
  opacity: 1;
}

.slide1 { background-image: url(../image/top-back1.png); }
.slide2 { background-image: url(../image/top-back2.png); }
.slide3 { background-image: url(../image/top-back3.png); }

.main-v-container {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
}

.main-v-title h1 {
  color: #fff;
  font-size: clamp(10px, 3.69vw, 48px);
  text-align: center;
  filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.8));
}

.p1-a {
  background-color: #000;
}

.p1-a-container {
  padding-top: min(3.82vw, 42px);
  padding-bottom: min(5.09vw, 56px);
}

.p1-a-box {
  display: flex;
  gap: min(8.73vw, 96px);
}

.p1-a-title {
  width: min(13.64vw, 150px);
  height: min(13.64vw, 150px);
  position: relative;
  background-color: #fff;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-left: min(15vw, 165px);
}

.p1-a-title h2 {
  font-size: clamp(10px, 3.64vw, 40px);
  font-weight: 500;
  color: #044ED6;
  margin-top: min(2vw, 22px);
  line-height: 1;
}

.p1-a-title p {
  font-size: clamp(10px, 1.82vw, 20px);
  line-height: normal;
}

.p1-a-item {
  width: min(8.09vw, 89px);
  height: min(8.09vw, 89px);
  position: absolute;
  right: max(-3.55vw, -39px);
  bottom: max(-3.55vw, -39px);
  z-index: 10;
  background-color: #044ED6;
}

.p1-a-news {
  width: 100%;
  height: min(13.64vw, 150px);
  background-color: #fff;
  margin-top: min(1.27vw, 14px);
}

.p1-a-news-p {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: min(3.18vw, 35px);
  padding-left: min(6.36vw, 70px);
}

.p1-a-news-item {
  display: flex;
  gap: min(2.73vw, 30px); 
  font-size: clamp(10px, 1.45vw, 16px);
  line-height: 1.2;
  margin-bottom: min(1.82vw, 20px);
}

.p1-a-news-item:last-child {
  margin-bottom: 0;
}

.p1-b-container {
  padding-top: min(6.15vw, 80px);
  padding-bottom: min(6.15vw, 80px);
}

.p1-b-box {
  width: 100%;
  display: flex;
  gap: min(3.54vw, 46px);
}

.p1-b-img {
  width: 62.22vw;
  max-width: 896px;
  flex-shrink: 0;
}

.p1-b-img img {
  width: 100%;
  height: auto;
  display: block;
}

.p1-b-item {
  width: 100%;
}

.p1-b-text {
  width: min(32.15vw, 418px);
  margin: min(3.23vw, 42px) auto 0;
}

.p1-b-p {
  padding-top: min(5vw, 65px);
  padding-bottom: min(8.46vw, 110px);
}

.p1-b-p p {
  font-size: clamp(10px, 1.23vw, 16px);
}

.p1-c {
  background: linear-gradient(to bottom, #000 min(49.07vw, 687px), #3C3F48 min(49.07vw, 687px));
}

.p1-c-container {
  padding-top: min(4vw, 56px);
  padding-bottom: min(6.14vw, 86px);
}

.p1-c-box1 {
  max-width: 1340px;
  width: 95vw;
  display: flex;
  justify-content: center;
  gap: min(5.28vw, 74px);
  margin: 0 auto;
}

.p1-c-text {
  width: min(40.57vw, 568px);
  margin-top: min(1.42vw, 20px);
}

.p1-c .h2-title h2 {
  color: #fff;
}

.p1-c-p p {
  font-size: clamp(10px, 1.14vw, 16px);
  color: #fff;
  line-height: 1.8;
}

.p1-c-p p:first-child {
  margin-top: min(3.42vw, 48px);
  padding-bottom: min(1.71vw, 24px);
}

.p1-c-img img {
  width: min(45.71vw, 640px);
  height: auto;
  display: block;
}

.p1-c-box2 {
  max-width: 1340px;
  width: 93vw; /* 画面に対する全体の比率を維持 */
  margin: min(5.43vw, 76px) auto 0;
  display: flex;
  justify-content: center; /* 中央寄せ */
  /* 隙間も可変に設定 (1340px時に430px×3つ並ぶなら隙間は約25px) */
  gap: min(1.78vw, 25px); 
}

.p1-c-item2 {
  width: min(30.71vw, 430px);
  height: min(20.78vw, 291px);
  background-color: #fff;
  flex-shrink: 0;
}

.p1-c-item2 a {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: min(2.14vw, 30px) min(2.07vw, 29px);
  text-decoration: none;
  color: #333;
  position: relative;
}

.p1-c-item2 h3 {
  font-size: clamp(16px, 2.14vw, 30px);
  font-weight: 500;
  margin-bottom: min(1.42vw, 20px);
  line-height: 1;
  display: flex;
  align-items: center;
}

.p1-c-item2 h3::before {
  content: "";
  width: min(1.21vw, 17px);
  height: min(1.21vw, 17px);
  background-color: #044ED6;
  margin-top: min(0.71vw, 10px);
  margin-right: min(0.92vw, 13px);
  flex-shrink: 0;
}

.p1-c-item2 p {
  font-size: clamp(10px, 1.14vw, 16px);
  font-weight: 500;
  line-height: 1.6;
}

.p1-c-item2 img {
  width: min(7.35vw, 103px);
  height: auto;
  position: absolute;
  right: min(1.64vw, 23px);
  bottom: min(1vw, 14px);
}

.p1-c-box3 {
  padding-top: min(12.5vw, 150px);
}

.p1-c-item-box {
  width: min(89.16vw, 1070px);
  margin: min(5vw, 60px) auto min(4.16vw, 50px);
  display: flex;
  justify-content: space-between;
  gap: min(1.83vw, 22px);
}

.p1-c-item3 {
  width: min(28.5vw, 342px);
  flex-shrink: 0;
}

.p1-c-item3 img {
  width: 100%;
  height: min(19.66vw, 236px);
  object-fit: cover;
  display: block;
}

.p1-c-item3 p {
  background-color: #fff;
  display: flex;
  align-items: center;
  padding: min(1.25vw, 15px) min(1.91vw, 23px);
  font-size: clamp(12px, 1.33vw, 16px);
  color: #333;
}

.p1-c .h2-title h2 {
  color: #fff;
}

.h2-title span::after {
  background-color: #fff;
}

.p1-b.p1-d {
  background-color: #000;
}

.p1-d .p1-b-img {
  width: min(55.85vw, 754px);
}

.p1-d .h2-title h2 {
  color: #fff;
}

.p1-d .p1-b-p p {
  color: #fff;
}

.p1-d .p1-b-text {
  width: min(38.44vw, 519px);
}

.p1-d .p1-b-p p:first-child {
  margin-bottom: min(1.18vw, 16px);
}

.p1-e {
  background-color: #3C3F48;
}

.p1-e-container {
  padding-top: min(5.18vw, 70px);
  padding-bottom: min(5.18vw, 70px);
}

.p1-e-box {
  display: flex;
  justify-content: flex-end;
}

.p1-e-item {
  width: min(37.4vw, 505px);
  margin: 0 auto;
}

.p1-e .h2-title h2 {
  color: #fff;
}

.p1-e-table {
  width: 100%;
  margin: min(4.29vw, 58px) 0;
}

.p1-e-table table {
  width: 100%;
  border-collapse: collapse;
}

.p1-e-table table tr th, 
.p1-e-table table tr td {
  font-size: clamp(10px, 1.18vw, 16px);
  font-weight: 400;
  color: #fff;
  letter-spacing: 1px;
  padding-top: min(1.48vw, 20px);
  padding-bottom: min(1.48vw, 20px);
  border-bottom: 1px solid #fff;
}

.p1-e-table table tr th {
  width: min(12.59vw, 170px);
  text-align: left;
  padding-left: min(0.74vw, 10px);
}

.p1-e-img {
  width: min(56.74vw, 766px);
  height: auto;
  margin-top: min(14.44vw, 195px);
  flex-shrink: 0;
}


/* 業務内容 */
.p2-a {
  background-color: #3C3F48;
}

.p2-a-container {
  padding-top: min(6.18vw, 68px);
  padding-bottom: min(8vw, 88px);
}

.p2-a-text {
  text-align: center;
}

.p2-a-text h2 {
  font-size: clamp(10px, 2.18vw, 24px);
  color: #fff;
}

.p2-a-text p {
  font-size: clamp(10px, 1.45vw, 16px);
  color: #fff;
  margin-top: min(1.82vw, 20px);
  margin-bottom: min(7.09vw, 78px);
}

.p2-a-box {
  width: min(88vw, 968px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 auto;
}

.p2-a-item {
  width: min(28.18vw, 310px);
  height: min(6.36vw, 70px);
  background-color: #fff;
}

.p2-a-item a {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  font-size: clamp(10px, 1.82vw, 20px);
  padding-left: min(2.09vw, 23px);
  text-decoration: none;
  color: inherit;
}

.p2-a-item a::before {
  content: "";
  display: inline-block;
  width: min(1.55vw, 17px);
  height: min(1.55vw, 17px);
  background-color: #044ED6;
  margin-right: min(0.82vw, 9px);
  flex-shrink: 0;
}

.p2-title {
  background: linear-gradient(to bottom, #3C3F48 50%, #fff 50%);
  width: 100%;
}

.p2-title .p2-a-title {
  width: 90%;
  background-color: #000;
  clip-path: polygon(0% 0%, 95% 0%, 100% 50%, 95% 100%, 0% 100%);
  padding-top: min(1.54vw, 20px);
  padding-bottom: min(1.54vw, 20px);
}

.p2-title .h2-title {
  text-align: left;
  padding-left: min(15.38vw, 200px);
}

.p2-title .h2-title h2 {
  color: #fff;
}

.p2-title .h2-title span {
  color: #fff;
}

.p2-title .h2-title h2 {
  color: #fff;
}

.p2-title .h2-title span::after {
  left: 0;
  transform: none;
}

.p2-b-container {
  padding-top: min(5.45vw, 60px);
  padding-bottom: min(8.18vw, 90px);
}

.p2-b-box {
  display: flex;
  justify-content: center;
  align-items: center;
}

.p2-b-item {
  position: relative;
  width: min(10.45vw, 115px);
  height: auto;
  padding-top: min(3.64vw, 40px);
}

.p2-b-item::before {
  content: "";
  position: absolute;
  right: calc(min(0.73vw, 8px) * -1);
  bottom: calc(min(0.73vw, 8px) * -1);
  width: 100%;
  height: calc(100% - min(3.64vw, 40px));
  background-color: #c9d9ff;
  z-index: 1;
}

.step-num {
  position: absolute;
  top: 0;
  left: calc(min(1.36vw, 15px) * -1);
  width: clamp(40px, 6.36vw, 70px);
  height: clamp(40px, 6.36vw, 70px);
  background-color: #0084d3;
  color: #fff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: clamp(16px, 2.91vw, 32px);
  font-weight: bold;
  border: 3px solid #fff;
  z-index: 3;
}

.step-content {
  position: relative;
  width: 100%;
  height: min(30.91vw, 340px);
  background-color: #044ed6;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
}

.step-content p {
  color: #fff;
  font-size: clamp(14px, 2.36vw, 26px);
  writing-mode: vertical-rl;
  text-orientation: upright;
  letter-spacing: 0.1em;
}

.p2-b-img {
  width: min(3.64vw, 40px);
  height: auto;
  margin: min(1.82vw, 20px) min(1.18vw, 13px) 0 min(2.73vw, 30px);
}

.p2-c {
  background-color: #3C3F48;
}

.p2-c-container {
  padding-top: min(6vw, 78px);
  padding-bottom: min(30.77vw, 400px);
}

.p2-c-box {
  width: min(86.92vw, 1130px);
  margin: 0 auto min(11.54vw, 150px);
}

.p2-c .h2-title h2 {
  color: #fff;
  font-size: clamp(20px, 2.31vw, 30px);
}

.p2-c-item {
  margin-top: min(4.46vw, 58px);
}

.p2-c-item p {
  font-size: clamp(14px, 1.23vw, 16px);
  color: #fff;
  margin-bottom: min(4.46vw, 58px);
}

.p2-c-img {
  display: flex;
  justify-content: space-around;
}

.p2-c-img img {
  width: min(23.23vw, 302px);
  height: auto;
}

[id^="act"] {
  scroll-margin-top: min(9.23vw, 120px);
}

/* 会社概要 */
.p3-a {
  background-color: #3C3F48;
}

.p3-a-container {
  width: min(93.08vw, 1210px);
  padding-top: min(7.69vw, 100px);
  padding-bottom: min(7.69vw, 100px);
  margin: 0 auto;
}

.p3-a .h2-title h2 {
  color: #fff;
  font-size: clamp(20px, 2.31vw, 30px);
}

.p3-a-box {
  display: flex;
  justify-content: space-between;
  margin-top: min(4.62vw, 60px);
}

.p3-a-table {
  width: min(38.46vw, 500px);
}

.p3-a-table table {
  width: 100%;
  border-collapse: collapse;
}

.p3-a-table table tr th, 
.p3-a-table table tr td {
  font-size: clamp(10px, 1.23vw, 16px);
  font-weight: 400;
  color: #fff;
  padding-top: min(1.15vw, 15px);
  padding-bottom: min(1.15vw, 15px);
  border-bottom: 1px solid #fff;
}

.p3-a-table table tr th {
  width: min(13.08vw, 170px);
  text-align: left;
  padding-left: min(0.77vw, 10px);
}

.p3-a-img {
  width: min(49.23vw, 640px);
  height: auto;
  margin-top: min(0.77vw, 10px);
}

.p3-a-img2 {
  width: min(65.18vw, 717px);
  height: auto;
  margin: min(7.27vw, 80px) auto 0;
}

.p3-b-container {
  padding-top: min(9.75vw, 117px);
  padding-bottom: min(27.5vw, 330px);
}

.p3-b-item {
  width: min(33.33vw, 400px);
  margin: min(2.83vw, 34px) auto min(1.67vw, 20px);
}

.p3-b-item p {
  font-size: clamp(10px, 1.33vw, 16px);
}

.p3-b-item p:first-child::before {
  content: "";
  display: inline-block;
  width: min(2.17vw, 26px);
  height: min(2.17vw, 26px);
  background-image: url(../image/part3.png);
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: middle;
  margin-right: min(0.67vw, 8px);
}

.p3-b-item p:nth-child(2) {
  padding-left: min(2.83vw, 34px);
}

.p3-b-map {
  text-align: center;
}

.p3-b-map iframe {
  width: min(80.83vw, 970px);
  height: min(30.58vw, 367px);
}


/* 施工実績 */
.p4-a {
  background-color: #3C3F48;
}

.p4-a-container {
  padding-top: min(8.08vw, 97px);
  padding-bottom: min(13.83vw, 166px);
}

.p4-a .h2-title h2 {
  color: #fff;
  font-size: clamp(20px, 2.5vw, 30px);
}

.p4-a-text {
  width: min(57.25vw, 687px);
  margin: min(5vw, 60px) auto 0;
}

.p4-a-text p {
  font-size: clamp(10px, 1.33vw, 16px);
  color: #fff;
}

.p4-a-box3 {
  width: 100%;
  margin-top: min(8.75vw, 105px);
}

.p4-a-item-box {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: min(3.33vw, 40px) 0;
  width: min(91.67vw, 1100px);
  margin: 0 auto;
}

.p4-a-item3 {
  width: min(28.5vw, 342px);
}

.p4-a-item3 img {
  width: 100%;
  height: auto;
  display: block;
}

.p4-a-item3 p {
  font-size: clamp(10px, 1.33vw, 16px);
  color: #000;
  background-color: #fff;
  padding: min(0.67vw, 8px) 0 min(0.67vw, 8px) min(2.25vw, 27px);
}

.p4-b {
  background-color: #000;
}

.p4-b-container {
  padding-top: min(8.08vw, 105px);
  padding-bottom: min(12.92vw, 168px);
}

.p4-b .h2-title h2 {
  color: #fff;
  font-size: clamp(20px, 2.31vw, 30px);
}

.p4-b-img-wrapper {
  overflow: hidden;
  margin-top: min(4.62vw, 60px);
}

.p4-b-img {
  display: flex;
  gap: min(1.23vw, 16px);
  width: max-content; 
  animation: loop-slide 80s linear infinite;
}

.p4-b-img img {
  width: min(33.69vw, 438px);
  height: auto;
  flex-shrink: 0;
  display: block;
}

@keyframes loop-slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-50% - min(0.615vw, 8px)));
  }
}


/* 求人情報 */
.p5-a {
  background-color: #3C3F48;
}

.p5-a-container {
  padding-top: min(8.08vw, 105px);
  padding-bottom: min(11.31vw, 147px);
}

.p5-a-title {
  text-align: center;
}

.p5-a-title h2 {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: min(0.77vw, 10px);
  font-size: clamp(20px, 2.31vw, 30px);
  font-weight: 400;
  color: #fff;
}

.p5-a-title h2::before {
  content: "";
  display: inline-block;
  width: min(3.38vw, 44px);
  height: min(3.38vw, 44px);
  background-image: url(../image/part4.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.p5-a-title h2::after {
  content: "";
  display: inline-block;
  width: min(3.38vw, 44px);
  height: min(3.38vw, 44px);
  background-image: url(../image/part5.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.p5-a-box {
  display: flex;
  gap: min(6.69vw, 87px);
  margin-top: min(5.69vw, 74px);
}

.p5-a-img {
  width: min(53.93vw, 755px);
  height: auto;
}

.p5-a-item {
  width: min(37.14vw, 520px);
  margin: min(2.57vw, 36px) auto 0;
}

.p5-a-item h3 {
  font-size: clamp(16px, 1.85vw, 24px);
  font-weight: 400;
  color: #fff;
}

.p5-a-item p {
  font-size: clamp(10px, 1.23vw, 16px);
  color: #fff;
  margin-top: min(2.31vw, 30px);
}

.p5-b {
  background-color: #000;
}

.p5-b-container {
  padding-top: min(8.75vw, 105px);
  padding-bottom: min(40.58vw, 487px);
}

.p5-b .h2-title h2 {
  color: #fff;
  font-size: clamp(20px, 2.5vw, 30px);
}

.p5-b-table {
  width: min(66.25vw, 795px);
  margin: min(7.5vw, 90px) auto min(6vw, 72px);
}

.p5-b-table table {
  width: 100%;
  background-color: #fff;
  border-collapse: collapse;
}

.p5-b-table table tr th,
.p5-b-table table tr td {
  font-size: clamp(10px, 1.33vw, 16px);
  font-weight: 400;
  padding-top: min(1.67vw, 20px);
  padding-bottom: min(1.67vw, 20px);
  border-bottom: 1px solid #000;
}

.p5-b-table table tr th {
  width: min(19.83vw, 238px);
  text-align: left;
  vertical-align: top;
  padding-left: min(7.33vw, 88px);
  border-right: 1px solid #000;
}

.p5-b-table table tr td {
  padding-left: min(5.83vw, 70px);
}

.p5-b-text {
  text-align: center;
  margin-bottom: min(3.92vw, 47px);
}

.p5-b-text p {
  font-size: clamp(10px, 1.67vw, 20px);
  color: #fff;
}

.p5-b-link {
  text-align: center;
}

.p5-b-link a {
  width: min(17.33vw, 208px);
  height: min(3.83vw, 46px);
  display: inline-block;
  background-image: url(../image/botan3.png);
  background-repeat: no-repeat;
  background-size: cover;
}


/* お問い合わせ */
.p6-a {
  background-color: #3C3F48;
}

.p6-a-container {
  padding-top: min(8.33vw, 100px);
  padding-bottom: min(8.33vw, 100px);
}

.p6-a-text {
  text-align: center;
}

.p6-a-text h2 {
  font-size: clamp(10px, 1.67vw, 20px);
  font-weight: 400;
  color: #fff;
}

.p6-a-text p {
  font-size: clamp(10px, 1.33vw, 16px);
  color: #fff;
  margin-top: min(0.83vw, 10px);
}

.p6-a-link {
  text-align: center;
  margin-top: min(4.5vw, 54px);
}

.p6-a-link a {
  width: min(19.83vw, 238px);
  height: min(4.08vw, 49px);
  display: inline-block;
  background-image: url(../image/botan4.png);
  background-repeat: no-repeat;
  background-size: cover;
}

.p6-b {
  background-color: #000;
}

.p6-b-container {
  padding-top: min(8.33vw, 100px);
  padding-bottom: min(51.67vw, 620px);
}

.p6-b .h2-title h2 {
  color: #fff;
}

.p6-b-box {
  width: min(73.33vw, 880px);
  background-color: #fff;
  margin: min(4.17vw, 50px) auto 0;
  padding: min(3.83vw, 46px) min(5.58vw, 67px) min(4.75vw, 57px);
  box-sizing: border-box;
}

.contact-table {
  width: 100%;
  border-collapse: collapse;
}

.contact-table tr {
  border-bottom: 1px solid #0000ff;
}

.contact-table th {
  width: min(21.67vw, 260px);
  text-align: left;
  vertical-align: top;
  padding: min(2.08vw, 25px) 0 min(2.08vw, 25px) min(1.17vw, 14px);
  font-size: clamp(10px, 1.33vw, 16px);
  font-weight: 400;
  color: #333;
}

.required {
  color: #ff0000;
  margin-left: 8px;
  font-size: 0.8em;
}

.contact-table td {
  padding: min(2.08vw, 25px) 0;
}

.wpcf7-form-control:not([type="radio"]):not([type="submit"]) {
  width: min(39.17vw, 470px);
  height: min(3.42vw, 41px);
  background-color: #F6F6F6;
  border: 1px solid #BEBEBE;
  border-radius: 10px;
  padding: 0 15px;
  box-sizing: border-box;
  font-size: clamp(10px, 1.33vw, 16px);
}

textarea.wpcf7-form-control {
  height: min(12.5vw, 150px) !important;
  padding: 10px 15px;
}

.wpcf7-radio {
  display: flex;
  gap: 20px;
  font-size: clamp(10px, 1.33vw, 16px);
  border: none !important;
  background: none !important;
  padding: 0 !important;
}

.wpcf7-radio .wpcf7-list-item {
  margin: 0;
  border: none !important;
  background: none !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.wpcf7-radio .wpcf7-list-item-label {
  margin-left: 5px;
  border: none !important;
  background: none !important;
  padding: 0 !important;
}

.wpcf7-radio input[type="radio"] {
  margin: 0;
  border: none !important;
  background: none !important;
  box-shadow: none !important;
}

.contact-submit {
  text-align: center;
  margin-top: min(4.17vw, 50px);
}

.contact-submit [type="submit"] {
  width: min(19vw, 192px);
  height: min(4.17vw, 50px);
  background-image: url(../image/botan5.png);
  background-repeat: no-repeat;
  background-size: contain;
  background-color: transparent;
  border: none;
  cursor: pointer;
  text-indent: -9999px;
  transition: opacity 0.3s;
}

.contact-submit [type="submit"]:hover {
  opacity: 0.8;
}

.wpcf7-spinner {
  display: none;
}

/* お知らせ */
.p7-a-container {
  width: min(83.33vw, 1000px);
  margin: 0 auto;
  padding: min(8.33vw, 100px) 0;
}

.p7-a-header h1 {
  font-size: clamp(18px, 2.67vw, 32px);
  margin-bottom: min(3.33vw, 40px);
  color: #333;
  text-align: center;
}

.p7-a-image {
  margin-bottom: min(4.17vw, 50px);
  text-align: center;
}

.p7-a-image img {
  width: min(41.67vw, 500px);
  height: auto;
  border-radius: 10px;
  display: block;
  margin: 0 auto;
}

.p7-a-content {
  font-size: clamp(10px, 1.67vw, 20px);
  line-height: 1.8;
  color: #333;
  margin-bottom: min(6.67vw, 80px);
}

.p7-a-content p {
  margin-top: min(4.17vw, 50px);
}

.p7-a-btn {
  text-align: center;
}

.p7-a-btn a {
  display: inline-block;
  width: min(20vw, 240px);
  padding: min(1.25vw, 15px) 0;
  background-color: #333;
  color: #fff;
  text-decoration: none;
  font-size: clamp(10px, 1.17vw, 14px);
  border-radius: 5px;
  transition: opacity 0.3s;
}

.wp-block-image img {
  width: min(41.67vw, 500px);
  height: auto;
}

.p7-a-btn a:hover {
  opacity: 0.8;
}

.wp-block-image {
  text-align: center;
}


/* 共通 */
.h2-title {
  text-align: center;
}

.h2-title h2 {
  font-size: clamp(10px, 3.08vw, 40px);
  font-weight: 500;
  letter-spacing: 2px;
  margin-bottom: min(1.54vw, 20px);
} 

.h2-title span {
  font-size: clamp(10px, 2.31vw, 30px);
  font-weight: 500;
  color: #044ED6;
  position: relative;
  display: inline-block;
  margin-bottom: min(1.15vw, 15px); 
}

.h2-title span::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: min(4.46vw, 58px);
  height: 4px;
  background-color: #044ED6;
}

.link-botan, .link-botan2 {
  text-align: center;
}

/* ボタン1 */
.link-botan a {
  width: min(15vw, 195px);
  height: min(3.54vw, 46px);
  display: inline-block;
  background-image: url(../image/botan1.png);
  background-repeat: no-repeat;
  background-size: 100% auto;
} 

/* ボタン２ */
.link-botan2 a {
  width: min(15vw, 195px);
  height: min(3.54vw, 46px);
  display: inline-block;
  background-image: url(../image/botan2.png);
  background-repeat: no-repeat;
  background-size: 100% auto;
} 

/* ボタンホバー */
.link-botan a:hover, .link-botan2 a:hover {
  background-image: url(../image/botan-hover.png);
}


/* 下層共通 */
.sub-v {
  width: 100%;
  height: min(37.5vw, 450px);
  margin-top: min(7.69vw, 100px);
  background-image: url(../image/sub-back.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.sub-v-container {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.sub-v-title h1 {
  color: #fff;
  font-size: clamp(10px, 4.17vw, 50px);
  font-weight: 400;
  font-family: "Noto Serif JP", serif;
  letter-spacing: 2px;
  line-height: 1;
}

.sub-v-title p {
  color: #fff;
  font-size: clamp(10px, 2.67vw, 32px);
  font-family: "Noto Serif JP", serif;
  line-height: normal;
}


/* フッター */
.footer-contact {
  text-align: center;
  background-image: url(../image/footer-back1.png);
  background-repeat: no-repeat;
  background-size: cover;
  padding-top: min(3.08vw, 40px);
  padding-bottom: min(4.92vw, 64px);
}

.footer-contact .h2-title h2, .footer-contact p, .footer-contact a {
  color: #fff;
}

.footer-contact p {
  font-size: clamp(10px, 1.15vw, 15px);
  margin-top: min(2.69vw, 35px);
  margin-bottom: min(2.69vw, 35px);
}

.footer-link {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: min(8.46vw, 110px);
}

.footer-link a {
  width: min(18.31vw, 238px);
  height: min(3.77vw, 49px);
  display: inline-block;
  border: 1px solid #fff;
  border-radius: 50px;
}

.footer-link .footer-tel {
  font-size: clamp(10px, 1.85vw, 24px);
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-link .footer-tel::before {
  content: "";
  display: inline-block;
  width: min(1.62vw, 21px);
  height: min(1.62vw, 21px);
  background-image: url(../image/tel2.png);
  background-repeat: no-repeat;
  background-size: contain;
  margin-right: min(1.15vw, 15px);
  flex-shrink: 0;
}

.footer-link .footer-mail {
  font-size: clamp(10px, 1.23vw, 16px);
  display: flex;
  justify-content: center;
  align-items: center;
}

.footer-link .footer-mail::before {
  content: "";
  display: inline-block;
  width: min(1.77vw, 23px);
  height: min(1.77vw, 23px);
  background-image: url(../image/mail1.png);
  background-repeat: no-repeat;
  background-size: contain;
  margin-right: min(1.15vw, 15px);
  flex-shrink: 0;
}

.footer-map iframe {
  width: 100%;
  height: min(28.23vw, 367px);
}

.footer-nav {
  display: flex;
  gap: 9.64vw;
  padding-top: min(4.23vw, 55px);
  padding-bottom: min(3.46vw, 45px);
}

.footer-text {
 padding-left: 6.03vw;
}

.footer-text p {
  line-height: normal;
}

.footer-text p:first-child {
  font-size: clamp(10px, 3.08vw, 40px);
  font-family: "Klee One", cursive;
}

.footer-text p:last-child {
  text-align: right;
  font-size: clamp(10px, 1.23vw, 16px);
}

.footer-nav nav ul {
  display: flex;
  gap: min(4.46vw, 58px);
  margin-top: min(0.77vw, 10px);
}

.footer-nav nav ul li {
  text-align: center;
}

.footer-nav nav ul a {
  font-size: clamp(10px, 1.23vw, 16px);
  font-family: "Klee One", cursive;
}

.footer-nav nav ul a span {
  font-size: clamp(10px, 1.08vw, 14px);
  color: #044ED6;
}

.copy-right {
  text-align: center;
  background-color: #000;
  padding-top: min(1.54vw, 20px);
  padding-bottom: min(1.54vw, 20px);
}

.copy-right p {
  font-size: clamp(10px, 1.23vw, 16px);
  color: #fff;
}

.top-botan {
  position: fixed;
  right: min(1.67vw, 20px);
  bottom: min(8.92vw, 107px);
  width: min(5.92vw, 71px);
  height: min(5.92vw, 71px);
  z-index: 999;
}

.top-botan a {
  display: block;
  width: 100%;
  height: 100%;
}

.top-botan img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}





@media screen and (max-width: 767px) {
  /* 全体 */
  #header {
    display: none;
  }

  .sp-br {
    display: block;
  }

  /* ヘッダー */
 .sp-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: #fff;
    border-bottom: 1px solid #fff;
    z-index: 9999;
    display: block; /* スマホでは表示 */
  }

  .sp-header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    padding: 0 15px;
  }

  .sp-header-logo a {
    display: flex;
    align-items: flex-end;
  }

  .sp-header-p {
    text-align: right;
  }

  .sp-header-logo a p:first-child {
    font-size: 20px;
    font-family: "Klee One", cursive;
    line-height: normal;
  }

  .sp-header-logo a p:last-child {
    font-size: 12px;
    line-height: normal;
  }

  .sp-header-logo a img {
    height: 50px;
    width: 66px;
  }

  /* ハンバーガーボタン全体 */
  .sp-menu-btn {
    position: relative;
    width: 30px;
    height: 24px;
    background: none;
    border: none;
    z-index: 1000;
    cursor: pointer;
  }

  /* 3本の線の共通設定 */
  .sp-menu-btn span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #044ED6;
    transition: all 0.3s; /* 全プロパティをアニメーション対象に */
  }

  /* 1本目：上 */
  .sp-menu-btn span:nth-child(1) {
    top: 0;
  }

  /* 2本目：真ん中（ここをスッキリさせました） */
  .sp-menu-btn span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
  }

  /* 3本目：下 */
  .sp-menu-btn span:nth-child(3) {
    bottom: 0;
  }

  /* ×印に変形（中央で回転） */
  .sp-menu-btn.is-active span:nth-child(1) {
    top: 50%;
    /* translateで位置を微調整しつつ回転 */
    transform: translateY(-50%) rotate(45deg);
  }

  .sp-menu-btn.is-active span:nth-child(2) {
    opacity: 0; /* 真ん中の線を消す */
  }

  .sp-menu-btn.is-active span:nth-child(3) {
    top: 50%;
    /* 1本目と完全に同じ位置で逆回転 */
    transform: translateY(-50%) rotate(-45deg);
  }

  /* 全画面メニュー */
  .sp-header-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background-color: #fff;
    transition: 0.4s;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999;
  }

  .sp-header-nav.is-active {
    right: 0;
  }

  .sp-nav-list {
    list-style: none;
    text-align: center;
  }

  .sp-nav-list li { margin: 25px 0; }
  .sp-nav-list li a {
    color: #000;
    text-decoration: none;
    font-size: 16px;
  }

  .sp-nav-list li a span {
    font-size: 12px;
    color: #044ED6;
  }

  /* トップ */
  .main-v {
    position: relative;
    width: 100%;
    height: calc(100vh - 50px);
    margin-top: 50px;
    overflow: hidden;
  }

  .main-v-title h1 {
    text-align: left;
    font-size: 30px;
    line-height: 2.5em;
    letter-spacing: 4px;
  }

  .p1-a-container {
    width: 92%;
    padding-top: 50px;
    padding-bottom: 50px;
    margin: 0 auto;
  }

  .p1-a-box {
    flex-direction: column;
    align-items: center;
    gap: 66px;
  }

  .p1-a-title {
    width: 150px;
    height: 150px;
    margin-left: 0;
  }

  .p1-a-title h2 {
    font-size: 40px;
    margin-top: 22px;
  }

  .p1-a-title p {
    font-size: 20px;
  }

  .p1-a-item {
    width: 89px;
    height: 89px;
    right: -39px;
    bottom: -39px;
  }

  .p1-a-news {
    width: 100%;
    height: 119px;
    margin-top: 0;
  }

  .p1-a-news-p {
    padding-top: 20px;
    padding-left: 40px;
  }

  .p1-a-news-item {
    flex-direction: column;
    gap: 15px; 
    font-size: 16px;
    margin-bottom: 0;
  }

  .p1-a-news-item:last-child {
    margin-bottom: 0;
  }

  .p1-b-container {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .p1-b-box {
    flex-direction: column-reverse;
    gap: 40px;
  }

  .p1-b-img {
    width: 100%;
    max-width: 100%;
  }

  .p1-b-img img {
    width: 100%;
    height: auto;
    display: block;
  }

  .p1-b-item {
    width: 92%;
    margin: 0 auto;
  }

  .p1-b-text {
    width: 100%;
    margin: 0;
  }

  .p1-b-p {
    padding-top: 40px;
    padding-bottom: 40px;
  }

  .p1-b-p p {
    font-size: 16px;
  }

  .p1-c {
    background: linear-gradient(to bottom, #000 50%, #3C3F48 50%);
  }

  .p1-c-container {
    width: 92%;
    padding-top: 60px;
    padding-bottom: 60px;
    margin: 0 auto;
  }

  .p1-c-box1 {
    max-width: 100%;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin: 0 auto;
  }

  .p1-c-text {
    width: 100%;
    margin-top: 35px;
  }

  .p1-c-p p {
    font-size: 16px;
  }

  .p1-c-p p:first-child {
    margin-top: 0;
    padding-bottom: 20px;
  }

  .p1-c-img {
    display: none;
  }

  .p1-c-img2 {
    max-width: 500px;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  .p1-c-box2 {
    max-width: 100%;
    width: 100%;
    margin: 65px auto 0;
    flex-direction: column;
    align-items: center;
    gap: 32px; 
  }

  .p1-c-item2 {
    width: 100%;
    height: auto;
  }

  .p1-c-item2 a {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 18px 27px;
  }

  .p1-c-item2 h3 {
    font-size: 26px;
    margin-bottom: 17px;
  }

  .p1-c-item2 h3::before {
    content: "";
    width: 17px;
    height: 17px;
    margin-top: 5px;
    margin-right: 10;
  }

  .p1-c-item2 p {
    font-size: 16px;
    padding-bottom: 30px;
  }

  .p1-c-item2 img {
    width: 103px;
    right: 27px;
    bottom: 18px;
  }

  .p1-c-box3 {
    padding-top: 95px;
  }

  .p1-c-item-box {
    width: 100%;
    margin: 27px auto 60px;
    flex-direction: column;
    align-items: center;
    gap: 25px;
  }

  .p1-c-item3 {
    width: 342px;
  }

  .p1-c-item3 img {
    width: 100%;
    height: 236px;
  }

  .p1-c-item3 p {
    padding: 15px 23px;
    font-size: 16px;
  }

  .p1-d .p1-b-img {
    width: 100%;
  }

  .p1-d .p1-b-text {
    width: 100%;
  }

  .p1-d .p1-b-p p:first-child {
    margin-bottom: 18px
  }

  .p1-e-container {
    width: 92%;
    padding-top: 50px;
    padding-bottom: 50px;
    margin: 0 auto;
  }

  .p1-e-box {
    flex-direction: column;
    align-items: center;
  }

  .p1-e-item {
    width: 100%;
  }

  .p1-e-table {
    width: 100%;
    margin: 38px 0;
  }

  .p1-e-table table tr th, 
  .p1-e-table table tr td {
    display: block;
    font-size: 16px;
    padding-top: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #fff;
  }

  .p1-e-table table tr th {
    width: 100%;
    padding-left: 0;
  }

  .p1-e-img {
    max-width: 500px;
    width: 100%;
    margin-top: 60px;
  }


  /* 業務内容 */
  .p2-a-container {
    width: 92%;
    padding-top: 50px;
    padding-bottom: 50px;
    margin: 0 auto;
  }

  .p2-a-text h2 {
    font-size: 20px;
  }

  .p2-a-text p {
    text-align: left;
    font-size: 15px;
    margin-top: 20px;
    margin-bottom: 40px;
  }

  .p2-a-box {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin: 0 auto;
  }

  .p2-a-item {
    width: 310px;
    height: 70px;
  }

  .p2-a-item a {
    font-size: 20px;
    padding-left: 23px;
  }

  .p2-a-item a::before {
    width: 17px;
    height: 17px;
    margin-right: 9px;
  }

  .p2-title {
    background: linear-gradient(to bottom, #3C3F48 50%, #fff 50%);
    width: 100%;
  }

  .p2-title .p2-a-title {
    width: 90%;
    background-color: #000;
    clip-path: polygon(0% 0%, 95% 0%, 100% 50%, 95% 100%, 0% 100%);
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .p2-title .h2-title {
    padding-left: 50px;
  }

  .p2-b-container {
    padding-top: min(5.45vw, 60px);
    padding-bottom: min(8.18vw, 90px);
  }

  .p2-b-box {
    flex-direction: column;
    align-items: center;
  }

  .p2-b-item {
    position: relative;
    width: 300px;
    height: auto;
    padding-top: 0;
    padding-left: 20px; /* この20px分、背景を短くする必要がある */
    margin-bottom: 20px;
    box-sizing: border-box; /* 幅の計算を分かりやすくするため推奨 */
  }

  .p2-b-item::before {
    content: "";
    position: absolute;
    /* 右と下にはみ出させる */
    right: -6px;
    bottom: -6px;
    
    /* 全体の幅(100%)から、パディング分の20pxを引く */
    width: calc(100% - 20px); 
    height: 100%;
    
    background-color: #c9d9ff;
    z-index: 1;
  }

  .step-num {
    /* 数字の位置を左上に調整 */
    top: -10px;
    left: 0;
    width: 45px;
    height: 45px;
    font-size: 18px;
    border-width: 2px;
  }

  .step-content {
    /* 縦長から横長に変更 */
    width: 100%;
    height: auto; 
    padding: 20px 15px 20px 30px; /* 左側に少し多めに余白 */
    justify-content: flex-start; /* 左寄せ */
  }

  .step-content p {
    /* 横書きに変更 */
    writing-mode: horizontal-tb;
    text-orientation: mixed;
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0.05em;
  }

  .p2-b-img {
    width: 20px;
    height: auto;
    margin: 0 0 10px;
    transform: rotate(90deg);
  }

  .p2-c-container {
    width: 92%;
    padding-top: 50px;
    padding-bottom: 100px;
    margin: 0 auto;
  }

  .p2-c-box {
    width: 100%;
    margin: 0 auto 75px;
  }

  .p2-c .h2-title h2 {
    font-size: 24px;
  }

  .p2-c-item {
    margin-top: 25px;
  }

  .p2-c-item p {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .p2-c-img {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .p2-c-img img {
    max-width: 300px;
    width: 100%;
    height: auto;
  }

  [id^="act"] {
    scroll-margin-top: 70px;
  }


  /* 会社概要 */
  .p3-a-container {
    width: 92%;
    padding-top: 50px;
    padding-bottom: 50px;
    margin: 0 auto;
  }

  .p3-a .h2-title h2 {
    font-size: 30px;
  }

  .p3-a-box {
    flex-direction: column;
    align-items: center;
    gap: 30px;
    margin-top: 30px;
  }

  .p3-a-table {
    width: 100%;
  }

  .p3-a-table table tr th, 
  .p3-a-table table tr td {
    display: block;
    font-size: 16px;
    padding-top: 15px;
    padding-bottom: 15px;
  }

  .p3-a-table table tr th {
    width: 100%;
    padding-left: 0;
  }

  .p3-a-img {
    max-width: 500px;
    width: 100%;
    height: auto;
    margin-top: 0;
  }

  .p3-a-img2 {
    max-width: 500px;
    width: 100%;
    height: auto;
    margin: 44px auto 0;
  }

  .p3-b-container {
    width: 92%;
    padding-top: 50px;
    padding-bottom: 150px;
    margin: 0 auto;
  }

  .p3-b-item {
    max-width: 350px;
    width: 100%;
    margin: 20px auto 20px;
  }

  .p3-b-item p {
    font-size: 14px;
  }

  .p3-b-item p:first-child::before {
    content: "";
    display: inline-block;
    width: 15px;
    height: 15px;
    background-image: url(../image/part3.png);
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
    margin-right: 4px;
  }

  .p3-b-item p:nth-child(2) {
    padding-left: 20px;
  }

  .p3-b-map iframe {
    width: 100%;
    height: 367px;
  }


  /* 施工実績 */
  .p4-a-container {
    width: 92%;
    padding-top: 50px;
    padding-bottom: 80px;
    margin: 0 auto;
  }

  .p4-a .h2-title h2 {
    font-size: 30px;
  }

  .p4-a-text {
    width: 100%;
    margin: 30px auto 0;
  }

  .p4-a-text p {
    font-size: 16px;
    color: #fff;
  }

  .p4-a-box3 {
    width: 100%;
    margin-top: 50px;
  }

  .p4-a-item-box {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    margin: 0 auto;
  }

  .p4-a-item3 {
    width: 342px;
  }

  .p4-a-item3 img {
    width: 100%;
    height: auto;
    display: block;
  }

  .p4-a-item3 p {
    font-size: 16px;
    padding: 8px 0 8px 15px;
  }

  .p4-b-container {
    padding-top: 50px;
    padding-bottom: 80px;
  }

  .p4-b .h2-title h2 {
    font-size: 30px;
  }

  .p4-b-img-wrapper {
    margin-top: 30px;
  }

  .p4-b-img {
    gap: 10px;
    width: max-content; 
    animation: loop-slide 80s linear infinite;
  }

  .p4-b-img img {
    width: 200px;
    height: auto;
    flex-shrink: 0;
    display: block;
  }

  @keyframes loop-slide {
    from {
      transform: translateX(0);
    }
    to {
      transform: translateX(calc(-50% - min(0.615vw, 8px)));
    }
  }


  /* 求人情報 */
  .p5-a-container {
    padding-top: 50px;
    padding-bottom: 70px;
  }

  .p5-a-title h2 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 20px;
  }

  .p5-a-title h2::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url(../image/part4.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }

  .p5-a-title h2::after {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url(../image/part5.png);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }

  .p5-a-box {
    flex-direction: column-reverse;
    align-items: center;
    gap: 30px;
    margin-top: 40px;
  }

  .p5-a-img {
    width: 100%;
    height: auto;
  }

  .p5-a-item {
    width: 92%;
    margin: 0 auto 0;
  }

  .p5-a-item h3 {
    font-size: 18px;
    font-weight: 400;
    color: #fff;
  }

  .p5-a-item p {
    font-size: 14px;
    color: #fff;
    margin-top: 15px;
  }

  .p5-b-container {
    padding-top: 50px;
    padding-bottom: 240px;
  }

  .p5-b .h2-title h2 {
    font-size: 30px;
  }

  .p5-b-table {
    width: 92%;
    margin: 40px auto 30px;
  }

  .p5-b-table table tr th,
  .p5-b-table table tr td {
    font-size: 15px;
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .p5-b-table table tr th {
    width: 30%;
    padding-left: 20px;
  }

  .p5-b-table table tr td {
    padding-left: 20px;
  }

  .p5-b-text {
    margin-bottom: 30px;
  }

  .p5-b-text p {
    font-size: 20px;
  }

  .p5-b-link a {
    width: 208px;
    height: 46px;
    display: inline-block;
    background-image: url(../image/botan3.png);
    background-repeat: no-repeat;
    background-size: cover;
  }


  /* お問い合わせ */
  .p6-a-container {
    width: 92%;
    padding-top: 50px;
    padding-bottom: 50px;
    margin: 0 auto;
  }

  .p6-a-text h2 {
    font-size: 20px;
  }

  .p6-a-text p {
    font-size: 15px;
    margin-top: 10px;
  }

  .p6-a-link {
    margin-top: 25px;
  }

  .p6-a-link a {
    width: 238px;
    height: 49px;
    display: inline-block;
    background-image: url(../image/botan4.png);
    background-repeat: no-repeat;
    background-size: cover;
  }

  .p6-b-container {
    padding-top: 50px;
    padding-bottom: 300px;
  }

  .p6-b-box {
    width: 92%;
    margin: 30px auto 0;
    padding: 30px 20px 30px;
    box-sizing: border-box;
  }

  .contact-table th, .contact-table td {
    display: block;
  }

  .contact-table th {
    width: 100%;
    padding: 10px 0 5px 7px;
    font-size: 16px;
  }

  .required {
    margin-left: 8px;
    font-size: 16px;
  }

  .contact-table td {
    padding: 0 0 10px 7px;
  }

  .wpcf7-form-control:not([type="radio"]):not([type="submit"]) {
    width: 100%;
    height: 40px;
    background-color: #F6F6F6;
    border: 1px solid #BEBEBE;
    border-radius: 10px;
    padding: 0 15px;
    box-sizing: border-box;
    font-size: 14px;
  }

  textarea.wpcf7-form-control {
    height: 150px !important;
    padding: 10px 15px;
  }

  .wpcf7-radio {
    display: flex;
    gap: 20px;
    font-size: 16px;
    border: none !important;
    background: none !important;
    padding: 0 !important;
  }

  .wpcf7-radio .wpcf7-list-item {
    margin: 0;
    border: none !important;
    background: none !important;
    padding: 0 !important;
    box-shadow: none !important;
  }

  .wpcf7-radio .wpcf7-list-item-label {
    margin-left: 5px;
    border: none !important;
    background: none !important;
    padding: 0 !important;
  }

  .wpcf7-radio input[type="radio"] {
    margin: 0;
    border: none !important;
    background: none !important;
    box-shadow: none !important;
  }

  .contact-submit {
    text-align: center;
    margin-top: 25px;
  }

  .contact-submit [type="submit"] {
    width: 192px;
    height: 50px;
    background-image: url(../image/botan5.png);
    background-repeat: no-repeat;
    background-size: contain;
    background-color: transparent;
    border: none;
    cursor: pointer;
    text-indent: -9999px;
    transition: opacity 0.3s;
  }


  /* お知らせ */
  .p7-a-container {
    width: 92%;
    margin: 0 auto;
    padding: 50px 0;
  }

  .p7-a-header h1 {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .p7-a-image {
    margin-bottom: 30px;
  }

  .p7-a-image img {
    max-width: 300px;
    width: 100%;
  }

  .p7-a-content {
    font-size: 15px;
    margin-bottom: 40px;
  }

  .p7-a-content p {
    margin-top: 30px;
  }

  .p7-a-btn a {
    width: 200px;
    padding: 15px 0;
    font-size: 14px;
  }

  .wp-block-image img {
    max-width: 300px;
    width: 100%;
    height: auto;
  }





  /* 共通 */
  .h2-title h2 {
    font-size: 30px;
    margin-bottom: 12px;
  } 

  .h2-title span {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 25px; 
  }

  .h2-title span::after {
    width: 58px;
  }

  /* ボタン1 */
  .link-botan a {
    width: 195px;
    height: 46px;
  }

  /* ボタン２ */
  .link-botan2 a {
    width: 195px;
    height: 46px;
  } 


  /* 下層共通 */
  .sub-v {
    width: 100%;
    height: 200px;
    margin-top: 50px;
  }

  .sub-v-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
  }

  .sub-v-title h1 {
    font-size: 30px;
  }

  .sub-v-title p {
    font-size: 20px;
  }


  /* フッター */
  .footer-contact {
    text-align: center;
    background-image: url(../image/footer-back1.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: right;
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .footer-contact p {
    font-size: 15px;
    margin-top: 40px;
    margin-bottom: 57px;
  }

  .footer-link {
    flex-direction: column;
    gap: 38px;
  }

  .footer-link a {
    width: 238px;
    height: 49px;
  }

  .footer-link .footer-tel {
    font-size: 24px;
  }

  .footer-link .footer-tel::before {
    width: 21px;
    height: 21px;
    margin-right: 15px;
  }

  .footer-link .footer-mail {
    font-size: 16px;
  }

  .footer-link .footer-mail::before {
    width: 23px;
    height: 23px;
    margin-right: 15px;
  }

  .footer-map iframe {
    width: 100%;
    height: 367px
  }

  .footer-nav {
    width: 92%;
    flex-direction: column;
    align-items: center;
    gap: 78px;
    padding-top: 48px;
    padding-bottom: 48px;
    margin: 0 auto;
  }

  .footer-text {
    padding-left: 0;
  }

  .footer-text p:first-child {
    font-size: 40px;
  }

  .footer-text p:last-child {
    text-align: center;
    font-size: 16px;
  }

  .footer-nav nav ul {
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 52px;
    margin: 0 auto;
  }

  .footer-nav nav ul a {
    font-size: 16px;
  }

  .footer-nav nav ul a span {
    font-size: 14px;
  }

  .copy-right {
    padding-top: 20px;
    padding-bottom: 20px;
  }

  .copy-right p {
    font-size: 16px;
  }

  .top-botan {
    display: none;
  }

  /* 固定フッター */
  .sp-fixed-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 70px; /* ボタンの高さ */
    background: #fff;
    z-index: 9998;
    align-items: stretch;
  }

  .nav-item {
    display: flex;
    flex-direction: column; /* 縦並び */
    justify-content: center;
    align-items: center;
    text-decoration: none;
    font-size: 20px;
    text-align: center;
  }

  /* 比率設定 4 : 4 : 2 */
  .nav-tel  { flex: 4; background-color: #044ED6; color: #fff; }
  .nav-mail { flex: 4; background-color: #3A7FFD; color: #fff; }
  .nav-top  { flex: 2; background-color: #fff; }

  /* 電話とお問い合わせのアイコン（before） */
  .nav-tel::before,
  .nav-mail::before {
    content: "";
    display: block;
    margin-bottom: 3px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }

  .nav-tel::before {
    width: 29px;
    height: 29px;
  }

  .nav-mail::before {
    width: 34px;
    height: 34px;
  }

  /* 電話アイコン画像 */
  .nav-tel::before {
    background-image: url(../image/tel2.png); /* 実際のパスに変更してください */
  }

  /* メールアイコン画像 */
  .nav-mail::before {
    background-image: url(../image/mail1.png); /* 実際のパスに変更してください */
  }

  /* TOPボタンの画像サイズ調整 */
  .nav-top img {
    width: auto;
    height: 70px; /* 枠に収まるサイズに自動調整 */
    object-fit: contain;
  }

  /* コンテンツが被らないようにbodyに余白を追加 */
  body {
    padding-bottom: 65px;
  }


}

@media screen and (max-width: 430px) {
  /* トップ */
  .slide1 { background-image: url(../image/sp-top-back1.png); }
  .slide2 { background-image: url(../image/sp-top-back2.png); }
  .slide3 { background-image: url(../image/sp-top-back3.png); }

}