
#mainvisual {
    position: relative;
    height: 780px;
    background: center / cover no-repeat url(../images/top/mainvisual.jpg);
    margin-bottom: 80px;
}
#mainvisual h1 {
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    line-height: 2;
}
#mainvisual h1 span {
    font-size: 40px;
    font-weight: 500;
    background: #fff;
    padding: 16px 24px;
}
#mainvisual h1 span br{
  display: none;
}
#mainvisual h1 span:first-of-type {
    border-radius: 8px 8px 8px 0;
}
#mainvisual h1 span:last-of-type {
    border-radius: 0px 8px 8px 8px;
}
#about {
    background: #F2EFE9;
    padding: 80px 0 100px;
    margin-bottom: 120px;
}
#about .inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: min(98%, 1200px);
    margin: 0 auto;
}
#about .inner div:first-of-type {
    width: 40%;
}
#about .inner div:last-of-type {
    width: 53%;
}
.md{
  display: none;
}
.subtitle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    margin-bottom:8px;
}
.subtitle::before {
    content: "";
    display: block;
    width: 6px;
    height: 6px;
    background: #BB6F0F;
    border-radius: 50px;
}
h2 {
    font-size: 32px;
    font-family: "Lato", sans-serif;
    font-weight: 700;
}
#about h2 {
    margin-bottom: 32px;
}
#about h3 {
    font-size: 24px;
    font-weight: 700;
    color: #BB6F0F;
    margin-bottom: 24px;
}
#service {
    display: flex;
    justify-content: space-between;
    width: min(94%, 1200px);
    margin: 0 auto 120px;
    scroll-margin-top:80px;
}
#service > div {
    width: 38%;
}
#service h2 {
    margin-bottom: 24px;
}
#service ul {
    width: 58%;
}
#service ul li {
    padding: 20px 0;
    border-bottom: dashed 1px #BB6F0F;
}
#service ul li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
#service ul li a div{
  transition: .3s;
}
#service ul li a:hover div {
  opacity: 0.75;
}
#service ul li h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}
#service ul li p {
    font-size: 14px;
    color: #747474;
}
#service ul li button {
    content: "";
    display: block;
    width: 32px;
    height: 32px;
    background: center / cover no-repeat url(../images/top/ico_chevron-right.svg);
}
#service ul li a:hover button {
  animation: buttonAnimation 0.3s forwards;
}
@keyframes buttonAnimation{
  0%{
    transform: rotate(0deg);
  }
  30%{
    transform: rotate(30deg);
  }
  
  60%{
    transform: rotate(-30deg);
  }
  100%{
    transform: rotate(0deg);
  }
}
#company {
    background: #F2EFE9;
    padding: 60px 0 100px;
    margin-bottom: 120px;
}
#company .subtitle {
    justify-content: center;
}
#company h2 {
    text-align: center;
    margin-bottom: 40px;
}
#company .inner {
    display: flex;
    justify-content: space-between;
    width: min(94%, 1200px);
    margin: 0 auto;
}
#company .inner div {
    width: 48%;
}
#company .inner div:first-of-type {
    padding-left: 40px;
}
#company dl {
    display: flex;
    gap: 2%;
    line-height: 1.8;
    margin-bottom: 16px;
}
#company dt {
    width: 15%;
    font-size: 14px;
    font-weight: 500;
    color: #747474;
}
#company dd {
    width: 85%;
}
#company iframe {
    width: 100%;
    height: 100%;
    filter: grayscale(1);
}
#news {
    margin-bottom: 120px;
    scroll-margin-top: 80px;
}
#news .subtitle {
    justify-content: center;
}
#news h2 {
    text-align: center;
    margin-bottom: 24px;
}
#news ul {
    width: min(94%,800px);
    margin: 0 auto;
}
#news ul li {
    display: flex;
    padding: 20px 0;
    margin-bottom: 16px;
    border-bottom: dashed 1px #BB6F0F;
}
#news ul li span {
    width: 20%;
    font-weight: 500;
    color: #747474;
    line-height: normal;
}
#news ul li a {
   width: 80%; 
}
#contact {
    color: #fff;
    background: #BB6F0E;
    padding: 72px 0;
}
#contact h2 {
    font-size: 60px;
    text-align: center;
    margin-bottom: 32px;
    line-height: 1.8;
}
#contact p {
    width: fit-content;
    font-weight: 500;
    margin: 0 auto 32px;
}
#contact a {
    display: flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    color: #fff;
    background: #31230F;
    padding: 12px 64px;
    border-radius: 50px;
    margin: 0 auto;
    transition: .3s;
}
/* modal */

