@charset "utf-8";
html { scroll-behavior: smooth;}
body {
  font-family: "游ゴシック体", YuGothic, "游ゴシック Medium", "Yu Gothic Medium", "游ゴシック", "Yu Gothic", sans-serif;
  font-weight: 500; /* Mediumウェイトをデフォルトに */
  margin: 0;
  padding: 0;
  line-height: 1.6;
  word-break: keep-all;
  overflow-wrap: break-word;
}
body p{
  line-height: 2.5;
}


.container {
  width: 100%;
  padding: 0 20px; /* 必要に応じて調整 */
  max-width: 1050px;
  margin:auto;
}

h1 img {
  width: 200px;
  display: block;
  height: auto; /* アスペクト比を維持 */
}

h1{
  color:#003f73;
  font-size: 4em;
  margin-top: 10px;
}
h2{
  color:#003f73;
  font-size: 2em;
  margin-top:0;
  margin-bottom: 2em;
}

/* トップメインビジュアル始まり */

.top-mv {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.top-mv .image {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  opacity: 0;
  background-size: cover;
  background-position: top center;
}

/* 背景画像の設定 */
.src1 { 
  background-image: url('https://suwa-service.co.jp/img/slide01back_notrim.jpg'); 
  animation: crossfade 20s infinite;
}
.src2 { 
  background-image: url('https://suwa-service.co.jp/img/slide02back_notrim03.jpg'); 
  animation: crossfade 20s infinite;
  animation-delay: 5s;
}
.src3 { 
  background-image: url('https://suwa-service.co.jp/img/slide03back_notrim.jpg'); 
  animation: crossfade 20s infinite;
  animation-delay: 10s;
}
.src4 { 
  background-image: url('https://suwa-service.co.jp/img/slide04back_notrim.jpg'); 
  animation: crossfade 20s infinite;
  animation-delay: 15s;
}
/* クロスフェードアニメーション */
@keyframes crossfade {
  0%, 20% {
      opacity: 1;
  }
  23%, 100% {
      opacity: 0;
  }
}
/* .src4 p:nth-child(1) {
  width: 700px;
}
.src4 p:nth-child(2) {
  width: 500px;
} */

/* src4の画像用スタイル追加 */
.src4 .image-wrapper {
  position: absolute;
  opacity: 0;
  animation: text-fade 20s infinite;
  animation-delay: 15s;
}

.src4 .image-wrapper.top-image {
  top: 15%;
  right: 20%;
  /* transform: translate(-15%, 0%); */
  width: 700px; /* 必要に応じてサイズを調整 */
}

.src4 .image-wrapper.bottom-image {
  bottom: 10%;
  right: 20%;
  width: 500px; /* 必要に応じてサイズを調整 */
}

.src4 .image-wrapper img {
  width: 100%;
  height: auto;
  display: block;
}

/* src4の既存のpタグのスタイルを削除または調整 */
.src4 p {
  display: none; /* または必要に応じて調整 */
}
/* src4の画像用スタイル追加終わり */
@media (min-width: 1001px) and (max-width: 1200px) {
  .src4 .image-wrapper.top-image {
    right: 5%;
  }
  .src4 .image-wrapper.bottom-image {
    right: 5%;
  }
}
@media (min-width: 769px) and (max-width: 1000px) {
  .src4 .image-wrapper.top-image {
    right: 5%;
    width: 450px;
  }
  .src4 .image-wrapper.bottom-image {
    right: 5%;
    bpttom: 20%;
    width: 400px;
  }
}
@media (min-width: 769px) {
  header.top-header .header-content{
    flex-direction: column;
    position: absolute;
    z-index: 2;
    padding: 30px;
    /* background-color: #fff; */
  }
  header.top-header .header-content::after {
    content: '';
    position: absolute;
    width: 430px;  /* SVGのサイズを指定 */
    height: 470px; /* SVGのサイズを指定 */
    /* SVGのURLを指定（下記は例です） */
    background-image: url('../img/pcheader.svg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    
    /* 配置位置の指定（例：右下） */
    top: 0;
    left: 0;
    z-index: -1;
  }
  header.top-header .header-content nav ul{
    flex-direction: column;
  }
  header.top-header img{
    width: 142px;
    height: auto;
  }
  header.top-header nav ul{
    gap:20px;
  }
  h1 img {
    width: 300px;
  }
}

@media (max-width: 768px) {
  h2{
    font-size: 1.3em;
    margin-bottom: 1em;
  }
  body p{
    line-height: 2;
  }
  header.top-header.toppage h1 img {
    width: 100px;
  }
  .top-header.toppage{
    padding: 0 10px;
    position: absolute;
    z-index: 3;
    width: 100%;
  }
  header.top-header.toppage .header-content::after {
    content: '';
    position: absolute;
    width: 225px;  /* SVGのサイズを指定 */
    height: 246px; /* SVGのサイズを指定 */
    /* SVGのURLを指定（下記は例です） */
    background-image: url('../img/pcheader.svg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    
    /* 配置位置の指定（例：右下） */
    top: -23px;
    left: 0;
    z-index: -1;
  }
  header.top-header.toppage .hamburger{
    position: absolute;
    right: 10px;
    top:-10px;
  }

/* 背景画像の設定 */
  .src1 { 
    background-image: url('https://suwa-service.co.jp/img/SP_slide01back_notrim.jpg'); 
  }
  .src2 { 
    background-image: url('https://suwa-service.co.jp/img/SP_slide02back_notrim02.jpg'); 
  }
  .src3 { 
    background-image: url('https://suwa-service.co.jp/img/SP_slide03back_notrim.jpg');
  }
  .src4 { 
    background-image: url('https://suwa-service.co.jp/img/SP_slide04back_notrim.jpg');
  }
  .top-mv .image {
    background-size: cover;
    background-repeat: no-repeat;
  }
  .src4 .image-wrapper img{
    width: 50%;
  }
  .src4 p:nth-child(1) {
    width: 100px;
  }
  .src4 p:nth-child(2) {
    width: 150px;
  }
  
  /* src4の画像用スタイル追加 */
  .src4 .image-wrapper {
    position: absolute;
    opacity: 0;
    animation: text-fade 20s infinite;
    animation-delay: 15s;
  }

  .src4 .image-wrapper.top-image {
    top: 60px;
    right: -20px;
    width: 200px; /* 必要に応じてサイズを調整 */
  }

  .src4 .image-wrapper.bottom-image {
    bottom: inherit;
    top: 240px;
    right: 28px;
    width: 180px; /* 必要に応じてサイズを調整 */
  }

  .src4 .image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
  }
}

/* テキストの基本スタイル */
.image p {
  position: absolute;
  color: #003f73;
  font-size: 2rem;
  opacity: 0;
}
/* Zen Kaku Gothic New をデフォルトフォントとして設定 */
.aa .a p,
.top-mv .image p {
  font-family: 'Zen Kaku Gothic New', sans-serif !important;
  font-weight: 300; /* フォントウェイトも調整 */
}
.aa .a p{
  font-size: 100px;
}

/* 英語テキスト用のクラス */
.top-mv .image p.ws {
  font-family: 'Zen Kaku Gothic New', sans-serif !important;
  font-weight: 300; /* 英語用に少し細めのウェイト */
}

/* Work Sans フォントを.wsクラスに適用 */
/* .top-mv .image p.ws {
  font-family: 'Work Sans', sans-serif;
  font-weight: 300;
} */
.src1 p,.src3 p{
  color:#fff;
  text-shadow: 
  2px 2px 4px rgba(0, 0, 0, 0.3),  /* 通常のシャドウ */
  0 0 10px rgba(255, 255, 255, 0.5);  /* グロー効果 */
}
.src4 p{
  text-align: right;
  line-height: 1.5;
}

/* 各画像ごとのテキスト位置 */
.src1 p:nth-child(1) { top: -14%; left: 70%; }
.src1 p:nth-child(2) { top: 6%; left:77%; }
.src1 p:nth-child(3) { top: 22%; left: 70%; }

.src2 p:nth-child(1) { top: 0%; left: 35%; }
.src2 p:nth-child(2) { top: 17%; left: 42%; }
.src2 p:nth-child(3) { top: 30%; left: 30%; }

.src3 p:nth-child(1) { top: 30%; right: 25%; }
.src3 p:nth-child(2) { top: 45%; right: 20%; }
.src3 p:nth-child(3) { top: 60%; right: 15%; }

/* .src4 p:nth-child(1) { top: 20%; right: 20%; }
.src4 p:nth-child(2) { bottom: 0%; right: 0%; } */
/* .src4 p:nth-child(3) { bottom: 60%; left: 60%; } */

/* 画像のフェードインアニメーション */
@keyframes image-switch {
  0%, 20%, 100% {
    opacity: 0;
  }
  4%, 16% {
    opacity: 1;
  }
}

/* 各スライドのテキストアニメーション */
.src1 p { animation: text-fade 20s infinite; }
.src2 p { animation: text-fade 20s infinite; animation-delay: 5s; }
.src3 p { animation: text-fade 20s infinite; animation-delay: 10s; }
.src4 p { animation: text-fade 20s infinite; animation-delay: 15s; }

/* テキストの順番に表示するための個別ディレイ */
/* .src1 p:nth-child(1), .src2 p:nth-child(1), .src3 p:nth-child(1), .src4 p:nth-child(1) { animation-delay: calc(var(--delay) + 0.3s); }
.src1 p:nth-child(2), .src2 p:nth-child(2), .src3 p:nth-child(2), .src4 p:nth-child(2) { animation-delay: calc(var(--delay) + 0.6s); }
.src1 p:nth-child(3), .src2 p:nth-child(3), .src3 p:nth-child(3), .src4 p:nth-child(3) { animation-delay: calc(var(--delay) + 0.9s); } */

/* テキストのフェードインアニメーション */
@keyframes text-fade {
  0%, 20%, 100% {
    opacity: 0;
    transform: translateY(20px);
  }
  4%, 16% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* アニメーションの遅延を設定 */
.src1 { --delay: 0s; }
.src2 { --delay: 5s; }
.src3 { --delay: 10s; }
.src4 { --delay: 15s; }

.image p:nth-child(1) {
  font-size: 114px;  /* 大きめ */
}

/* 2文字目のスタイル */
.image p:nth-child(2) {
  font-size: 93px;  /* 中くらい */
}

/* 3文字目のスタイル（英語） */
.image p:nth-child(3) {
  font-size: 87px;  /* 小さめ */
}

@media (max-width: 768px) {
  .image p:nth-child(1) {
    font-size: 50px;  /* 大きめ */
  }
  .image p:nth-child(2) {
    font-size: 40px;  /* 大きめ */
  }
  .image p:nth-child(3) {
    font-size: 35px;  /* 大きめ */
  }
  .src2 p:nth-child(1) {top: 17%;left: 58%;}
  .src2 p:nth-child(2) {top: 29%;left: 70%;}
  .src2 p:nth-child(3) {top: 45%;left: 49%;}
  .top-mv {
    width: 100%;
    height: 70vh;
    aspect-ratio: 375 / 812; /* スマートフォン用画像の実際の縦横比を設定 */
    overflow: hidden;
  }
  .src4 .image-wrapper.top-image img{
    width: 80%;
  }
}
@media (min-width: 501px) and (max-width: 768px) {
  .image p:nth-child(1) {
    font-size: 5em;  /* 大きめ */
  }
  .image p:nth-child(2) {
    font-size: 4em;  /* 大きめ */
  }
  .image p:nth-child(3) {
    font-size: 3em;  /* 大きめ */
  }
  .src1 p:nth-child(1) {top: -60px;left: 68%;}
  .src1 p:nth-child(2) {top: 40px;left: 79%;}
  .src1 p:nth-child(3) {top: 128px;left: 70%;}
  .src3 p:nth-child(1) {top: 18%;left: 53%;}
  .src3 p:nth-child(2) {top: 33%;left: 66%;}
  .src3 p:nth-child(3) {top: 48%;right: inherit;left: 40%;}
  .src4 .image-wrapper.top-image {
    top: 60px;
    right: -20px;
    width: 50%; /* 必要に応じてサイズを調整 */
  }

  .src4 .image-wrapper.bottom-image {
    bottom: inherit;
    top: 310px;
    right: 28px;
    width: 40%; /* 必要に応じてサイズを調整 */
  }
}

@media (max-width: 500px) {
  .top-mv .image {
    background-size: contain;
  }
  .src1 p:nth-child(1) {top: -60px;left: 68%;}
  .src1 p:nth-child(2) {top: 5px;left: 82%;}
  .src1 p:nth-child(3) {top: 60px;left: 70%;}
  .src3 p:nth-child(1) {top: 11%;left: 53%;}
  .src3 p:nth-child(2) {top: 24%;left: 66%;}
  .src3 p:nth-child(3) {top: 36%;right: inherit;left: 40%;}

  
  .src4 .image-wrapper.top-image {
    width: 200px; /* 必要に応じてサイズを調整 */
  }

  .src4 .image-wrapper.bottom-image {
    width: 180px; /* 必要に応じてサイズを調整 */
  }
}

/* 止めるプログラム始まり */
/* .src4 { 
  animation: none !important;
  opacity: 1 !important;
}
.src1, .src2, .src3 {
  animation: none !important;
  opacity: 0 !important;
}
.src4 p:nth-child(1) {   animation: none !important;
  opacity: 1 !important; }
.src4 p:nth-child(2) { animation: none !important;
  opacity: 1 !important; }
.src4 p:nth-child(3) { animation: none !important;
  opacity: 1 !important; }
.src4 .image-wrapper {
  animation: none !important;
  opacity: 1 !important;
} */
/* 止めるプログラム終わり */

/* トップメインビジュアル終わり */


/* ボタン */
.button-container {
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 200px;
  background: #f5f5f5;
}

.button {
  position: relative;
  display: inline-block;
  min-width: 200px;
  text-align: center;
  font-size: 18px;
}

.button a {
  position: relative;
  display: inline-block;
  padding: 10px; /* 内側の線のための余白を確保するため、パディングを増やす */
  border: 2px solid #8EC3C3;
  color: #8EC3C3;
  background: #f5f8fa;
  text-decoration: none;
  width: 100%;
  box-sizing: border-box;
}

/* 内側の線を追加 */
.button a::before {
  content: '';
  position: absolute;
  top: 0px;
  right: 0px;
  bottom: 0px;
  left: 0px;
  border: 6px solid #fff;
  pointer-events: none;
}

/* ホバー時の内側の線の色も変更する場合 */
.button a:hover::before {
  border-color: rgba(255, 255, 255, 0.5); /* ホバー時は白っぽい色に */
}

/* 4本の線をflex-boxで作成 */
.lines {
  position: absolute;
  left: -18px;
  top: 50%;
  transform: translateY(-50%);
  height: calc(100% + 2px);
  display: flex;
  gap: 2px;
}

/* 4本の線を個別に作成 */
.lines::before,
.lines::after,
.line-2,
.line-3 {
  content: '';
  width: 2px;
  height: 100%;
  background: #8EC3C3;
}

.line-2,
.line-3 {
  position: relative;
  display: block;
}





















/* フッター */
footer {
  position: relative;
  width: 100%;
  display: flex;
  align-items: stretch;
  overflow: hidden;
}

.ldiv, .rdiv {
  display: flex;
  flex-direction: column;
}

.ldiv {
  background-color: #003f73;
  width: 70%;
  padding: 25px 0 25px 50px;
  display: flex;
  flex-direction: column;
  position: relative;
  justify-content: flex-end;
}

.group{
  white-space: nowrap;
}

.rdiv {
  background-color: #7ac0c9;
  width: 30%;
  padding: 25px 50px 25px 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.ldiv p, .rdiv p{
  z-index: 1;
}
.ldiv p{
  max-width: 85%;
}
.image-container {
  position: absolute;
  left: calc(70% - 120px);
  display: flex;
  align-items: center;
  height: 100%;
}

.image-container img {
  height: 100%;
  width: 55%;
  object-fit: contain;
}
.image-container.recruitcont img {
  width: 61%;
}
footer p{
  color: white;
  margin-top:10px;
  margin-bottom:0;
  line-height: 1.2;
}

.ldiv p:first-child {
  margin-top:0px;
}

.rdiv p {
  text-align: right;
}

/* セクション共通スタイル */
section {
  padding: 80px 0;
  width: 100%;
}

/* 背景色のあるセクション */
section.bglock{
  background-color: #f5f8fa;
}
section.bg{
  position: relative;
}
section.bg::before {
  content: "";
	display: block;
	width: 100%;
	height: 100%;	
  position: absolute;
	top: 0;
	left: 0;
	z-index: -1;
	opacity: 0; /* 最初は見えないように */
	transition: 2s; /* 所要時間の指定 */
  background-color: #f5f8fa;
}
section.bg.active::before {
  opacity: 1;
}

/* 最初のセクションは特別なスタイル */
section.mv-block {
  background-repeat: no-repeat;
  background-position: 100px center;
  background-size: contain; /* または cover */
  min-height: 500px;
  margin-bottom:20px;
}
section.mv-block.works{
  background-image: url('../img/works_mv_animated.svg');
}
section.mv-block.company{
  background-image: url('../img/company_mv_animated.svg');
}
section.mv-block.recruit{
  background-image: url('../img/topimage_recruit_animation2_animated.svg');
  background-position: 25% center;
}
/* レスポンシブ対応 */
@media (max-width: 768px) {
  section{
    padding: 40px 10px;
  }
  section.mv {
    background-size: 70% 100%;
  }
  section.mv-block{
    padding: 20px 0 50px 0;
    background-position: -40px -40px;
    min-height: auto;
  }
  section.mv-block.company{
    background-size: 90%;
    background-position: 0px 0px;
  }
  section.mv-block.recruit{
    background-size: 200px;
    background-position: top;
  }
  .image-container.recruitcont img {
    width: 100%;
  }
  section.mv-block h1{
    font-size: 2.5em;
    padding-right: 20px;
  }
  section.mv-block p{
    margin-top: 200px;
    line-height: 1.5;
    text-align: center;
    margin-bottom: 0;
  }
  section.mv-block.company p{
    margin-top: 240px;
  }
  footer{
    display: block;
    background: #003f73;
    position: relative;
    overflow: hidden;
  }
  .ldiv, .rdiv {
    display: block;
    width: 100%; /* 両方とも100%幅に */
    padding: 20px 9px; /* パディングを調整（必要に応じて） */
    z-index: 2;
    background: transparent;
  }
  .rdiv p{
    text-align: left;
  }
  footer .image-container{
    z-index: 0;
    position: absolute;
    left:initial;
    right:0;
    bottom:-55px;
  }
  .image-container img{
    height: 160px;
    width: auto;
    margin-bottom: -21px;
  }
}

@media (min-width: 450px) and (max-width: 768px) {
  section.mv-block p{
    margin-top: 175px;
    /* margin-bottom: -100px; */
  }
}
@media (max-width: 768px) {
  .mv-block.works .inner{
    margin-bottom: -80px;
  }
  .works.cleaning{
    margin-top: 50px;
  }
}


/* @media (max-width: 767px) {
  section.mv-block {
    background-position: 50px center;
    min-height: 300px;
  }
} */

/* アンカースクロールの調整 */
#contact{
  scroll-margin-top: 20px;
}

img.icon {
  width: 240px;
  height: auto;
  display: block;
  margin: 0 auto;
  margin-bottom: 60px;
}
.bld{
  font-weight: bold;
  color:#003f73;
}
.txtcenter{
  text-align: center;
}
a.bdbttom,
table.form-table a{
  color:#003f73;
  border-bottom:1px solid #003f73;
  padding-bottom:3px;
  text-decoration:none;
}

@media (max-width: 768px) {
  img.icon {
    width: 150px;
    margin-bottom: 30px;
  }
}

/* 揃え */
.ralign{
  text-align: right;
}
.calign{
  text-align: center;
}

.inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
}
.inner.privacyinner{
  max-width: 1010px;
  padding: 0 0px;
}
.inner.privacyinner p{
  line-height: 2;
  margin-bottom: 3rem;
  margin-top: .5rem;
}
.inner.privacyinner h3{
  color:#003f73;
  margin-bottom: 0;
}

@media (max-width: 1010px) {
  .inner.privacyinner{
    padding: 0 20px;
  }
}

.grid-3-1 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 50px;
  margin-bottom: 0rem;
}
.grid-3-1-2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 50px;
  margin-bottom: 0rem;
}

