body{
  color: #474747;
  font-family: "Crimson Text", serif;
  font-weight: 400;
  font-style: normal;

}

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

li{
  list-style: none;
}

img{
  width: 100%;
}



/* header */

.header{
   display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 20px 20px 0 20px;
  background-color: #326291;
  
}

.top-wrapper{
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  padding: 20px;
}

.nav ul{
  display: flex;
  justify-content: space-between;
}

.nav li{
 margin-right: 20px;
 letter-spacing: .2em;
 font-size: 1.5rem;
}

.nav li a{
color: #fff;
}

.logo img{
  width: 80px;
  margin-bottom: 2px;
}

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

.logo h1{
  font-size: 1.5rem;
  white-space: nowrap;
  margin-left: 20px;
  color: #fff;
  letter-spacing: .2em;
}

.mainvisual{
  background-image: url("../img/haikei.jpg");
  height: 100vh;
  width: 100%;
 background-size: cover;
background-position: center;
position: absolute;
top: 0;
z-index: -1;
overflow: hidden;

}

.mainvisual::after{
  content: "";
  position: absolute;
  display: inline-block;
  background: #fff;
  width: 500px;
  height: 2em;
  vertical-align: middle;
  right: -100px;
  bottom: 100px;
}

.mainvisual:after {
  transform: rotate(-45deg);
}



.mainvisual h2{
  position: absolute;
  top: 30%;
  color: #fff;
  font-size: 6rem;
  padding: 0 5%;
  letter-spacing: .1em;
}

.mainvisual span{
  font-size: 2rem;
  padding: 0 5%;
}

.title{
  text-align: center;
  position: relative;
}

.title::after{
  position: absolute;
  content: "";
  width: 200px;
  height: 70px;
  top: 75%;
  background-image: url('../img/senn.png');
  background-position: center;
  background-size: contain;
  right: calc(50% - 100px) ;
}

.title h3{
  font-weight: bold;
  font-size: 4rem;
}

.title p{
  font-weight: normal;
  font-size: 1rem;
}

.wrapper{
  margin: 0 auto;
  max-width: 1200px;
  padding: 50px;
}

.title-in{
  margin: 100px 0 40px 0;
  text-align: center;
  font-size: 1.5rem;
  align-items: center;
}

.title-in img{
object-fit: cover;
height: 100%;
}


.title-in p{
  margin-left: 30px;
  padding: 5px;
  background-color: #d9d9d9;
  font-size: 1rem;
  border-radius: 5px;
  width: fit-content;
margin: 0 auto;
margin-bottom: 10px;
}

.c-txt {
  padding-bottom: 5px;
  position: relative;
}
.c-txt::before {
  background: #fff;
  content: '';
  width: 100%;
  height: 2px;
  position: absolute;
  left: 0;
  bottom: 0;
   transform-origin: center top;
  transform: scale(0, 1);
  transition: transform .3s;
}
.c-txt:hover::before {
   transform-origin: center top;
  transform: scale(1, 1);
}


/* header */

.u-pc {
  display: none;

}

svg{
    transform: translateY(-1px);

}

@media screen and (min-width: 768px) {
  .u-pc {
    display: block;
  }
  
  .u-sp {
    display: none;
  }
}

/* main */

/* service */

.service-text{
  display: flex;
  text-align: center;
  justify-content: space-between;
}

