@charset "UTF-8";

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


/* --- 各要素の書き換え（px ÷ 16 = rem） --- */
body {
  margin: 0;
}

li {
  list-style: none;
}

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

h1, h2, h3, p, a, li, span, th, td {
  font-family: "Inter", sans-serif;
  letter-spacing: 1px;
}

a:hover {
  opacity: .8;
}

.red {
  color: #E6163E;
}

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

img {
  width: 100%; /* width: 100%よりもmax-widthの方が安全です */
  height: auto;
  border-style: none;
}

/* 消してる要素 */
.sp-header, .sp-only, .sp-br {
  display: none;
}

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

.header-container {
  height: 100%;
  padding-left: min(1.66vw, 20px);
  padding-right: min(4.16vw, 50px);
}

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

.header-logo {
  width: min(7.08vw, 85px);
  height: auto;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: min(6.16vw, 74px);
}

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

.header-nav ul li a {
  font-size: clamp(10px, 1.66vw, 20px);
  color: #000;
  text-shadow: 0 0 min(0.66vw, 8px) rgba(0, 0, 0, 0.2);
  position: relative;
  display: inline-block;
}

.header-nav ul li a::after {
  content: '';
  position: absolute;
  bottom: min(-0.66vw, -8px);
  left: 50%;
  width: 40px;
  height: 1px;
  background: #E6163E;
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

/* .header-nav ul li a:hover::after {
  width: 100%;
} */

.header-contact a img {
  width: min(22.16vw, 266px);
  height: auto;
}

/* ホームヘッダー */
.home #header {
  height: min(13.83vw, 166px);
  background-color: transparent;
}

.home .header-box {
  align-items: flex-start;
}

.home .header-logo {
  width: min(13.5vw, 162px);
  height: auto;
  margin-top: min(1.66vw, 20px);
}

.home .header-nav {
  align-items: flex-start;
}

.home .header-nav ul li a {
  color: #fff;
}

.home .header-nav ul {
  margin-top: min(3.08vw, 37px);
}

.home .header-contact {
  margin-top: min(0.83vw, 10px);
}




/* トップ */
.main-v {
  width: 100%;
  height: auto;
  position: relative;
}

.main-v-container {
  width: 100%;
}

.main-v-img {
  width: 89%;
  height: auto;
}

.main-v-title {
  position: absolute;
  top: 63%;
  left: 9.5%;
  z-index: 10;
}

.main-v-title p {
  /* 40 / 15 = 2.66vw */
  font-size: clamp(12px, 2.66vw, 40px);
  font-weight: bold;
  background-color: #fff;
}

.main-v-title p span {
  /* 64 / 15 = 4.26vw */
  font-size: clamp(12px, 4.26vw, 64px);
  color: #E6163E;
}

.main-v-p1 {
  display: inline-block;
  margin-bottom: min(0.66vw, 10px);
}