.grid-4-2 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px 50px;
  margin-bottom: 0rem;
}

.grid-3-2 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px 50px;
  margin-bottom: 0rem;
}

.grid-2-1 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 50px;
  margin-bottom: 0rem;
}

.grid-item {
  overflow: hidden;
}

.grid-item img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  object-fit: cover;
}

.text-image-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

.text-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.image-content {
  width: 100%;
  aspect-ratio: 1 / 1; /* 正方形のコンテナを作成 */
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-content img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* 画像をコンテナにフィットさせる */
  object-position: center; /* 画像を中央に配置 */
}



/* フォーム始まり */
/* PC用スタイル */
.form-table {
  width: 100%;
  margin: 0 auto;
}

.form-table th {
  width: 200px;
  text-align: left;
  vertical-align: top;
  padding:8px 0;
}

.form-table td {
  width: calc(100% - 200px);
  padding:8px 0;
}

.form-table input[type="text"],
.form-table input[type="email"],
.form-table input[type="tel"],
.form-table textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
}

.form-table textarea {
  height: 150px;
}

.privacy-policy {
  margin: 30px 0;
}

.submit-button {
  text-align: center;
  margin: 40px 0;
 }
/* チェックボックスの基本スタイル */
input[type="checkbox"] {
  appearance: none; /* デフォルトのスタイルを解除 */
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 22px; /* サイズ設定 */
  height: 22px;
  border: 2px solid #aaa; /* 枠線の色と太さ */
  margin-right: 8px; /* ラベルとの間隔 */
  position: relative;
  top: 6px; /* テキストと垂直位置の調整 */
  cursor: pointer; /* マウスカーソルをポインターに */
  background-color: #fff; /* 背景色 */
  transition: all 0.2s ease; /* アニメーション効果 */
}