.remodal {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.remodal-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: left;
}
.remodal-overlay {
    background: rgba(49, 35, 15, .2);
    backdrop-filter: blur(10px);
}
.remodal-close {
    width: 20px;
    height: 20px;
    top: 32px;
    left: auto;
    right: 40px;
}
.remodal-close:before {
    font-size: 32px;
    line-height: 20px;
    width: 20px;
    content: "\00d7";
    color: #000;
}
.remodal.news {
    display: block;
    width: 98%;
    max-width: 1200px;
    height: 90%;
    background: #F2EFE9;
    padding: 80px 0;
    border-radius: 20px;
    margin: 0 auto;
    box-shadow: -50px -50px 40px -50px rgba(0,0,0,0.16);
    overflow-y: scroll;
}
.remodal.news .inner {
    width: min(98%, 1000px);
    margin: 0 auto;
}
.remodal.news h3 {
    font-size: 28px;
    font-weight: 700;
    color: #121212;
    margin-bottom: 8px;
}
.remodal.news span {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #A2A3A6;
    margin-bottom: 32px;
}
.remodal.news .thumb {
    margin-bottom: 32px;
}
.remodal.news .thumb img {
    object-fit: cover;
    height: auto;
}
.remodal.service {
    display: block;
    width: 98%;
    max-width: 600px;
    background: #F2EFE9;
    padding: 80px 0;
    border-radius: 20px;
    margin: 0 auto;
    box-shadow: -50px -50px 40px -50px rgba(0,0,0,0.16);
}
.remodal.service .inner {
    width: min(98%, 480px);
    margin: 0 auto;
}
.remodal.service  h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 32px;
}
.remodal.contact {
    display: block;
    width: 98%;
    max-width: 1200px;
    max-height: 90%;
    background: #F2EFE9;
    padding: 80px 0;
    border-radius: 20px;
    margin: 0 auto;
    box-shadow: -50px -50px 40px -50px rgba(0,0,0,0.16);
    overflow-y: scroll;
   position: relative;
}
.remodal.contact .inner {
    width: min(98%, 960px);
    margin: 0 auto;
}
.remodal.contact .recapcha_policy{
  text-align: right;
  font-size:10px;
  color:#666;
  margin-bottom:24px;
}
.wpcf7-not-valid-tip{
  font-size: 12px;
  color: #BB0F0F;
}
.wpcf7-form.sent{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
}
.remodal.contact dl {
    display: flex;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: dashed 1px #8A7559;
}
.remodal.contact dl:last-of-type {
    margin-bottom: 16px;
}
.remodal.contact dt {
    width: 25%;
    font-weight: 500;
}
.remodal.contact dt p {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.remodal.contact dt span {
    font-size: 12px;
    color: #fff;
    background-color: #BB0F0F;
    padding: 4px 12px;
    border-radius: 4px;
    white-space: nowrap;
} 
.remodal.contact dd {
    width: 63%;
    padding-right: 32px;
}
.remodal.contact dd input,
.remodal.contact dd textarea {
    width: 100%;
    background: #fff;
    padding: 8px 20px;
    border: solid 1px #DEDEDE;
    border-radius: 6px;
    box-shadow: 0px 1px 4px -50px rgba(0,0,0,0.08) inset;
}
.remodal.contact input::placeholder,
.remodal.contact textarea::placeholder {
    font-size: 12px;
    color: #CBCBCB;
}
.remodal.contact .submit {
    width: fit-content;
    font-weight: 700;
    color: #fff;
    background: #31230F;
    padding: 12px 60px;
    border-radius: 50px;
    margin: 0 auto;
    cursor: pointer;
}
.remodal.contact .submit p {
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: inherit;
}
.remodal.contact .wpcf7-spinner {
    display: none;
}
.remodal.contact .wpcf7-response-output {
    border: none;
    text-align: center;
}

@media screen and (max-width:1080px){
  #mainvisual h1 span{
    font-size: 32px;
  }
  #about .inner{
    align-items: unset;
  }
  #about .inner div:first-of-type {
    width: 43%;
  }
  #about .inner div:first-of-type img{
    object-fit: cover;
    height: 100%;
  }
  #company .inner div:first-of-type {
    padding-left: 0;
  }
  #company dt{
    width: 90px;
  }
  #contact h2{
    font-size: 56px;
    margin-bottom: 24px;
  }
  .remodal.contact dt{
    width: 240px;
  }
  .remodal.contact dd {
    width: calc(100% - 260px);
    padding-left: 16px;
  }
  .remodal.contact dt label{
    font-size: 15px;
  }
  .remodal.contact dt span{
    font-size: 10px;
    padding: 2px 8px;
  }
  .remodal.news h3 {
    font-size: 24px;
    line-height: 1.8;
  }
}