.text-left,.text-right{
  padding: 30px;
  width: 40%;
}
.text-left span,.text-right  span{
  display: block;
  font-size: 1rem;
}
.text-left h4,.text-right h4{
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.text-left img,.text-right img{
  width: 150px;
}
.text-left p,.text-right p{
  text-align: left;
}

/* service-work */


.service-work{
  background-color: #326291;
  padding-bottom: 50px;
  width: 100%;
  position: relative;
}

.service-work h6{
text-align: center;
padding: 30px 0;
font-size: 2rem;
}


.service-work a{
color: #fff;
object-fit: cover;
}

.service-work img{
object-fit: cover;
height: auto;
}

.slick-slide {
  margin: 0 15px;
}

/* grid */

.grid {
  display: grid;
  grid-template-columns: repeat(3 , 1fr);
  gap: 20px;
  margin: 100px 0;
}
.grid img{
  height: 350px;
  object-fit: cover;
  width: 100%;
}

.item-text h4{
  font-size: 1.5rem;
  padding: 5px;
}

.item-text p{
  background-color: #d9d9d9;
  padding: 5px;
  border-radius: 5px;
  font-size: 1rem;
}

.fadein{
  opacity: 0;
  transition: all 1s;
  height: auto;
}

/* form */

.form{
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
/* background-color: lightblue; 背景色をlightblueに変更 */
padding: 0;
align-items: center;
width: 100%;
}

form {
  margin: 0 auto;
background-color: #fff;
padding: 30px;
border-radius: 8px;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
max-width: 800px;
width:100%;
}

h2 {
color: #333;
}

dd {
display: block;
margin: 20px 0 0 0;
font-weight: bold;
color: #555;
}

input, select, textarea {
width: 100%;
padding: 10px;
margin-bottom: 15px;
box-sizing: border-box;
border: 1px solid #ccc;
border-radius: 4px;
margin: 10px 0 0 0;
}


.textarea {
resize: vertical;
}

.button {
background-color: #326291;
color: #fff;
padding: 12px 20px;
border: none;
border-radius: 4px;
cursor: pointer;
width: 100%;
display: inline-block;
width: fit-content;
border: #326291 1px solid;
}


.button{
	margin-top:30px;
	width:100%;
}

.button:hover {
background-color: #fff;
color: #326291;
}

.contact-text{
  text-align: center;
  margin: 100px 0 50px 0;
}

.form-center{
text-align: center;

}

/* footer */

.footer{
  padding: 50px;
}

.footer-back{
  padding: 0px 5px 5px 30px ;
  border-bottom:2px solid #474747 ;
  display: block;
  width: fit-content;
  font-size: 1.5rem;
}

.footer-cot{
  padding: 0px 30px 5px 5px ;
  border-bottom:2px solid #474747 ;
  display: block;
  width: fit-content;
  font-size: 1.5rem;
  margin-left: auto;
}

.footer-cot:hover{
margin-right: -10px;
transition: all 0.4s ease 0s;
}

.footer-back:hover{
margin-left: -10px;
transition: all 0.4s ease 0s;
}

.footer p{
  padding-top: 50px;

}



@media (max-width: 1100px) {
  .mainvisual span{
    display: block;
    padding: 50px 0;
  }
}


@media (max-width: 900px) {



.top-wrapper{
display: block;
}

.logo a{
  justify-content: left;
}

.nav ul{
  justify-content: right;
}


.mainvisual h2{
  font-size: 3.5rem;
}

.mainvisual span{
  font-size: 1.2rem;
  padding: 40px 0;
}

.mainvisual::after{
  height: 1em;

}

/* grid */

.grid {
  display: grid;
  grid-template-columns: repeat(2 , 1fr);
  gap: 20px;
  margin: 100px 0;
}

.item-text p{
  font-size: 1.5rem;
  padding: 5px;
}

.item-text span{
  background-color: #d9d9d9;
  padding: 5px;
  border-radius: 5px;
  font-size: 1rem;
}

/* service */

.service-text{
  display: block;
}

.text-left,.text-right{
  padding: 20px;
  width: 100%;
}

.text-left{
  margin-top: 30px;
}


}



@media (max-width: 600px) {

  .wrapper{
  padding: 20px;
}

.footer{
  padding: 20px;
}

.title h3{
  font-weight: bold;
  font-size: 2rem;
}

.title p{
  font-weight: normal;
  font-size: 1rem;
}

.nav li{
 margin-right: 0px;
 margin-left: 20px;
 font-size: 1.2rem;
}

.mainvisual h2{
  font-size: 3rem;
}

/* .header */

.logo img{
  width: 50px;
}



.logo h1{
  font-size: 1.2rem;
}

/* grid */

.grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 20px;
  margin: 100px 0;
}

.item-text p{
  font-size: 1.5rem;
  padding: 5px;
}

.item-text span{
  background-color: #d9d9d9;
  padding: 5px;
  border-radius: 5px;
  font-size: 1rem;
}
}