/* チェックボックスにホバーした時のスタイル */
input[type="checkbox"]:hover {
  border-color: #333; /* ホバー時の枠線の色 */
  background-color: #f5f5f5; /* ホバー時の背景色 */
}

/* チェックが入っている時のスタイル */
input[type="checkbox"]:checked {
  background-color: #003f73; /* チェック時の背景色（任意の色に変更可能） */
  border-color: #003f73; /* チェック時の枠線の色 */
}

/* チェックマークのスタイル */
input[type="checkbox"]:checked::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
  width: 6px;
  height: 12px;
  border: solid #fff; /* チェックマークの色 */
  border-width: 0 2px 2px 0;
  margin-top: -2px; /* チェックマークの位置調整 */
}

/* チェックボックスのラベルのスタイル */
label input[type="checkbox"] + span {
  vertical-align: middle;
}
#form_submit input,
#form_submit_button{
  min-width: 300px;
  padding: 15px 40px;
  font-size: 16px;
  color: #003f73;
  background: transparent;
  border: 1px solid #003f73;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: bold;
 }
 #form_submit input:hover,
 #form_submit_button:hover {
  cursor: pointer;
  color: #fff;
  background: #003f73;
 }
 
 /* SP用 */
 @media screen and (max-width: 768px) {
  .image-content {
    aspect-ratio: 10 / 6; /* 横:縦 = 100:70 の比率に設定 */
    align-items: center;
    justify-content: center;
  }
  .submit-button input[type="submit"] {
    min-width: 280px;
    padding: 12px 30px;
    font-size: 15px;
  }
  .inner{
    padding:0;
  }

  input[type="checkbox"] {
    width: 20px; /* SPでのサイズ */
    height: 20px;
  }
  
  input[type="checkbox"]:checked::before {
    width: 5px;
    height: 10px;
  }

  .form-table,
  .form-table tbody,
  .form-table tr,
  .form-table th,
  .form-table td {
    display: block;
    width: 100%;
  }

  .form-table th {
    padding: 10px 0 5px;
  }

  .form-table td {
    padding: 5px 0 10px;
  }
  .grid-3-1-2 {
    grid-template-columns: repeat(2, 1fr); /* 2列グリッド */
    grid-template-areas: 
      "main main"  /* 1列目は2カラム分使用 */
      "sub1 sub2"; /* 2・3列目は1カラムずつ */
  }

  /* 各エリアの配置 */
  .grid-3-1-2 .grid-item:first-child {
    grid-area: main; /* 最初の要素は2カラム分 */
  }
  
  .grid-3-1-2 .grid-item:nth-child(2) {
    grid-area: sub1;
  }
  
  .grid-3-1-2 .grid-item:nth-child(3) {
    grid-area: sub2;
  }
}