@media screen and (max-width:768px){
  .subtitle{
    font-size: 13px;
  }
  h2{
    font-size: 30px;
  }
  p{
    font-size: 15px;
    line-height: 1.5;
  }
  .md{
    display: block;
  }

  #mainvisual{
    margin-bottom: 100px;
  }
  #mainvisual h1 span{
    font-size: 28px;
  }
  #about .inner{
    flex-wrap: wrap;
    width: 100%;
  }
  #about .inner div:first-of-type{
    width: min(600px,100%);
    margin-inline:auto;
    margin-bottom: 0;
    order: 2;
  }
  #about .inner div:last-of-type{
    width: min(600px,94%);
    margin-inline:auto;
    order: 1;
    margin-bottom: 80px;
  }
  #about h2 {
    margin-bottom: 28px;
  }
  #about h3 {
    font-size: 18px;
    line-height: 1.5;
  }
  
  #service{
    flex-wrap: wrap;
  }
  #service > div,
  #service ul{
    width: min(600px,100%);
    margin-inline:auto;
  }
  #service > div{
    margin: 0 auto 40px;
  }
  
  #company .inner{
    flex-wrap: wrap;
  }
  #company .inner div:first-of-type{
    width: min(600px,100%);
    margin-bottom: 24px;
  }
  #company .inner div:last-of-type{
    width: min(600px,100%);
    position: relative;
    overflow: hidden;
    padding-top: min(535px,89.2%);
  }
  #company .inner div:last-of-type iframe{
    position: absolute;
    top: 0;
    left: 0;
  }
  
  #service ul li h3{
    font-size: 19px;
    margin-bottom: 0;
    line-height: 1.8;
  }
  #service ul li p{
    font-size: 13px;  
  }
  #service ul li{
    margin-bottom: 8px;
  }
  #service ul li a div {
    width: calc(100% - 52px);
  }
  .remodal.service{
    padding: 64px 0;
  }
  .remodal.service .inner {
    width: min(90%, 480px);
    margin: 0 auto;
  }
  .remodal.service h3{
    font-size: 20px;
    line-height: 1.8;
    margin-bottom: 16px;
  }
  .remodal.service .inner p{
    font-size: 15px;
    line-height: 1.8;
  }
  
  #company > *,
  #company .inner{
    width: min(600px,94%);
    margin-inline:auto;
  }
  #company h2{
    text-align: left;
  }
  #company .subtitle{
    justify-content: flex-start;
  }

  #company dl{
    font-size: 15px;
  }
  
  #news h2{
    margin-bottom: 16px;
  }
  #news ul li{
    font-size: 15px;
  }
  #news ul li span {
    width: 140px;
  }
  #news ul li a {
    width: calc(100% - 140px);
  }
  #contact{
    padding: 64px 0;
  }
  #contact h2{
    font-size: 48px;
    margin-bottom: 12px;
  }
  #contact p{
    font-size: 14px;
    line-height: 1.8;
  }
  .remodal.contact .inner {
    width: min(94%, 960px);
  }
  .remodal.contact dl{
    flex-wrap: wrap;
    width: min(600px,100%);
    margin-inline:auto;
  }
  .remodal.contact dl:first-of-type{
    padding-top: 0;
  }
  .remodal.contact dt label{
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 8px;
  }
  .remodal.contact dl dt,
  .remodal.contact dl dd{
    width: 100%;
  }
  .remodal.contact dl dd{
    padding: 0;
  }
  .remodal.contact dt p{
    justify-content: flex-start;
    gap:12px;
  }
  .remodal.contact{
    padding: 60px 0;
  }
  .remodal.news{
    padding: 60px 0;
  }
  .remodal.news h3 {
    font-size: 20px;
  }
  .remodal.news .inner {
    width: min(90%, 1000px);
  }
  .remodal.news .inner p{
    line-height: 1.8;
  }


}

