@charset "utf-8";

.fv{
  height:calc(100vh - 58px);
  margin-top:58px;
  position:relative;
}

.fv > img{
  object-fit:cover;
  height: 100%;
  object-position: bottom right;
}

.fv-text{
  aspect-ratio: 1096 / 478;
  width: 60%;
  position: absolute;
  top: 55%;
  left: 0%;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
}

.fv-text h1{
  color:#fff;
  text-shadow:0px 3px 10px #000;
  position: absolute;
  font-size:clamp(1.5rem, 0.591rem + 3.03vw, 4rem);
  top: 10%;
  right: 10%;
  line-height: 1.5;
}

.top-title{
  position: relative;
  padding-left: 1.5rem;
  border-left: 20px solid #243374;
  margin-bottom:2rem;
}

.top-title p{
  color: rgba(0, 0, 0, 0.14);
  font-size: clamp(2rem, 1.091rem + 3.03vw, 4.5rem);
}

.top-title h2{
  font-size:clamp(1.125rem, 0.807rem + 1.06vw, 2rem);
  position: absolute;
  bottom: 5%;
  left: 10%;
  width: max-content;
}

.top-news{
  padding:3rem 10%;
  background:#FAFAFA;
}

.top-news .webgene-blog{
  display:flex;
      justify-content: space-between;
    max-width: 900px;
  width:80%;
    margin: 0 auto;
}

.top-news .webgene-blog article{
      width: 47.5%;
  max-width:400px;
}

.top-news .webgene-blog article .newsDetailImg img {
    aspect-ratio: 2 / 1;
    object-fit: cover;
}
.top-news  .webgene-blog article .newsItemTit {
    font-size: 1rem;
    padding: 0px 10px 10px 1rem;
    position: relative;
  margin-top: 0.8rem;
      border-bottom: 1px solid #000000;
}

.top-news  .webgene-blog article .newsItemTit::after {
    position: absolute;
    content: "";
    width: 8px;
    height: 26px;
    background: #243374;
    top: 0px;
    left: 0%;
}

.top-about{
  width:90%;
  margin:5rem auto;
}

.top-about-wrap{
  display:flex;
  justify-content: space-between;
  align-items: flex-start;
}

.top-about-left{
  width:45%;
  position:relative;
}

.top-about-text{
  position:absolute;
  top: 35%;
  left: 0%;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  display:flex;
  gap:20px;
  flex-direction:column;
}

.img-h3{
  font-size:clamp(1rem, 0.818rem + 0.61vw, 1.5rem);
  padding:4px 20px;
  background:#fff;
  box-shadow:0 3px 6px rgba(0,0,0,0.16);
  font-weight:bold;
  width: fit-content;
}

.top-about-left img{
  width:80%;
  margin:0 0 0 auto;
  display: block;
}

.top-about-right{
  width:50%;
}

.top-about-right p{
  line-height:2;
}

.top-about-right > p:first-child{
  font-weight:bold;
  margin:0 0 1.5rem;
  font-size:clamp(1rem, 0.909rem + 0.3vw, 1.25rem);
}

.top-about-right > p strong{
  font-weight:bold;
}

.top-about-right .border-btn{
  margin:3rem 0 0 auto;
}

.top-about-btn{
  display:flex;
  justify-content: space-between;
  margin-top:4rem;
}

.top-about-btn a{
  width:47%;
  text-align:center;
  color:#fff;
  font-size:clamp(1rem, 0.818rem + 0.61vw, 1.5rem);
  aspect-ratio: 1434 / 390;
  padding: 5% 2rem;
}