/* フォーム終わり */


/* ここから旧ヘッダー */

/* ナビゲーションのスタイル */
nav ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}
nav ul a{
  text-decoration: none;
  color:#9d9d9f;
}
nav ul a:hover{
  color:#003f73;
}
@media (min-width: 769px) {
  nav ul li+li{
    margin-left:0px;
  }
  nav ul {
    gap:50px;
  }
}

/* ここまで旧ヘッダー */






/* ここから新ヘッダー */
nav ul li.current{
  position: relative;
}
@media (min-width: 769px) {
  nav ul li.current::after {
    content: '';
    position: absolute;
    bottom: -8px; /* 下線との距離を調整 */
    left: 0;
    width: 100%;
    height: 3px; /* 線の太さ */
    background-color: #000; /* 線の色 */
  }
}
/* ハンバーガーメニュー */
.hamburger {
  display: none;
  width: 35px;
  height: 35px;
  position: relative;
  cursor: pointer;
  margin-top: 20px;
  border: 2px solid #7ac0c9;
  background: #fff;
  border-radius: 4px;
}

.hamburger span {
  display: block;
  width: 20px;
  height: 3px;
  background-color: #7ac0c9;
  position: absolute;
  transition: all 0.3s;
}

.hamburger span:nth-child(1),.hamburger span:nth-child(2),.hamburger span:nth-child(3){
  left:6px;
}
.hamburger span:nth-child(1) {
  top: 7px;
}
.hamburger span:nth-child(2) {
  top: 14px;
}
.hamburger span:nth-child(3) {
  top: 21px;
}