@media screen and (max-width:540px){
  .subtitle{
    font-size: 12px;
  }
  h2{
    font-size: 28px;
  }
  p{
    font-size: 14px;
    line-height: 1.5;
  }
  #mainvisual {
    position: relative;
    height: 0;
    padding-top: 106%;
    margin-bottom: 80px;
  }
  #mainvisual h1{
    line-height: 0;
    left: 8px;
  }
  #mainvisual h1 span{
    font-size: 22px;
    white-space: nowrap;
  }
  #mainvisual h1 span:first-of-type{
    border-radius: 8px 8px 0 0;
    display: block;
    width: fit-content;
    line-height: 1.8;
    padding: 4px 8px;
    transform: translateY(4px);
  }
  #mainvisual h1 span:last-of-type {
    border-radius: 0px 8px 8px 8px;
    line-height: 1.8;
    padding: 4px 8px;
  }
  #mainvisual h1 span br{
    display: block;
  }
  #service ul li h3{
    font-size: 18px;
  }
  #service ul li p{
    font-size: 12px;
  }
  #service ul li a{
    gap: 0 20px;
  }
  #service ul li{
    margin-bottom: 16px;
  }
  #company dl {
    font-size: 14px;
  }
  
  .remodal.service{
    padding: 40px 0;
  }
  .remodal.service h3{
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 16px;
  }
  .remodal.service .inner p{
    font-size: 14px;
    line-height: 1.8;
  }
  
  #news h2{
    margin-bottom: 8px;
  }
  #news ul li span {
    width: 120px;
  }
  #news ul li a {
    width: calc(100% - 120px);
  }
  #news ul li{
    font-size: 14px;
  }
  .remodal-close {
    top: 16px;
    right: 16px;
  }
  #contact{
    padding: 40px 0 64px;
  }
  #contact h2{
    font-size: 40px;
    margin-bottom: 0;
  }
  #contact p{
    width: fit-content;
    margin-inline: auto;
    padding: 0 3%;
  }
  .remodal.contact dl{
    padding: 16px 0;
  }
  .remodal.contact dt p{
    gap:8px;
  }
  .remodal.contact dt span {
    font-size: 8px;
    padding: 1px 8px 2px;
  }
  .remodal.news h3 {
    font-size: 16px;
  }
}
@media screen and (max-width:350px){
  #mainvisual h1 span{
    font-size: 20px;
  }
}