@charset "utf-8";

.main{
  overflow:inherit;
}
.fv{
  width:93%;
  margin:-2.5rem 0 5rem auto;
}

.fv h1{
  font-size:clamp(1.875rem, 1.42rem + 1.52vw, 3.125rem);
  line-height: 1.5;
}

.fv-wrap{
  display:flex;
  justify-content: space-between;
  overflow:hidden;
  align-items: center;
  margin-top: -5rem;
}

.fv-img{
  width:calc(100% - 550px);
  position:relative;
}

.fv-img img:first-child{
  position: absolute;
  width: 44%;
  top: 12%;
  left: 13%;
}

.fv-img img:last-child{
  width: 105%;
}

.fv-text{
  width:450px;
}

.fv-text h2{
  font-size:clamp(0.875rem, 0.739rem + 0.45vw, 1.25rem);
  margin-bottom:1rem;
}

.works{
  width:100%;
  margin:0 0 10rem;
}

.loopWrap {
  display: flex;
  align-items: center;
  overflow: hidden;
  height: auto;
}

.loopWrap>section {
  display: flex;
  animation: loop-slide 80s infinite linear 1s both;
}

@keyframes loop-slide {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

.works .newsDetailImg{
  aspect-ratio:376/285;
  border-radius:2rem;
  overflow: hidden;
  margin-bottom:1rem;
}

.works .newsDetailImg img{
  object-fit:cover;
  height: 100%;
  transition:0.3s;
}

.works .autoplay-slide{
  width:375px;
  margin:0 12px;
}

.works h3{
  text-align:center;
  font-size:14px;
  color:#529EA3;
  line-height:1.5;
}

.works .lower-title{
  text-align:left;
  margin-left:5%;
}

.works .webgene-item a:hover img{
  transform:scale(1.1);
}

.about{
  width:80%;
  margin:0 auto;
  display:flex;
  justify-content: space-between;
  align-items: center;
}

.about > img{
  width:43%;
}

.about-text{
  width:50%;
  max-width:675px;
}

.about-title{
  display:flex;
  gap:2.5rem;
  align-items: flex-end;
  margin-bottom:3rem;
}

.about-title .lower-title{
  text-align:left;
  margin:0;
}

.about-title .lower-title h2{
  margin-bottom:1rem;
}

.about-title img{
  width:7.5rem;
}

.about-text > p:not(:last-child){
  margin-bottom:1rem;
}

.about-text .btn{
  margin:2rem 0 0 auto;
}

.onayami{
  margin:100px 0 1rem;
  overflow: hidden;
}

.onayami h2{
  padding:2.5rem 3.5rem;
  background:#E3E5E5;
  width:fit-content;
  font-size:clamp(1rem, 0.682rem + 1.06vw, 1.875rem);
}

.onayami h2 strong{
  font-size:clamp(1.25rem, 0.909rem + 1.14vw, 2.188rem);
}

.onayami-box{
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: fit-content;
  position:relative;
  padding:0 3rem 0 5%;
}

.onayami-box::before{
  content:"";
  position:absolute;
  width: 100%;
  height: 75%;
  z-index: -1;
  bottom: 0%;
  left:0;
  background:#E3E5E5;
}

.onayami-box > img {
  width: 300px;
}

.onayami-box > div {
  display: flex;
  justify-content: center;
  align-items: center;
}

.onayami-box > div img {
  width: 100px;
  margin-top: 5rem;
}

.onayami-box  > div p {
  font-size: clamp(0.875rem, 0.739rem + 0.45vw, 1.25rem);
  padding: 120px;
  line-height:3;
  background: url(https://tonolion.co.jp/system_panel/uploads/images/20250514115537392388.png) no-repeat center / contain;
}


.onayami-text2{
  padding:0rem 10% 0 5rem;
  width:fit-content;
  margin:-9% 0 0 auto;
  display:flex;
  color:#fff;
  font-size:clamp(1.5rem, 1.364rem + 0.45vw, 1.875rem);
  align-items:center;
  position:relative;
}

.onayami-text2::before{
  content:"";
  background:#A7C9CB;
  position:absolute;
  left:0;
  bottom:0;
  width:100%;
  height:75%;
  z-index:-1;
}

.onayami-text2 strong{
  color:#529EA3;
  font-size:clamp(1.875rem, 1.648rem + 0.76vw, 2.5rem);
}

.onayami-text2 img{
  width:330px;
}

.onayami-text2 p{
  margin-top: 15%;
}

.solve{
  width:80%;
  margin:0 5% 10rem auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap:10rem 0;
}

.solve-item{
  width:47.5%;
}

.solve-item:nth-child(even){
  margin-top:30%;
}

.solve-item:nth-child(3){
  margin-top:-30%;
}

.solve-item > p{
  font-size:clamp(1.125rem, 0.625rem + 1.67vw, 2.5rem);
  color:#529EA3;
  border-bottom:3px solid;
  width:fit-content;
  margin-bottom:1.5rem;
  line-height: 1.3;
  font-weight: bold;
}

.solve-box{
  display:flex;
}

.solve-box h3{
  width:20%;
  -webkit-writing-mode: vertical-rl;
  -ms-writing-mode: tb-rl;
  writing-mode: vertical-rl;
  font-size:clamp(0.875rem, 0.648rem + 0.76vw, 1.5rem);
  background:#A7C9CB;
  display: flex;
  align-items: center;
  padding: 8% 0 0;
  letter-spacing: 3px;
}

.solve-box h3 strong{
  background:#fff;
  padding:2px 0;
  margin: 4px 0;
}

.solve-right{
  width:80%;
}

.solve-text{
  padding: 2rem 5%;
}

.solve-text h4{
  font-size:clamp(1.125rem, 1.08rem + 0.15vw, 1.25rem);
  margin-bottom:1rem;
  line-height: 1.5;
}

.solve-text .btn{
  margin:2rem 0 0 auto;
}

.business{
  width:80%;
  padding-top:5rem;
  margin:5rem auto 10rem;
  max-width:1345px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.business-left{
  width:45%;
  position: sticky;
  top: 15%;
  left: 0;
  padding-top:5rem;
}

.business-left img{
  border-radius:40px;
}

.business-right{
  width:50%;
  max-width:560px;
}

.business-text{
  padding:7.5rem 0;
  border-top:1px solid #707070;
}

.business-text:last-child{
  border-bottom:1px solid #707070;
}

.business-text .accent{
  text-align:right;
  font-size:clamp(0.75rem, 0.614rem + 0.45vw, 1.125rem);
  font-weight:bold;
}

.business-text h3{
  color:#529EA3;
  font-size:clamp(1.25rem, 0.977rem + 0.91vw, 2rem);
  margin:1.5rem 0;
}

.business-text h4{
  font-size:18px;
  margin-bottom:1rem;
  line-height:1.5;
}

.business-text .btn{
  margin:2rem 0 0 auto;
}

.imgbox:not(.current) {
  display:none;
}

.voice{
  margin:100px auto 0;
  width:80%;
  max-width:1290px;
}

.voice .webgene-blog{
  display:flex;
  justify-content: space-between;
}

.voice .webgene-blog article{
  width:30%;
  background:#FAFAFA;
  border:1px solid #707070;
  padding:2rem 1rem;
  position:relative;
}

.voice .webgene-blog article a:hover{
  opacity:0.7;
}

.voice .webgene-blog article::before{
  content:"";
  position:absolute;
  width:100%;
  height:100%;
  background:#FAFAFA;
  border:1px solid #707070;
  top:0;
  left:0;
  z-index: -4;
  transform: rotate(-5deg);
}

.newsTop{
  display:flex;
  gap:1rem;
  align-items: center;
  margin-bottom: 1rem;
}

.newsTop div{
  width:3rem;
  height:3rem;
  background:#529EA3;
}

.newsTop h3{
  font-size:clamp(0.75rem, 0.705rem + 0.15vw, 0.875rem);
  line-height:1.5;
  width: calc(100% - 4rem);
}


.newsDetailTxt{
  font-weight:300;
  line-height: 2;
}

.voice .btn{
  margin-top:5rem;
}

.business-text > img{
  display:none;
}

.txt-limit2{
  display:none;
}

@media screen and (max-width: 1600px) {
  .fv-wrap{
    margin-top: -3rem;
  }
  .onayami-text2 img {
    width: 250px;
  }
}

@media screen and (max-width: 1400px) {
  .fv-img{
    width: calc(100% - 250px);
  }
  .fv-wrap{
    margin-top: -2rem;
  }
  .works .autoplay-slide {
    width: 280px;
  }
  .about {
    width: 90%;
  }
  .onayami-box > img {
    width: 200px;
  }
  .onayami-box > div p{
    padding: 80px;
  }
  .onayami-text2 img {
    width: 180px;
  }
  .onayami-text2{
    gap:1rem;
    padding: 0rem 5% 0 5rem;
    margin: -7% 0 0 auto;
  }
  .onayami-box{
    padding: 0 3rem 0 2%;
  }
  .business-text{
    padding: 5rem 0;
  }
  .newsDetailTxt{
    font-size:14px;
  }
}


@media screen and (max-width: 1024px) {
  .fv {
    width: 80%;
    margin: 0rem auto 5rem auto;
  }
  .fv-wrap {
    margin: 3rem auto 0;
    flex-direction: column;
    gap: 2rem;
  }
  .fv-img {
    width: 90%;
  }
  .fv-text {
    width: 100%;
    text-align:center;
  }
  .solve{
    width:90%;
    flex-direction: column;
    align-items: center;
  }
  .solve-item{
    width:80%;
  }
  .solve-item:nth-child(even) {
    margin-top: 0;
  }
  .solve-text {
    padding: 1rem 5%;
  }
  .onayami-text2::before{
    height:80%;
  }
  .voice .webgene-blog{
    flex-direction: column;
    align-items: center;
    gap: 3rem;
  }
  .voice .webgene-blog article {
    width: 70%;
  }
  .business-text > img{
    display:block;
    border-radius:20px;
    margin:2rem 0 0;
    width:50%;
  }
  .business-left{
    display:none;
  }
  .business-right{
    width:100%;
    max-width: none;
  }
  .about,.solve {
    flex-direction: column;
    gap: 2rem;
  }
  .solve{
    margin-top:3rem;
  }
  .about > img {
    width: 70%;
  }
  .about-text {
    width: 100%;
  }
  .solve-item:nth-child(3){
    margin:0;
  }
  .onayami-box > div img{
    width:70px;
  }
  .onayami-box > img {
    width: 150px;
  }
  .business-text {
    padding: 2rem 0;
  }
}

@media screen and (max-width: 767px) {
  .onayami-text2 img {
    width: 100px;
    position:absolute;
    bottom: -70px;
    right: 2%;
  }
  .onayami-box > div img{
    display:none;
  }
  .onayami-box{
    flex-direction: column-reverse;
    align-items: center;
    padding: 0;
    width: 100%;
  }
  .onayami-box > img {
    width: 140px;
    margin-top: -3rem;
    position: relative;
    z-index: 10;
  }
  .onayami-box > div p {
    padding: 47px 30px;
    line-height:1.8;
  }
  .onayami h2 {
    width: 100%;
    padding: 1rem 0.5rem;
    text-align: center;
  }
  .onayami-text2::before {
    height: 100%;
  }
  .onayami-text2 {
    padding: 2.5rem 0;
    width: 100%;
    justify-content: center;
  }
  .onayami-text2 p{
    margin:0;
    line-height: 1.5;
  }
  .fv-text{
    width: 90%;
  }
  .fv-img,
  .fv ,
  .about > img,
  .solve-item{
    width: 100%;
  }
  .fv h1{
    width: 80%;
    margin: 0 auto;
  }
  .about{
    gap:0;
    width: 95%;
  }
  .works{
    margin: 0 0 3.5rem;
  }
  .about-title img{
    width:5rem;
  }
  .about-title{
    gap: 0.5rem; 
    margin: -1rem auto 1rem;
  }
  .about + .banner{
    margin-top:7rem;
  }
  .onayami {
    margin: 5rem auto 0;
    width: 95%;
    padding-bottom: 5rem;
  }
  .solve-item > p,
  .solve-text h4{
    margin-bottom: 0.5rem;
  }
  .solve-box h3 {
    width: 15%;
  }
  .solve-right {
    width: 85%;
  }
  .solve{
    margin: 0 5% 0 auto;
  }
  .business{
    width: 90%;
    margin: 2rem auto 100px;
  }
  .business-text h3{
    margin: 0rem 0 1rem;
  }
  .business-text > img{
    width: 65%;
    margin: 1.5rem 0 0;
  }
  .business-text .btn {
    margin: 1.5rem 0 0 auto;
  }
  .voice .webgene-blog article {
    width: 100%;
  }
  .newsTop div {
    width: 2rem;
    height: 2rem;
  }
  .newsTop h3{
    width: calc(100% - 3rem);
  }
  .txt-limit2{
    display:block;
  }
  .txt-limit{
    display:none;
  }
}