/* ハンバーガーメニューアクティブ時 */
.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.header-content {
  display: flex;
  justify-content: space-between;
}
@media screen and (min-width: 769px) {
  .header-content {
    align-items: center;
  }
}



/* スマートフォン用スタイル */
@media (max-width: 768px) {
  nav {
    display: none;
    position: absolute;
    top: 0px;
    left: 0;
    width: 100%;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }

  nav.active {
    display: block;
  }

  nav ul {
    flex-direction: column;
  }

  nav li {
    position: relative; 
  }
  nav li a {
    display: block;     /* ブロック要素として表示 */
    width: 100%;        /* 幅を親要素いっぱいに */
    height: 100%;       /* 高さを親要素いっぱいに */
    padding: 15px;  /* 上下左右の余白 */
    border-bottom:1px solid #ddd;
  }
  nav li:last-child a{
    border-bottom:0px;
  }

  .hamburger {
    display: block;
  }
}

/* ここまで新ヘッダー */

/* works */
.pmshort p{
  margin-top:15px;
  line-height: 1.5;
}
.ptgray{
  color:#9d9d9f;
}
.ptlblue{
  color:#7ac0c9;
}
.bdlblue{
  display: grid;
  align-items: end; 
  padding-bottom: 40px;
}
.bdlblue p{
  border:1px solid #7ac0c9;
  margin:0;
  padding: 30px 0;
}
.pmshort{
  margin-bottom: 20px;
}
.mb10{
  margin-bottom: 10px;
}
.mb20{
  margin-bottom: 20px;
}
.mb30{
  margin-bottom: 30px;
}
.mb40{
  margin-bottom: 40px;
}
.mb50{
  margin-bottom: 50px;
}
.mb60{
  margin-bottom: 60px;
}
.mb100{
  margin-bottom: 100px;
}
.fz12{
  font-size: 1.2rem;
}
.beforetxt{
  overflow:visible;
}
.beforetxt,.aftertxt {
  position: relative;  /* 親要素に相対位置を設定 */
  padding-bottom: 40px;  /* 下部に余白を作る */
}
.beforetxt::after {
  content: "before";
  position: absolute;  /* 絶対位置指定 */
  bottom: 5px;        /* パディングの範囲内に配置 */
  left: 50%;
  transform: translateX(-50%);
}
.beforetxt::before {
  content: "";
  position: absolute;
  top: 40%;          /* 上から50%の位置 */
  right: -43px;       /* 画像の左側に配置（距離は調整可能） */
  transform: translateY(-40%);  /* 三角形を垂直中央に調整 */
  /* 三角形を作成 */
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 40px 0 40px 30px;  /* 三角形のサイズ調整 */
  border-color: transparent transparent transparent #7ac0c9;  /* 三角形の色 */
  z-index: 1;
}
.aftertxt::after {
  content: "after";
  position: absolute;  /* 絶対位置指定 */
  bottom: 5px;        /* パディングの範囲内に配置 */
  left: 50%;
  transform: translateX(-50%);
}