.main-v-span {
  position: absolute;
  bottom: max(-2vw, -30px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 20;
}

.main-v-span span {
  /* 20 / 15 = 1.33vw */
  font-size: clamp(12px, 1.33vw, 20px);
  color: #fff;
  letter-spacing: 0.05em;
}

.main-v-span::after {
  content: "";
  width: 1px;
  height: min(4.66vw, 70px);
  background-color: #FF0000;
  margin-top: min(0.93vw, 14px);
}

.p1-a {
  background-image: url(../image/top-img11.png);
  background-repeat: no-repeat;
  background-size: min(56.64vw, 793px) auto;
  background-position: center center;
}

.p1-a-container {
  max-width: min(85.71vw, 1200px);
  padding-top: min(15.57vw, 218px);
  padding-bottom: min(14.14vw, 198px);
  margin: 0 auto;
}

.p1-a-box {
  display: flex;
  justify-content: space-between;
}

.p1-a-item {
  width: min(41.57vw, 582px);
  margin-top: min(3.35vw, 47px);
}

.p1-a-title h3 {
  font-size: clamp(12px, 1.07vw, 15px);
  color: #E6163E;
  letter-spacing: normal;
  display: flex;
  align-items: center;
}

.p1-a-title h3::before {
  content: "";
  display: inline-block;
  width: 25px;
  height: 12px;
  margin-right: 12px;
  background-image: url("../image/part1.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.p1-a-title h2 {
  font-size: min(2.85vw, 40px);
  color: #454545;
  margin-top: min(1.85vw, 26px);
  margin-bottom: min(2.42vw, 34px);
}

.p1-a-p p {
  font-size: clamp(12px, 1.14vw, 16px);
  color: #454545;
}

.p1-a-p p:nth-of-type(2) {
  margin-top: min(1.78vw, 25px);
  margin-bottom: min(1.78vw, 25px);
}

.p1-a-img {
  width: min(40.07vw, 561px);
  height: auto;
}

.p1-b-container {
  padding-bottom: min(11.21vw, 157px);
}

.p1-h2 {
  text-align: center;
  padding-bottom: min(6.57vw, 92px);
}

.p1-h2-box {
  display: inline-block;
}

.p1-h2-box p {
  font-size: clamp(12px, 1vw, 14px);
  font-weight: bold;
  color: #E6163E;
  letter-spacing: normal;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.p1-h2-box p::before,
.p1-h2-box p::after {
  content: "";
  flex-grow: 1;
  height: 1px; 
  background-color: #E6163E;
  flex-shrink: 0;
}

.p1-h2-box p::before {
  margin-right: min(0.71vw, 10px);
}

.p1-h2-box p::after {
  margin-left: min(0.71vw, 10px);
}

.p1-h2-box h2 {
  font-size: min(2.85vw, 40px);
}

.p1-b-box {
  max-width: min(93.57vw, 1310px);
  display: flex;
  justify-content: space-between;
  margin: min(2vw, 28px) auto 0;
}

.p1-b-box:nth-of-type(3) {
  flex-direction: row-reverse;
}

.p1-b-item {
  width: min(40.28vw, 564px);
  margin-top: min(4.28vw, 60px);
}

.p1-b-title {
  display: flex;
  align-items: center;
}

.p1-b-title .p1-b-span {
  width: min(4.14vw, 58px);
  height: min(4.14vw, 58px);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: min(2.28vw, 32px);
  font-weight: 500;
  color: #E6163E;
  border: 1px solid #E6163E;
  border-radius: 50%;
}

.p1-b-title h3 {
  font-size: min(2.28vw, 32px);
  margin-left: min(1.57vw, 22px);
}

.p1-b-p {
  padding: 0 min(2.14vw, 30px) min(1.42vw, 20px) min(3.42vw, 48px);
  border-left: 1px solid #E6163E;
  border-bottom: 1px solid #E6163E;
  margin-top: min(1vw, 14px);
  margin-left: min(2.14vw, 30px);
}

.p1-b-p p {
  font-size: clamp(12px, 1.14vw, 16px);
  line-height: 2em;
}

.p1-b-img {
  width: min(48vw, 672px);
  height: auto;
}

.p1-c .p1-h2 {
  padding-bottom: min(4.38vw, 57px);
}

.p1-c {
  background-color: #F6F6F6;
}

.p1-c-container {
  padding: min(6.92vw, 90px) 0;
}

.p1-c-box {
  max-width: min(92.3vw, 1200px);
  display: grid;
  grid-template-columns: min(45.07vw, 586px) min(45.07vw, 586px);
  gap: min(2.15vw, 28px);
  margin: 0 auto;
}

.p1-c-item {
  width: min(45.07vw, 586px);
  height: min(27.23vw, 354px);
  position: relative;
}

.p1-c-item a {
  display: block;
  width: 100%;
  height: 100%;
}

.p1-c-item:nth-child(1) {
    background-image: url('../image/top-img6.png');
    background-size: cover;
    background-position: center;
}

.p1-c-item:nth-child(2) {
    background-image: url('../image/top-img7.png');
    background-size: cover;
    background-position: center;
}

.p1-c-item:nth-child(3) {
    background-image: url('../image/top-img8.png');
    background-size: cover;
    background-position: center;
}

.p1-c-item:nth-child(4) {
    background-image: url('../image/top-img9.png');
    background-size: cover;
    background-position: center;
}

.p1-c-h3, .p1-c-p {
  position: absolute;
  bottom: min(2.69vw, 35px);
}

.p1-c-h3 {
  left: min(3.53vw, 46px);
}

.p1-c-p {
  right: min(0.3vw, 4px);
}

.p1-c-h3 p {
  font-size: clamp(10px, 0.84vw, 11px);
  color: #fff;
}

.p1-c-h3 h3 {
  font-size: clamp(10px, 2.46vw, 32px);
  color: #fff;
}

.p1-c-p p {
  font-size: clamp(10px, 1.07vw, 14px);
  color: #fff;
  background-color: #E6163E;
  display: flex;
  align-items: center;
  padding: min(1.46vw, 19px) min(1.76vw, 23px) min(1.46vw, 19px) min(2.84vw, 37px);
  border-radius: min(3.07vw, 40px) 0 0 min(3.07vw, 40px);
}

.p1-c-p p::after {
  content: "";
  display: block;
  margin-left: min(0.92vw, 12px);
  width: min(5.07vw, 66px);
  height: min(1.07vw, 14px);
  background-image: url('../image/part2.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.p1-d-container {
  max-width: min(88.54vw, 974px);
  background-image: url(../image/top-img10.png);
  background-repeat: no-repeat;
  background-size: min(55.36vw, 609px) auto;
  background-position: top right;
  margin: min(8.18vw, 90px) auto;
}

.p1-d .p1-h2-box p::before,
.p1-d .p1-h2-box p::after {
  content: "";
  width: min(11.9vw, 131px);
  height: 1px;
  background-color: #E6163E;
  flex-shrink: 0;
}

.p1-d .p1-h2 {
  padding-bottom: min(6.36vw, 70px);
}

.p1-d-item {
  max-width: min(42vw, 462px);
  padding-bottom: min(24.54vw, 270px);
}

.p1-d-h3 {
  margin-bottom: min(2.09vw, 23px);
}

.p1-d-h3 h3 {
  font-size: clamp(10px, 2.9vw, 32px);
}

.p1-d-p p {
  font-size: clamp(10px, 1.45vw, 16px);
  line-height: 2em;
}

/* 下層共通 */
.sub {
  background-color: #F6F6F6;
}

.sub-v-container {
  width: 100%;
  height: auto;
  position: relative;
}

.sub-v-img {
  width: 100%;
  height: auto;
}

.sub-v-title {
  position: absolute;
  left: 50%;
  bottom: 30.7%;
  transform: translateX(-50%);
  z-index: 10;
  text-align: center;
  width: 100%;
}

.sub-v-title p {
  font-size: clamp(10px, 2.25vw, 36px);
  font-weight: 500;
  color: #E6163E;
}

.sub-v-title h1 {
  font-size: clamp(10px, 3vw, 48px);
  color: #fff;
}

/* 会社概要 */
.p2-a {
  background-color: #F6F6F6;
  padding-top: min(6.92vw, 90px);
  padding-bottom: min(9.23vw, 120px);
}

.p2-a-container {
  max-width: min(92.3vw, 1200px);
  background-color: #fff;
  margin: 0 auto;
}

.p2-a-title {
  text-align: center;
  padding-top: min(6.46vw, 84px);
}

.p2-a-title h2, .p2-a-title2 h2 {
  font-size: clamp(10px, 3.38vw, 44px);
  color: #E6163E;
}

.p2-a-teble {
  width: min(72.69vw, 945px);
  margin: 0 auto;
}

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

.p2-a-teble table tr th, .p2-a-teble table tr td {
  font-size: clamp(10px, 1.84vw, 24px);
  padding-top: min(2.92vw, 38px);
  padding-bottom: min(0.76vw, 10px);
  border-bottom: 1px solid #CACACA;
}

.p2-a-teble table tr th {
  width: min(30.76vw, 400px);
  text-align: left;
  font-weight: 400;
  padding-left: min(6.15vw, 80px);
}

.p2-a-teble table tr td {
  width: auto;
}

.p2-a-title2 {
  text-align: center;
  padding-top: min(6.15vw, 80px);
  padding-bottom: min(2.3vw, 30px);
}

.p2-a-map {
  text-align: center;
  padding-bottom: min(7.69vw, 100px);
}

.p2-a-map iframe {
  width: min(72.61vw, 944px);
  height: min(29.92vw, 389px);
}

/* 事業内容 */
.p3-a {
  background-color: #F6F6F6;
}

.p3-a-container {
  max-width: min(85.71vw, 1200px);
  padding-top: min(2.42vw, 34px);
  padding-bottom: min(8.57vw, 120px);
  margin: 0 auto;
}

.p3-a-box {
  display: flex;
  justify-content: space-between;
  padding-top: min(4vw, 56px);
  padding-bottom: min(4vw, 56px);
  border-bottom: 1px solid #E6163E;
}

.p3-a-item {
  width: min(41.42vw, 580px);
}

.p3-a-item .p3-a-p1 {
  height: min(5.64vw, 79px);
  font-size: clamp(10px, 2.28vw, 32px);
  color: #fff;
  display: flex;
  align-items: center;
  background-image: url(../image/p3-back1.png);
  background-repeat: no-repeat;
  background-size: 100% auto;
  padding-left: min(1.71vw, 24px);
}

.p3-a-item h2 {
  font-size: clamp(10px, 2.28vw, 32px);
  line-height: 1.8em;
  margin-top: min(2.85vw, 40px);
  margin-bottom: min(2.14vw, 30px);
}

.p3-a-item .p3-a-p2 {
  font-size: clamp(10px, 1.14vw, 16px);
  line-height: 2em;
}

.p3-a-img {
  width: min(39.42vw, 552px);
  height: auto;
}

/* 施工事例 */
.p4-a {
  background-color: #F6F6F6;
}

.p4-a-container {
  max-width: min(90vw, 1170px);
  padding: min(7.69vw, 100px) 0;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: min(1.38vw, 18px);
}

.p4-a-img {
  width: min(29.07vw, 378px);
  height: auto;
}

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

/* お問い合わせ */
.p5-a {
  background-color: #F6F6F6;
  padding-top: min(9.09vw, 100px);
  padding-bottom: min(10.91vw, 120px);
}

.p5-a-container {
  max-width: min(90.91vw, 1200px);
  background-color: #fff;
  margin: 0 auto;
}

.p5-a-title {
  text-align: center;
  padding-top: min(7.64vw, 84px);
  padding-bottom: min(2.36vw, 26px);
}

.p5-a-title h2 {
  font-size: clamp(10px, 3.27vw, 36px);
  color: #E6163E;
}

.p5-a-box {
  width: min(85.91vw, 945px);
  padding-bottom: min(7.64vw, 84px);
  margin: 0 auto;
}

.contact-table {
  width: 100%;
  border-collapse: collapse;
  font-size: clamp(10px, 2.18vw, 24px);
}

.contact-table tr th, .contact-table tr td {
  border-bottom: 1px solid #CACACA;
}

.contact-table tr th {
  width: min(39.55vw, 435px);
  font-size: clamp(10px, 2.18vw, 24px);
  text-align: left;
  font-weight: normal;
  padding: min(3.45vw, 38px) 0 min(1.36vw, 15px) min(7.27vw, 80px);
  vertical-align: middle;
}

.contact-table tr:last-child th {
  vertical-align: top;
  padding-top: min(2.36vw, 26px);
}

.contact-table tr td {
  width: min(46.36vw, 510px);
  padding: min(2.36vw, 26px) min(0.91vw, 10px) min(1.45vw, 16px) 0;
  padding-right: min(8.73vw, 96px);
}

.contact-table input[type="text"],
.contact-table input[type="email"],
.contact-table input[type="tel"],
.contact-table textarea {
  width: 100%;
  height: min(3.18vw, 35px);
  border: 1px solid #ccc;
  padding: 0 min(0.91vw, 10px);
  box-sizing: border-box;
  font-size: clamp(10px, 1.82vw, 20px);
}

.contact-table textarea {
  height: min(20.18vw, 222px);
  padding: min(0.91vw, 10px);
  display: block;
}

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

.contact-submit input[type="submit"] {
  width: min(21.82vw, 240px);
  height: min(6.18vw, 68px);
  background-color: #E6163E;
  color: #fff;
  border: none;
  font-size: clamp(10px, 1.82vw, 20px);
  cursor: pointer;
  transition: opacity 0.3s;
}

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

.wpcf7-spinner {
  display: none;
}

/* 採用情報 */
.p6-a {
  background-color: #F6F6F6;
  padding-top: min(5.56vw, 100px);
  padding-bottom: min(5.56vw, 100px);
}

.p6-a-container {
  background-image: url(../image/top-img11.png);
  background-repeat: no-repeat;
  background-size: auto 100%;
  background-position: center center;
  padding-top: min(6.56vw, 118px);
  padding-bottom: min(1.5vw, 27px);
}

.p6-a-box {
  max-width: min(80.94vw, 1457px);
  display: flex;
  justify-content: space-between;
  margin-left: 18%;
  margin-right: auto;
}

.p6-a-item h2 {
  font-size: clamp(20px, 2.22vw, 40px);
  letter-spacing: normal;
  margin-top: min(2vw, 36px);
  margin-bottom: min(2vw, 36px);
}

.p6-a-item p {
  width: min(41.5vw, 747px);
  font-size: clamp(14px, 0.89vw, 16px);
  line-height: 2em;
}

.p6-a-img {
  width: min(31.17vw, 561px);
  height: auto;
}

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

.p6-b {
  padding-bottom: min(8vw, 120px);
}

.p6-b-container {
  max-width: min(80vw, 1200px);
  background-color: #fff;
  margin-left: 18%;
  margin-right: 18%;
}

.p6-b-box {
  padding: min(5.6vw, 84px) min(8.67vw, 130px) min(7.67vw, 115px);
}

.p6-b-title {
  text-align: center;
  margin-bottom: min(2.53vw, 38px);
}

.p6-b-title h2 {
  font-size: clamp(20px, 2.4vw, 36px);
  color: #E6163E;
}

.p6-b-text {
  display: flex;
  align-items: center;
  gap: min(3.47vw, 52px);
  padding-top: min(0.93vw, 14px);
  padding-left: min(5vw, 75px);
  padding-bottom: min(0.93vw, 14px);
  border-bottom: 1px solid #CACACA;
}

.p6-b-text span {
  display: flex;
  justify-content: center;
  align-items: center;
  width: min(14.67vw, 220px);
  height: min(3.33vw, 50px);
  font-size: clamp(10px, 1.6vw, 24px);
  color: #fff;
  background-color: #E6163E;
  flex-shrink: 0;
}

.p6-b-text p {
  font-size: clamp(10px, 1.6vw, 24px);
  margin: 0;
}


/* フッター */
.footer-box {
  background-image: url(../image/footer-back.png);
  background-repeat: no-repeat;
  background-size: cover;
  padding-top: min(2.8vw, 42px);
  padding-bottom: min(3.87vw, 58px);
}

footer .p1-h2-box {
  position: relative;
  padding: min(1vw, 15px) min(3.07vw, 46px);
  border: 1px solid #fff;
}

footer .p1-h2-box::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: min(-1vw, -15px);
  width: 1px;
  height: min(2vw, 30px);
  background-color: #fff;
}

footer .p1-h2-box p {
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(12px, 1.07vw, 16px);
}

footer .p1-h2-box h2 {
  color: #fff;
  font-size: clamp(20px, 2.4vw, 36px);
}

footer .p1-h2-box p::before, 
footer .p1-h2-box p::after {
  content: "";
  flex-grow: 1;
  height: 1px;
  background-color: #fff;
  flex-shrink: 0;
}

.footer-item {
  max-width: min(80vw, 1200px);
  display: flex;
  justify-content: space-between;
  gap: min(2.4vw, 36px);
  margin: 0 auto;
}

.footer-text {
  width: min(25.13vw, 377px);
  text-align: center;
}

.footer-text span {
  font-size: clamp(10px, 0.93vw, 14px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-text span::before, 
.footer-text span:after {
  content: "";
  flex-grow: 1;
  height: 1px;
  background-color: #fff;
  flex-shrink: 0;
}

.footer-text span:after {
  margin-left: min(0.4vw, 6px);
}

.footer-text span::before {
  margin-right: min(0.4vw, 6px);
}

.footer-text .footer-number {
  text-align: right;
  font-size: clamp(16px, 2.67vw, 40px);
  font-weight: bold;
  letter-spacing: 2px;
  color: #fff;
}

.footer-text .footer-taim {
  font-size: clamp(10px, 0.93vw, 14px);
  color: #fff;
  background-color: #E6163E;
  padding: min(0.4vw, 6px) 0;
}

.footer-contact {
  width: min(25vw, 375px);
  height: auto;
}

.footer-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: min(26.67vw, 400px);
  background-color: #E6163E;
  padding-top: min(3.47vw, 52px);
  padding-bottom: min(5.8vw, 87px);
}

.footer-logo {
  text-align: center;
}

.footer-logo a img {
  width: min(10.8vw, 162px);
  height: auto;
}

.footer-logo p {
  font-size: clamp(10px, 1.07vw, 16px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-logo p::before {
  content: "";
  display: inline-block;
  width: min(1.2vw, 18px);
  height: min(1.2vw, 18px);
  margin-right: min(0.53vw, 8px);
  background-image: url("../image/part3.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  flex-shrink: 0;
}

.footer-nav ul {
  display: flex;
  justify-content: center;
  gap: min(5.33vw, 80px);
}

.footer-nav ul li a {
  font-size: clamp(12px, 1.33vw, 20px);
  color: #fff;
  position: relative;
  display: inline-block;
}

.footer-nav ul li a::after {
  content: '';
  position: absolute;
  bottom: min(-0.53vw, -8px);
  left: 50%;
  width: 40px;
  height: 1px;
  background: #fff;
  transform: translateX(-50%);
}

/* .footer-nav ul li a:hover::after {
  width: 100%;
} */

@media screen and (max-width: 768px) {
  /* 全体 */
  #header, .pc-only, .pc-br {
    display: none;
  }

  .sp-br {
    display: block;
  }

  /* ヘッダー */
  .sp-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    background-color: transparent;
    z-index: 9999;
    display: block; /* スマホでは表示 */
  }

  .home .sp-header {
    height: 127px;
  }

  .sp-header-inner {
    display: flex;
    justify-content: space-between;
    height: 100%;
    padding: 24px 10px 0;
  }

  .home .sp-header-logo img {
    width: 116px;
    height: auto;
  }

  .sp-header-logo img {
    width: 70px;
    height: auto;
  }

  /* ハンバーガーボタン */
  .sp-menu-btn {
    position: relative;
    width: 42px; /* 指定のサイズ */
    height: 42px; /* 指定のサイズ */
    background-color: #E6163E; /* 指定の赤色 */
    border: none;
    cursor: pointer;
    z-index: 1000;
    padding: 0; /* 余計な余白を消す */
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .sp-menu-btn span {
    position: absolute;
    left: 8px; /* 左右に少し余白を作る (42 - 26 = 16px / 2) */
    width: 26px; /* 線の長さ */
    height: 2px;
    background-color: #fff; /* 白い線 */
    transition: all 0.3s ease;
  }

  /* 42pxの高さに対して、バランスよく配置 */
  .sp-menu-btn span:nth-child(1) { top: 12px; }
  .sp-menu-btn span:nth-child(2) { top: 20px; }
  .sp-menu-btn span:nth-child(3) { top: 28px; }

  /* --- 開閉アニメーションの調整（中央で重なるように） --- */
  /* 20px(2本目)の位置に1本目と3本目を集める計算 */
  .sp-menu-btn.is-active span:nth-child(1) { 
    transform: translateY(8px) rotate(45deg); 
  }
  .sp-menu-btn.is-active span:nth-child(2) { 
    opacity: 0; 
  }
  .sp-menu-btn.is-active span:nth-child(3) { 
    transform: translateY(-8px) rotate(-45deg); 
  }

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

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

  .sp-header-nav ul {
    display: flex;
    flex-direction: column;
    gap: 60px;
  }

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

  .sp-nav-list li a {
    color: #000;
    text-decoration: none;
    font-size: 20px;
    position: relative;
  }

  .sp-nav-list li a::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 40px;
    height: 1px;
    background: #E6163E;
    transition: all 0.3s ease;
    transform: translateX(-50%);
  }

  .sp-header .header-contact a img {
    width: 266px;
    height: auto;
  }

  /* トップ */
  .main-v {
    width: 100%;
    height: 380px;
    position: relative;
    display: flex;
    justify-content: flex-start;
    overflow: visible;
  }

  .main-v-container {
    width: 89vw;
    height: 100%;
    overflow: hidden;
    position: relative;
  }

  .main-v-img {
    width: 676px;
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
  }

  .main-v-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: right center;
  }

  .main-v-title {
    position: absolute;
    top: 50%;
    left: 9.5%;
    z-index: 10;
  }

  .main-v-title p {
    font-size: 24px;
    font-weight: bold;
    background-color: #fff;
    display: inline-block;
  }

  .main-v-title p span {
    font-size: 36px;
    color: #E6163E;
  }

  .main-v-p1 {
    margin-bottom: 7px;
  }

  /* クラス名を sp-main-v-span に変更 */
  .sp-main-v-span {
    position: absolute;
    bottom: -40px;
    left: 50vw;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 20;
  }

  .sp-main-v-span span {
    font-size: 20px;
    color: #fff;
    letter-spacing: 0.05em;
  }

  .sp-main-v-span::after {
    content: "";
    width: 1px;
    height: 70px;
    background-color: #FF0000;
    margin-top: 10px;
  }

  .p1-a {
    background-image: url(../image/top-img11.png);
    background-size: 497px auto;
    background-position: right -248px center
  }

  .p1-a-container {
    max-width: 96%;
    padding-top: 55px;
    padding-bottom: 55px;
    margin: 0 auto;
  }

  .p1-a-box {
    flex-direction: column;
    gap: 18px;
  }

  .p1-a-item {
    width: 100%;
    margin-top: 0;
  }

  .p1-a-title h3 {
    font-size: 15px;
    letter-spacing: -3px;
  }

  .p1-a-title h3::before {
    content: "";
    display: inline-block;
    width: 25px;
    height: 12px;
    margin-right: 12px;
    background-image: url("../image/part1.png");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
  }

  .p1-a-title h2 {
    font-size: 24px;
    color: #454545;
    margin-top: 20px;
    margin-bottom: 25px;
  }

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

  .p1-a-p p:nth-of-type(2) {
    margin-top: 25px;
    margin-bottom: 25px;
  }

  .p1-a-img {
    width: 100%;
  }

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

  .p1-b .p1-h2 {
    width: 96%;
    margin: 0 auto;
  }

  .p1-h2 {
    padding-bottom: 0;
  }

  .p1-h2-box {
    display: block;
  }

  .p1-h2-box p {
    font-size: 14px;
  }

  .p1-h2-box p::before {
    margin-right: 10px;
  }

  .p1-h2-box p::after {
    margin-left: 10px;
  }

  .p1-h2-box h2 {
    font-size: 24px;
  }

  .p1-b-box {
    max-width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 26px;
    margin: 40px auto 0;
  }

  .p1-b-box:nth-of-type(3) {
    flex-direction: column;
    gap: 26px;
  }

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

  .p1-b-title .p1-b-span {
    width: 48px;
    height: 48px;
    font-size: 24px;
  }

  .p1-b-title h3 {
    font-size: 24px;
    margin-left: 12px;
  }

  .p1-b-p {
    padding: 0 0 52px 8px;
    margin-top: 23px;
    margin-left: 23px;
  }

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

  .p1-b-img {
    width: 80%;
    height: auto;
    margin-left: auto;
  }

  .p1-b-box:nth-of-type(3) .p1-b-img {
    margin-left: 0;
    margin-right: auto;
  }

  .p1-c .p1-h2 {
    padding-bottom: min(4.38vw, 57px);
  }

  .p1-c {
    background-color: #F6F6F6;
  }

  .p1-c-container {
    width: 96%;
    padding: 40px 0;
    margin: 0 auto;
  }

  .p1-c-box {
    max-width: 90%;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 20px; 
    margin: 0 auto;
  }

  .p1-c-item {
    width: 316px;
    height: 190px;
  }

  .p1-c-h3, .p1-c-p {
    bottom: 17px;
  }

  .p1-c-h3 {
    left: 8px;
  }

  .p1-c-p {
    right: 2px;
  }

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

  .p1-c-h3 h3 {
    font-size: 24px;
  }

  .p1-c-p p {
    font-size: 10px;
    padding: 8px 13px 8px 17px;
    border-radius: 40px 0 0 40px;
  }

  .p1-c-p p::after {
    margin-left: 7px;
    width: 35px;
    height: 7px;
  }

  .p1-d-container {
    max-width: 96%;
    background-image: url(../image/top-img10.png);
    background-size: 317px auto;
    background-position: bottom left;
    margin: 40px auto;
  }

  .p1-d .p1-h2-box p::before,
  .p1-d .p1-h2-box p::after {
    content: "";
    width: auto;
    height: 1px;
    background-color: #E6163E;
    flex-shrink: 0;
  }

  .p1-d .p1-h2 {
    padding-bottom: 40px;
  }

  .p1-d-item {
    max-width: 100%;
    padding-bottom: 352px;
  }

  .p1-d-h3 {
    margin-bottom: 33px;
  }

  .p1-d-h3 h3 {
    font-size: 24px;
  }

  .p1-d-p p {
    font-size: 15px;
    line-height: 2em;
  }

  /* 下層共通 */
  .sub-v-container {
    width: 100%;
    height: 200px;
    position: relative;
    overflow: hidden;
  }

  .sub-v-img {
    width: 100%;
    height: 100%;
  }

  .sub-v-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .sub-v-title {
    position: absolute;
    left: 50%;
    bottom: 15%; 
    transform: translateX(-50%);
    z-index: 10;
    text-align: center;
    width: 100%;
  }

  .sub-v-title p {
    font-size: 24px;
    font-weight: 500;
    color: #E6163E;
  }

  .sub-v-title h1 {
    font-size: 30px;
    color: #fff;
    margin-top: 0;
  }

  /* 会社概要 */
  .p2-a {
    background-color: #F6F6F6;
    padding-top: 40px;
    padding-bottom: 60px;
  }

  .p2-a-container {
    max-width: 96%;
  }

  .p2-a-title {
    padding-top: 40px;
  }

  .p2-a-title h2, .p2-a-title2 h2 {
    font-size: 24px;
  }

  .p2-a-teble {
    width: 85%;
    margin: 0 auto;
  }

  .p2-a-teble table tr th, .p2-a-teble table tr td {
    font-size: 16px;
    padding-top: 19px;
    padding-bottom: 5px;
  }

  .p2-a-teble table tr th {
    width: 40%;
    padding-left: 20px;
  }

  .p2-a-title2 {
    padding-top: 40px;
    padding-bottom: 15px;
  }

  .p2-a-map {
    padding-bottom: 50px;
  }

  .p2-a-map iframe {
    width: 85%;
    height: 300px;
  }

  /* 事業内容 */
  .p3-a-container {
    max-width: 96%;
    padding-top: 20px;
    padding-bottom: 60px;
    margin: 0 auto;
  }

  .p3-a-box {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding-top: 40px;
    padding-bottom: 28px;
  }

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

  .p3-a-item .p3-a-p1 {
    height: 40px;
    font-size: 24px;
    padding-left: 15px;
  }

  .p3-a-item h2 {
    font-size: 24px;
    letter-spacing: normal;
    margin-top: 20px;
    margin-bottom: 15px;
  }

  .p3-a-item .p3-a-p2 {
    font-size: 16px;
  }

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

  /* 施工事例 */
  .p4-a-container {
    /* 96%に変更 */
    max-width: 96%;
    padding: 50px 0;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    /* 2列の間の隙間を指定 */
    gap: 10px;
  }

  .p4-a-img {
    /* 2列にするための計算：(100% - 隙間10px) ÷ 2枚 */
    width: calc((100% - 10px) / 2);
    height: auto;
  }

  .p4-a-img img {
    width: 100%;
    height: auto;
    display: block;
    /* 画像の高さがバラバラな場合に高さを揃えるなら追加 */
    aspect-ratio: 3 / 2;
    object-fit: cover;
  }

  /* お問い合わせ */
  .p5-a {
    padding-top: 50px;
    padding-bottom: 60px;
  }

  .p5-a-container {
    max-width: 96%;
  }

  .p5-a-title {
    padding-top: 42px;
    padding-bottom: 13px;
  }

  .p5-a-title h2 {
    font-size: 24px;
  }

  .p5-a-box {
    width: 85%;
    padding-bottom: 42px;
  }

  .contact-table {
    font-size: 18px;
  }

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

  .contact-table tr th {
    width: 100%;
    font-size: 18px;
    padding: 16px 0 6px 20px;
    border: none;
  }

  .contact-table tr:last-child th {
    padding-top: 10px;
  }

  .contact-table tr td {
    width: 100%;
    padding: 0 0 10px 20px;
    padding-right: min(8.73vw, 96px);
  }

  .contact-table input[type="text"],
  .contact-table input[type="email"],
  .contact-table input[type="tel"],
  .contact-table textarea {
    width: 100%;
    height: 24px;
    border: 1px solid #ccc;
    padding: 0 5px;
    box-sizing: border-box;
    font-size: 18px;
  }

  .contact-table textarea {
    height: 145px;
    padding: 5px;
    display: block;
  }

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

  .contact-submit input[type="submit"] {
    width: 160px;
    height: 40px;
    background-color: #E6163E;
    color: #fff;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: opacity 0.3s;
  }

  .wpcf7-spinner {
    display: none;
  }

  /* 採用情報 */
  .p6-a {
    padding-top: 50px;
    padding-bottom: 50px;
  }

  .p6-a-container {
    background-image: url(../image/top-img11.png);
    background-size: 497px auto;
    background-position: right -248px center;
    padding-top: 60px;
    padding-bottom: 20px;
  }

  .p6-a-box {
    max-width: 96%;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    margin-left: auto;
    margin-right: auto;
  }

  .p6-a-item h2 {
    font-size: 30px;
    letter-spacing: normal;
    margin-top: 18px;
    margin-bottom: 18px;
  }

  .p6-a-item p {
    width: 100%;
    font-size: 16px;
  }

  .p6-a-img {
    width: 100%;
  }

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

  .p6-b {
    padding-bottom: 60px;
  }

  .p6-b-container {
    max-width: 96%;
    margin-left: auto;
    margin-right: auto;
  }

  .p6-b-box {
    padding: 42px 10px 60px;
  }

  .p6-b-title {
    margin-bottom: 19px;
  }

  .p6-b-title h2 {
    font-size: 24px;
  }

  .p6-b-text {
    gap: 30px;
    padding-top: 7px;
    padding-left: 20px;
    padding-bottom: 7px;
  }

  .p6-b-text span {
    width: 130px;
    height: 30px;
    font-size: 15px;
  }

  .p6-b-text p {
    font-size: 15px;
  }

  /* フッター */
  .footer-box {
    background-image: url(../image/footer-back.png);
    background-repeat: no-repeat;
    background-size: cover;
    padding-top: 40px;
    padding-bottom: 34px;
  }

  footer .p1-h2 {
    padding-bottom: 22px;
  }

  footer .p1-h2-box {
    position: relative;
    display: inline-block;
    padding: 15px 43px 33px;
    border: 1px solid #fff;
  }

  footer .p1-h2-box::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -15px;
    width: 1px;
    height: 30px;
    background-color: #fff;
  }

  footer .p1-h2-box p {
    font-size: 14px;
  }

  footer .p1-h2-box h2 {
    font-size: 24px;
  }

  footer .p1-h2-box p::before, 
  footer .p1-h2-box p::after {
    content: "";
    width: 76px;
    flex-grow: 1;
    height: 1px;
    background-color: #fff;
    flex-shrink: 0;
  }

  .footer-item {
    max-width: 343px;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin: 0 auto;
  }

  .footer-text {
    width: 100%;
  }

  .footer-text span {
    font-size: 14px;
  }

  .footer-text span:after {
    margin-left: 6px;
  }

  .footer-text span::before {
    margin-right: 6px;
  }

  .footer-text .footer-number {
    text-align: center;
    font-size: 32px;
  }

  .footer-text .footer-taim {
    font-size: 14px;
    color: #fff;
    background-color: #E6163E;
    padding: 7px 0;
  }

  .footer-contact {
    width: 302px;
    height: auto;
  }

  .footer-nav {
    flex-direction: column;
    gap: 22px;
    padding-top: 22px;
    padding-bottom: 48px;
  }

  .footer-logo a img {
    width: 136px;
    height: auto;
  }

  .footer-logo p {
    font-size: 16px;
  }

  .footer-logo p::before {
    width: 18px;
    height: 18px;
    margin-right: 8px;
  }

  .footer-nav ul {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 90px;
    row-gap: 22px;
  }

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

  .footer-nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 40px;
    height: 1px;
    background: #fff;
    transform: translateX(-50%);
  }


}

@media screen and (max-width: 430px) {
  .main-v {
    width: 100%;
    height: 720px;
    position: relative;
    display: flex;
    justify-content: flex-start;
    overflow: visible;
  }

  .main-v-container {
    width: 89vw;
    height: 100%;
    overflow: hidden;
    position: relative;
  }

  .main-v-img {
    width: 334px;
    height: 100%;
    position: absolute;
    top: 0;
    /* 右固定(right:0)から左固定(left:0)に変更 */
    left: 0;
  }

  .main-v-img img {
    content: url("../image/sp-back1.png");
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 画像の中身も左側を基準に見せる */
    object-position: left center;
  }

  .main-v-title {
    position: absolute;
    top: 65%;
    left: 9.5%;
    z-index: 10;
  }

  .main-v-title p {
    font-size: 20px;
    font-weight: bold;
    background-color: #fff;
    display: inline-block;
    padding: 2px 5px;
  }

  .main-v-title p span {
    font-size: 30px;
    color: #E6163E;
  }

  .main-v-p1 {
    margin-bottom: 7px;
  }

  .sp-main-v-span {
    position: absolute;
    bottom: -40px;
    left: 50vw;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 20;
  }

  .sp-main-v-span span {
    font-size: 18px;
    color: #fff;
    letter-spacing: 0.05em;
  }

  .sp-main-v-span::after {
    content: "";
    width: 1px;
    height: 80px;
    background-color: #FF0000;
    margin-top: 10px;
  }

  /* 施工事例 */
  .p4-a-container {
    max-width: 96%;
    padding: 40px 0;
    margin: 0 auto;
    display: flex;
    flex-direction: column; /* 縦に並べる */
    align-items: center;    /* 中央寄せ */
    gap: 20px;              /* 画像同士の上下の隙間 */
  }

  .p4-a-img {
    width: 100%;            /* 横幅いっぱい */
    max-width: 500px;       /* 大きくなりすぎないよう制限（任意） */
    height: auto;
  }

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

}