.top-about-btn a:first-child{
  background:url(https://akagi-company.co.jp/system_panel/uploads/images/20250424094355758322.png) no-repeat center/contain;
}

.top-about-btn a:last-child{
  background:url(https://akagi-company.co.jp/system_panel/uploads/images/20250424094355998400.png) no-repeat center/contain;
}

.service{
  padding:2.5rem 10% 100px;
  background:#FAFAFA;
}

.service .top-about-right > p:first-child{
  font-weight:400;
}

.service .top-about-right > p:first-child strong{
  font-weight:bold;
}

.service .top-about-text{
  top:70%;
}

.service .top-about-left img {
  width: 85%;
}

.accordion {
  margin-top: 20px;
}

.question {
  font-size: clamp(1rem, 0.955rem + 0.15vw, 1.125rem);
  font-weight: bold;
  padding: 10px 10px 10px 2rem;
  position: relative;
  border-bottom: 1px solid #000;
}

.question::after {
  position: absolute;
  content:"";
  width:8px;
  height:26px;
  background:#243374;
  top: 50%;
  left: 0%;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
}

.question::before {
  position: absolute;
  content:"";
  width:20px;
  height:20px;
  background:url(https://akagi-company.co.jp/system_panel/uploads/images/20250423185525735642.png) no-repeat center/contain;
  right: 20px;
  transition: 0.3s;
  bottom: 16px;
}

.question.open::before {
  background:url(https://akagi-company.co.jp/system_panel/uploads/images/20250423185525915843.png) no-repeat center/contain;
}

.answer {
  padding: 10px 20px;
  display: none;
}

.service-box{
  background:#FFFFFF;
  padding:1.5rem ;
}

.service-box h3{
  text-align:center;
  font-size:clamp(1.125rem, 1.08rem + 0.15vw, 1.25rem);
  margin:0 0 2rem;
}

.top-cta{
  padding:4rem 5%;
  color:#fff;
  text-align:center;
  font-size:clamp(1rem, 0.955rem + 0.15vw, 1.125rem);
  background:url(https://akagi-company.co.jp/system_panel/uploads/images/20250423181958327090.png) no-repeat center/cover;
}

.top-cta-btn{
  display:flex;
  margin-top:3.5rem;
  justify-content: center;
  gap: 5rem;
  align-items: center;
}

.top-cta-btn a{
  display:flex;
  gap: 20px;
  align-items: center;
  background: #243374;
  padding: 2.5rem;
  width: 45%;
  justify-content: center;
  max-width: 530px;
  position:relative;
  color:#fff;
}

.top-cta-btn a::before{
  content:"";
  position:absolute;
  width:calc(100% - 2rem);
  height:calc(100% - 2rem);
  top:1rem;
  left:1rem;
  border:1px solid #fff;
}

.top-cta-btn img{
  width:2rem;
}

.top-cta h2{
  font-size:clamp(1.25rem, 0.795rem + 1.52vw, 2.5rem);
  margin-bottom:1.5rem;
}

.top-cta strong{
  font-weight:bold;
}

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

.area-wrap> div{
  width:47.5%;
}

.all-box{
  padding:2rem 1.5rem;
  background:#FAFAFA;
}

.area .all-box{
  margin:2rem 0 0;
}

.area .all-box div{
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.area .all-box div p{
  width:calc((100% - 1rem)/2)
}

.top-title h2 strong,
.img-h3 strong{
  font-weight:bold;
}


@media screen and (max-width: 1400px) {
  .fv-text h1{
    right:5%;
    top: 5%;
  }
}

@media screen and (max-width: 1279px) {
  .fv {
    max-height: 600px;
  }
  .fv-text {
    width: 70%;
    left: -7%;
  }
  .top-about-btn a {
    padding: 4% 2rem;
  }
  .top-about-btn a strong{
    display:block;
    margin-top: 4px;
  }
}

@media screen and (max-width: 1100px) {
  .top-about-wrap,
  .area-wrap{
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
  }
  .area-wrap{
    gap: 2.5rem;
  }
  .top-about-wrap.reverse{
    flex-direction: column-reverse;
  }
  .top-about-left,
  .area-wrap> div{
    width: 90%;
  }
  .top-about-right {
    width: 100%;
  }
  .top-cta-btn{
    gap:3rem;
  }
}

@media screen and (max-width: 950px) {
  .fv {
    max-height: 500px;
  }
}

@media screen and (max-width: 767px) {
  .top-news .webgene-blog{
    flex-direction: column;
    gap: 2rem;
    align-items: center;
    }
  .top-news .webgene-blog article {
    width: 90%;
  }
  .top-title {
    padding-left: 0.5rem;
    border-left: 10px solid #243374;
  }
  .top-about-left, .area-wrap> div,
  .top-cta-btn a,
  .top-about-btn a{
    width: 100%;
  }
  .area-wrap{
    width: 90%;
  }
  .top-title h2 {
    width: 90%;
  }
  .top-cta-btn,
  .top-about-btn{
    gap: 1rem;
    flex-direction: column;
  }
  .top-about-btn a{
    padding: 8% 2rem;
  }
  .service {
    padding: 2.5rem 5% 5rem;
  }
  .service-box {
    padding: 1.5rem 5%;
  }
  .img-h3:has(strong){
    width:65%;
  }
  .top-about-text {
    gap: 12px;
    top: 75%;
  }
  .question{
    padding: 10px 10px 10px 1rem;
  }
  .top-title h2{
    bottom: 0%;
  }
  .top-cta-btn a{
    padding: 1.5rem;
  }
  .top-cta-btn a::before {
    width: calc(100% - 1rem);
    height: calc(100% - 1rem);
    top: 0.5rem;
    left: 0.5rem;
  }
  .fv {
    max-height: none;
    margin-top: 50px;
  }
  .fv-text{
    position: relative;
    transform: none;
    top: auto;
    left: auto;
    width: 100%;
  }
  .fv > img {
    height: 65%;
  }
  .fv-text h1 {
    right: 10%;
  }
  .top-about{
    margin: 3rem auto;
  }
  .top-news {
    padding: 2rem 5%;
  }
  .top-news .webgene-blog,
  .area .all-box div p{
    width: 100%;
    }
  .area .all-box div{
    gap: 0rem;
    flex-direction: column;
  }
}