/* company */
.greeting .grid-2-1 {
  display: grid;
  grid-template-columns: 280px 1fr;  /* 1つ目を280px、2つ目を残りのスペースに */
  gap: 10px 50px;
  margin-bottom: 0rem;
}
.greeting .grid-2-1 p{
  margin-top:0;
}
.president-voice{
  word-break: normal;
  overflow-wrap: normal;
}


.equipment p{
  word-break: normal;      /* word-break のデフォルト値 */
  overflow-wrap: normal;   /* overflow-wrap のデフォルト値 */
  line-height: 2;
  margin-bottom: 30px;
}
.equipment h3{
  color:#9d9d9f;
  font-size: 1em;
}
.company_info .inner {
  position: relative; /* 基準点となる要素 */
  padding-top: 30px; /* 画像の高さ分の余白を確保 */
}

.company_info table {
  position: relative;
  width: 100%;
  line-height: 2;
}
.company_info table th{
  text-align: left;
  font-weight: normal;
  width: 200px;
  vertical-align: top;
  padding: 8px 0;
}
.company_info table td{
  padding: 8px 0;
}
.company_info table ul,.company_info table ol{
  padding-left: 20px;
  margin: 0;
}
.company_info table ul{
  padding-left: 0;
  list-style-type: none;
}

.company_info img {
  position: absolute;
  top: 120px;
  right: -50px;
  width: 285px; /* 画像サイズを指定 */
  height: auto;
}

/* SP用 */
@media screen and (max-width: 768px) {
  .company_info .inner {
    padding-top: 0;
  }

  .company_info img {
    width: 200px;
    top: 50px;
    right: 10px;
  }
  .pmshort p{
    margin-top: 8px;
  }
  .bdlblue p{
    padding: 15px 0;
  }
  .bdlblue {
    padding-bottom: 10px;
  }
  .beforetxt::before {
    border-width: 20px 0 20px 15px;  /* 三角形のサイズ調整 */
  }
  .grid-3-1-2{
    gap: 10px 20px;
  }
  .beforetxt::before {
    right: -19px;       /* 画像の左側に配置（距離は調整可能） */
  }
}

/* トップページ */
#works .inner,#recruit .text-image-section,
#company .text-image-section{
  position: relative;
}

#company .button-area{
  position: absolute;
  right: 310px;
  bottom:-10px;
}
#works .button-area{
  position: absolute;
  top:350px;
  right: 0;
}
#works .grid-4-2 p{
  line-height: 1.5;
}
#recruit .button-area{
  position: absolute;
  bottom:0;
  right: 0px;
}
#recruit .image-content{
  width: 100%;
}
#recruit .text-content{
  padding-left: 50px;
}
#recruit{
  padding-bottom: 0;
}
#recruit h2{
  margin-bottom: 0;
}
#recruit .text-image-section {
  grid-template-columns: 30% 50%;
}

/* ボタン */
.btn-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.button-wrapper {
  position: relative;
}

.lines {
  position: absolute;
  left: -21px;
  top: 24px;
  transform: translateY(-50%);
  width: 15px;
  height: 92%;
}

.lines::before,
.lines::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 100%;
  background-color: #8EC3C3;
}

.lines::before {
  left: 0;
  box-shadow: 5px 0 0 #8EC3C3;
}

.lines::after {
  left: 10px;
  box-shadow: 5px 0 0 #8EC3C3;
}

.slide-button {
  position: relative;
  padding: 4px 30px;
  font-size: 18px;
  color: #7ac0c9;
  background-color: #e7f4fd;
  border: 5px solid #ffffff;
  cursor: pointer;
  overflow: hidden;
  z-index: 1;
  transition: color 0.3s ease;
  outline: 2px solid #8EC3C3;
  /* リンク用の追加スタイル */
  display: inline-block;
  text-decoration: none;
}

.slide-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -130%;
  width: 120%;
  height: 100%;
  background-color: #ffffff;
  transition: left 0.3s ease;
  z-index: -1;
  transform: skewX(-25deg);
}

.slide-button:hover::before {
  left: -10%;
}

.src4 .image-wrapper img.pc,.pc{
  display: block;
}
.src4 .image-wrapper img.sp,.sp{
  display: none;
}


@media (min-width: 769px) and (max-width: 1000px) {
  #works .button-area{
    right: 100px;
  }
}


@media (max-width: 768px) {
  .slide-button{
    background-color: #fff;
  }
  .header-content {
    grid-template-columns: 1fr auto;
  }

  nav {
    display: none;
    grid-column: 1 / -1;
  }

  nav.active {
    display: grid;
    z-index: 1;
  }

  nav ul {
    grid-auto-flow: row;
  }

  .hamburger {
    display: block;
    z-index: 2;
  }

  .grid-3-1 {
    grid-template-columns: 1fr;
  }

  .grid-4-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3-2 {
    grid-template-columns: repeat(2, 1fr);
    gap:10px 20px;
  }
  .greeting .grid-2-1,
  .grid-2-1 {
    grid-template-columns: 1fr;
  }

  .text-image-section {
    grid-template-columns: 1fr;
    display: flex;
    flex-direction: column;
  }

  .text-image-section .text-content {
    order: 1;
    display: flex;
    flex-direction: column;
  }

  .text-image-section .image-content {
    order: 2;
  }

  .text-image-section .button-wrapper {
    order: 3;
    margin-top: 1rem;
  }
  .greeting .grid-item img {
    width: 80%;
    margin: auto;
  }
  
  .greeting .grid-2-1 p.fz12 {
    text-align: center;
    margin-top: 10px;
  }
  .company_info table {
    padding-top: 200px;
  }
  #company{
    padding:40px 0 80px 0;
    margin-top:-160px;
  }
  #recruit .text-content,
  #company .text-content{
    padding:0 10px;
  }
  #company .button-area{
    right: 20px;
    bottom: -70px;
  }
  #works .button-area{
    top: inherit;
    right: 10px;
    bottom: -80px;
  }
  section#works{
    padding: 40px 10px 120px 10px;
  }
  section#works .mb60{
    margin-bottom: 30px;
  }
  #works .grid-item{
    display: flex;
    flex-direction: column-reverse;
  }
  #works .grid-4-2{
    gap:10px 30px;
  }
  section#recruit{
    padding: 40px 0;
  }
  #recruit .button-area{
    bottom: -80px;
    right: 20px;
  }
  #recruit .image-content{
  width: 100%;
  }
  .src4 .image-wrapper img.pc,
  .src4 .image-wrapper img.pc,.pc{
    display: none;
  }
  .src4 .image-wrapper img.sp,.sp{
    display: block;
  }
}

/* AOS 背景色変化のアニメーション */
.bg-fade {
  background-color: transparent;
  transition: background-color 1.5s ease;
}
.bg-fade.aos-animate {
  background-color: #f0f0f0;
}
/* 背景色セクションのコンテンツは即時表示 */
.bg-fade .content {
  opacity: 1;
}
.red{
  color:red;
}
.rdiv a{
  color:#fff;
}

/* トップボタン */
#page-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99;
  /* font-size: 14px;
  font-weight: bold; */
}

#page-top a {
  /* background: #999;
  text-decoration: none;
  color: #fff;
  width: 50px;
  height: 50px;
  text-align: center; */
  display: flex;           /* flexboxを使用 */
  justify-content: center; /* 水平方向の中央揃え */
  align-items: center;     /* 垂直方向の中央揃え */
  border-radius: 4px;
  opacity: 0.7;
  transition: all .3s ease;
}
#page-top a img{
  width: 80px;
}

#page-top a:hover {
  text-decoration: none;
  opacity: .5;
}