header {
  display: flex;
  justify-content: space-between;
  background-color: var(--white);
  width: 100%;
  height: 120px;
}

.left {
  padding-block: 45px;
  padding-inline: 65px;
}

.left img {
  width: 373px;
  height: 29px;
}

.right {
  display: flex;
}


.company {
  height: 120px;
  background-color: var(--primary-teal);
  gap: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 38px;
}

.school {
    height: 120px;
    background-color: var(--primary-coral);
    gap: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-inline: 38px;
}

.company:hover {
  background-color: #eae4d9; /* 背景を薄いベージュに変更 */
  color: var(--primary-teal); /* 文字色を元の背景色に */
}

.school:hover {
  background-color: #eae4d9; /* 背景を薄いベージュに変更 */
  color: var(--primary-coral); /* 文字色を元の背景色に */
}

/* SVGアイコンなどを含む場合は、子要素にも色を反映 */
.company:hover svg,
.school:hover svg {
  color: inherit;
  fill: currentColor;
}

.company,
.school {
  transition: all 0.3s ease;
}

.school img:nth-child(2) {
  margin-top: 8px;
}

.response {
  display: none;
}

main {
  overflow-x: hidden;
    overflow-y: hidden;
}

.response-475 {
  display: none;
}

body {
  overflow: hidden;
}

/* --------school main=----------- */

.section1 {
  background-image: url("./assets/image/section1-company/FV背景.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  width: 100%;
  height: 700px;
  position: relative;
  display: flex;
  flex-direction: column;
  margin-bottom: 120px;
}

.section1 > img {
  position: absolute;
  right: 0;
  top: 0;
  width: 850px;
  height: 700px;
}

.text {
  display: flex;
  flex-direction: column;
}

.text img:nth-child(1) {
  width: 700px;
  height: 60px;
  margin-left: 60px;
  margin-top: 124px;
  z-index: 1;
}

.text img:nth-child(2) {
  width: 323px;
  height: 45px;
  margin-left: 60px;
  margin-top: 20px;
  z-index: 1;
}

.red-text {
  color: var(--primary-coral);
  font-weight: bold;
  font-size: 35px;
  margin-left: -20px;
}

.section1 .text p {
  color: #ffffff;
  font-size: 25px;
  margin-left: 60px;
  z-index: 1;
  margin-top: 22px;
}


.section1 button {
  width: 391px;
  height: 70px;
  margin-left: 60px;
  border-radius: 5px;
  background-color: var(--primary-green);
  padding-inline: 32px;
  padding-block: 16px;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 10;
  margin-top: 40px;
  transition: background-color 0.3s ease, color 0.3s ease;
  cursor: pointer;
}

.section1 button p {
  color: var(--white);
  font-size: 25px;
  transition: color 0.3s ease;
}

.section1 button img:nth-child(1) {
  width: 25px;
  height: 20px;
  transition: filter 0.3s ease;
  filter: brightness(0) invert(1); /* default: make image white */
}

/* --- Hover effects --- */
.section1 button:hover {
  background-color: var(--white);
  color: var(--primary-green);
}

.section1 button:hover p {
  color: var(--primary-green);
}

/* --- Image color changes on hover --- */
.section1 button:hover img {
  filter: brightness(0) saturate(100%) invert(28%) sepia(91%) saturate(495%) hue-rotate(93deg) brightness(95%) contrast(89%);
  /* makes the icon greenish (like var(--primary-green)) */
}



.section2-company {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 120px;
}
.section2-top {
  background-image: url("./assets/image/section2-company/Rectangle\ 37.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  max-width: 1920px;
  width: 100%;
  height: fit-content;
}

h1 {
  font-family: "Averia Serif Libre", serif;
  font-weight: bold;
  font-size: 80px;
  text-align: start;
  margin-left: 10px;
}

.section2-company .section2-top h1 {
  color: #9eb5b8;
  margin-top: 48px;
      text-align: center;
}

h3 {
  font-size: 40px;
  color: #434343;
  text-align: center;
  margin: 0;
}

.section2-company .section2-top h3 {
  color: #434343;
}

h6 {
  font-size: 20px;
}

.section2-text h6 {
  color: var(--primary-green);
  margin-inline: 20px;
}

.section2-top .content {
  display: flex;
  justify-content: center; /* centers the two divs */
  column-gap: 40px; /* horizontal spacing */
  flex-wrap: wrap; /* allows wrapping on small screens */
  max-width: 1000px;
  row-gap: 40px;
  margin: 0 auto;
  margin-top: 80px;
  padding-bottom: 186px;
}

.image-box {
  position: relative;
  display: inline-block;
  width: 450px;
  height: 340px;
}

.image-box img {
  width: 450px;
  height: 340px;
  position: relative;
  z-index: 2;
}

.image-box::after {
  content: "";
  position: absolute;
  right: -15px; /* move block to the right */
  bottom: -15px; /* move block to the bottom */
  width: 100%;
  height: 100%;
  background: #2f6f4e; /* green color */
  z-index: 1;
}

.section2-top .section2-text {
  width: 478px;
}

.section2-text p {
  font-size: 16px !important;
  color: #434343;
  text-align: start;
  margin-inline: 20px;
  margin-top: 24px;
}

.section2-bottom {
  background-image: url("./assets/image/section2-company/Rectangle\ 36.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  max-width: 1920px;
  width: 100%;
  height: fit-content;
  margin-top: -169px;
  z-index: 2;
  /* height: 400px; */
}

.section2-bottom h3 {
  margin-top: 95px;
}

.section2-bottom .content {
  display: flex;
  justify-content: center; /* centers the two divs */
  column-gap: 40px; /* horizontal spacing */
  flex-wrap: wrap; /* allows wrapping on small screens */
  max-width: 1000px;
  row-gap: 40px;
  margin: 0 auto;
  margin-top: 90px;
  padding-bottom: 69px;
}

.section2-bottom .section2-text {
  width: 478px;
}

.section2-bottom .section2-text {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.section2-bottom .section2-text h6 {
  color: var(--white);
  margin: 0;
}
.section2-bottom .section2-text p {
  color: var(--white);
  margin: 0;
  margin-top: 34px;
  text-align: start;
  /* margin-inline: 10px; */
}
.section2-bottom .section2-text img {
  width: 478px;
  height: 188px;
  margin-top: 24px;
}

.section3-company {
  background-color: #6a9576;
  /* border-radius: 40px; */
  padding-top: 40px;
  padding-bottom: 64px;
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
}

.section3-company h1 {
  color: var(--white);
}

.section3-company h3 {
  color: var(--white);
}

.section3-company p {
  max-width: 930px;
  margin-inline: 10px;
  color: var(--white);
  margin-top: 48px;
  text-align: start;
}

.card {
  margin-top: 48px;
  display: flex;
  max-width: 1200px;
  align-items: center;
  flex-wrap: wrap; /* allows wrapping on smaller screens */
  gap: 32px;
  justify-content: center;
}

.card1 {
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* align-items: center; */
}

.card1 .title {
  background-color: #ddf1d9;
  /* border-radius: 30px; */
  padding-inline: 16px;
  padding-block: 8px;
  width: 142px;
}

.card1 .title h1 {
  font-size: 20px;
  font-family: "Averia Serif Libre", serif;
  font-weight: bold;
  color: var(--primary-green);
  margin: 0;
  text-align: center;
}

.card1 .content {
  /* margin-top: 15px; */
  display: flex;
  flex-direction: column;
  width: 312px;
  height: 500px;
  padding-top: 24px;
  padding-inline: 16px;
  padding-bottom: 16px;
  background-color: var(--white);
}
.card1 .content img {
  width: 100%;
  height: 211px;
}

.text h5 {
  font-size: 20px;
  color: #4f797f;
  /* margin: 16px 0 8px 0; */
  text-align: center;
  margin-top: 24px;
  position: relative;
  display: inline-block;
  z-index: 10;       /* behind the text */

}

.text h5::after {
    content: "";
    position: absolute;
    /* margin-inline: 30px; */
    
    left: 0;
    bottom: -10px;      /* distance below text */
    width: 100%;
    height: 10px;      /* thickness of strip */
    background: #92adb0;
    z-index: 1;       /* behind the text */
  }

  .text div {
    display: flex;
    gap: 15px;
    width: 100%;
  }
  .section3-company .card .card1 .content .text img {
    width: 15px;
    height: 15px;
    margin: 0;
    margin-top: 28px;
  }

  .text p {
    font-size: 16px;
    color: #434343;
    margin: 0;
    margin-top: 24px;
  }

  .section4-company {
background-image: url(./assets/image/section4-company/image_forc-min.jpg);
background-repeat: no-repeat;
    background-position: right center;  /* push image to right side */
    background-size: cover;          /* keep entire image visible */
    max-width: 1920px;
    width: 95%;
    height: 354px;
    margin-block: 80px;
}

.section5-company {
    background-color: #EEF2F3;
    width: 100%;
    padding-top: 50px;
    padding-bottom: 90px;
    position: relative;
    /* height: 2000px; */
}


.section5-company h1 {
    color: var(--primary-green);
    text-align: center;
}
.section5-company h3 {
    color: #434343;
    text-align: center;
}
.section5-company p {
    color: #434343;
    text-align: center;
    margin-inline: 10px;
}

.rectangle-card {
    display: flex;
    margin-top: 24px;
}

.rectangle-card .card {
    display: flex;
    flex-direction: column;
    width: 800px;
    margin: 0 auto 40px; /* spacing between cards */
  }
  
  /* Odd cards → align left */
  .rectangle-card:nth-child(even) .card {
    align-items: flex-start;
    text-align: left;
  }
  
  /* Even cards (2nd, 4th, 6th...) */
  .rectangle-card:nth-child(odd) .card {
    align-items: flex-end;
    text-align: right;
  }
  

.rectangle-card h5 {
    color: #9EB5B8;
    font-size: 50px;
    font-weight: bold;
    font-family: "Averia Serif Libre", serif;
    text-align: right;
}

.rectangle-card .card .content {
    border: #4F797F solid;
    display: flex;
    width: 800px;
    height: 240px;
    margin-top: -35px;
    gap: 57px;
}
.rectangle-card .card .content img {
    /* width: 100%; */
    width: 250px;
}

.rectangle-card .card .content .text h6 {
    display: flex;
    flex-direction: column;
    margin-top: 40px;
    font-size: 25px;
    color: #6A9576;

}
.rectangle-card .card .content .text p {
    display: flex;
    flex-direction: column;
    margin-top: 16px;
    font-size: 16px;
    text-align: start;
    width: 450px;

}

.section6-company {
    height: 514px;
    background-image: url('./assets/image/section4-company/ia_lp_banner1-min-scaled-3740x1410x0x224x3740x962x1746433337\ 1.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    max-width: 1920px;
    width: 95%;
    height: 354px;
    margin-block: 80px;
}



.section8 {
    background-image: url('./assets/image/section8/image_forc-min.jpg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 32px;
    margin-bottom: 60px;

}

.section8 h1 {
    color: var(--white);
}


  .section8 h3 {
    color: var(--white);
    margin-inline: 10px;

  }

  .section8 .content p {
    font-size: 20px;
    color: var(--white);
    margin-block: 48px;
    margin-inline: 10px;
    max-width: 786px;
  }

  .stats-section {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 784px;
    gap: 175px;          /* default gap on large screens */
    padding: 0 40px;     /* default side padding */
    margin: 0 auto;
    margin-bottom: 90px;
  }
  
  .stat-box img {
    width: 100px;
    height: 100px;
  }

  .stat-box {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .stat-label p {
    font-size: 16px;
    color: var(--white);
  }
  
  .stat-number p {
    font-size: 25px;
    color: var(--white);
  }

.section9-company {
    background-image: url('./assets/image/setion9-company/For CompaniesのVoiceの写真.JPG');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    width: 100%;
    padding-top: 48px;
    padding-bottom: 80px;

}

.section9-company h1 {
    text-align: center;
}

.voice-content {
    display: grid;
    grid-template-columns: 1fr;   /* mobile: 1列 */
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    justify-content: center;
    align-items: stretch;   /* 高さを揃える */
    padding: 20px;
    box-sizing: border-box;
  }
  
  @media (min-width: 768px) {
    .voice-content {
      grid-template-columns: repeat(2, 1fr);
    }
  }
  
  .voice-content p {
    background: #fff;
    padding: 16px 20px;
    line-height: 1.6;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    color: #4F797F;
    display: flex;            /* flexで中身を縦に揃える */
    align-items: flex-start;  /* 上寄せ */
  }
  
  .section10-contact {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .section10-contact h1 {
    color: var(--primary-green);
    align-items: center;
    margin-top: 120px;
  }

  .section10-contact h3 {
    color: #434343;
  }
  
  .section10-contact p {
    color: #434343;
    margin-top: 48px;
  }
  

  .section10 {
    background-image: url('/assets/image/section10/写真①\ 1.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    width: 100%;
    height: 223px;
}


 


























footer {
  background-color: var(--primary-green);
  width: 100%;
  /* height: 480px; */
  display: flex;
  flex-direction: column;
  align-items: center;
}

footer button {
  padding-block: 31px;
  padding-inline: 40px;
  background-color: var(--white);
  border: none;
  margin-top: 64px;
  margin-bottom: 32px;
}

footer p {
  font-size: 25px;
  font-weight: 400; /* medium weight */
  letter-spacing: 1px; /* spacing between letters */
  text-align: center;
  font-family: "Roboto", sans-serif;
  line-height: 1.5;
  margin: 0;
}

.address {
  display: flex;
  flex-direction: column;
  margin-top: 32px;
  margin-bottom: 40px;
}

.footer-text {
  font-size: 12px;
  margin-bottom: 32px;
}

@media (max-width: 1440px) {
  .left {
    padding-block: 45px;
    padding-inline: 41px;
  }

  .company {
    gap: 12px;
    padding-inline: 19px;
  }

  .school {
    gap: 12px;
    padding-inline: 19px;
  }
}

@media (max-width: 1024px) {
  .left {
    padding-block: 40px;
    padding-inline: 24px;
  }

  .left img {
    width: 250px;
    height: 20px;
  }

  .company {
    gap: 4px;
    height: 100px;
    padding-inline: 10px;
  }

  .school {
    gap: 4px;
    height: 100px;
    padding-inline: 10px;
  }

  header {
    height: 100px;
  }
}

@media (max-width: 768px) {
  .right {
    display: none;
  }

  .response {
    display: flex;
    width: 100%;
  }

  .res-company {
    width: 50%;
    background-color: var(--primary-teal);
    gap: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-inline: 10px;
    padding-block: 20px;
  }

  .res-school {
    width: 50%;
    background-color: var(--primary-coral);
    gap: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 20px;
    padding-inline: 10px;
  }
}

@media (max-width: 475px) {
  .response {
    display: none;
  }
  .response-475 {
    display: flex;
  }
  .response-475 .res-company,
  .res-school {
    display: flex;
    flex-direction: column;
  }
}

/* ---------Main------------------ */

/*   --------------footer----------- */

@media (max-width: 1440px) {
  footer button img {
    width: 100%;
  }

  footer button {
    padding-inline: 30px;
    padding-block: 25px;
  }
}
@media (max-width: 960px) {
}
@media (max-width: 768px) {
}
@media (max-width: 475px) {
}




/* company responsive */


@media (max-width: 1440px) {
    h1 {
      font-size: 80px;
    }
    h3 {
      font-size: 30px;
    }

    .text p {
        font-size: 16px;
      }

      .section4-company,  .section6-company {
        height: 354px;
    }
    
    
  

  }
  
  @media (max-width: 1024px) {
    .text img:nth-child(1) {
      width: 400px;
      height: 30px;
      margin-top: 250px;
      margin-left: 30px;
    }
  
    .text img:nth-child(2) {
      width: 259px;
      height: 30px;
      margin-left: 30px;
    }
  
    .text p {
        font-size: 16px;
      }

      .section1 .text p {
        color: #434343;
        font-size: 20px;
        margin-left: 40px;
        z-index: 1;
        margin-top: 22px;
      }

    .red-text {
      color: var(--primary-coral);
      font-weight: bold;
      font-size: 25px;
    }
    .section1 button {
      width: 300px;
      height: 50px;
      margin-left: 30px;
      padding-inline: 16px;
      padding-block: 8px;
    }
  
    .section1 button p {
      font-size: 20px;
    }
  
    .section1 button img:nth-child(1) {
      width: 20px;
      height: 17px;
    }
  
    h1 {
      font-size: 60px;
    }
    h3 {
      font-size: 24px;
    }

    .section4-company,  .section6-company {
        height: 250px;
        margin-block: 60px;

    }

    .stats-section {
        gap: 75px;         
        padding: 0;
    }




    .rectangle-card .card {
        width: 600px;
    }
    
    .rectangle-card h5 {
        font-size: 30px;
    }
    
    .rectangle-card .card .content {
        border: #4F797F solid;
        display: flex;
        width: 600px;
        height: 195px;
        margin-top: -35px;
        margin-inline: 10px;
        gap: 20px;
    }
    .rectangle-card .card .content img {
        /* width: 100%; */
        width: 150px;
        height: 150px ;
    }
    
    .rectangle-card .card .content .text h6 {
        margin-top: 20px;
        font-size: 20px;
    
    }
    .rectangle-card .card .content .text p {
        display: flex;
        flex-direction: column;
        margin-top: 10px;
        font-size: 16px;
        text-align: start;
        width: 400px;
    }

        .section10 {
  
      height: 100px;
  }
  
  
  }
  
  @media (max-width: 768px) {
    .section1 > img {
      width: 417px;
      height: 330px;
    }
    .card-group p {
      font-size: 16px;
    }
  
    .text img:nth-child(1) {
      margin-top: 295px;
      width: 350px;
      margin-inline: 20px;
      height: 30px;
    }
    .text img:nth-child(2) {
      /* margin-top: 189px; */
      width: 189px;
      margin-inline: 20px;
      height: 25px;
    }
    .text p {
        font-size: 16px;
      }
    h1 {
      font-size: 50px;
    }
  
    .section2-text {
      margin-top: 10px;
    }
  
    .image-box img, .image-box {
        width: 350px;
        height: 250px;

    }
    .section2-bottom {
        margin-top: -100px;
    }

    .section2-bottom .section2-text img {
        width: 365px;
        height: 140px;
        margin-top: 24px;
    }

    .section2-bottom .section2-text h6 {
        margin-inline: 10px;
    
    }
    .section2-bottom .section2-text p {
        margin-inline: 10px;
    }

    .section2-bottom h3 {
        margin-top: 50px;
    }
    
    .section2-bottom .content {
        margin-top: 52px;
    padding-bottom: 57px;

    }
  
    .section4-company,  .section6-company {
        height: 150px;
        margin-block: 50px;

    }

    .stats-section {
        gap: 40px;          /* default gap on large screens */
        padding: 0;
    }

    .card-group p {
        font-size: 16px !important;
      }
      .card-group1 p {
        font-size: 16px !important;
      }
      .stat-label p {
        font-size: 16px !important;
        color: var(--white);
      }


      .section1 .text p {
        color: #434343;
        font-size: 20px;
        margin-left: 20px;
        z-index: 1;
        margin-top: 22px;
      }


    .rectangle-card {
        display: flex;
        margin-top: 24px;
    }
    
    .rectangle-card .card {
        display: flex;
        flex-direction: column;
        width: 400px;
        margin: 0 auto;
        align-items: start;
    }
    
    .rectangle-card h5 {
        color: #9EB5B8;
        font-size: 50px;
        font-weight: bold;
        font-family: "Averia Serif Libre", serif;
    }
    
    .rectangle-card .card .content {
        border: #4F797F solid;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 400px;
        height: 365px;
        margin-top: -35px;
    }
    .rectangle-card .card .content img {
        /* width: 100%; */
        width: 170px;
        height: 170px;
    }
    
    .rectangle-card .card .content .text h6 {
        display: flex;
        flex-direction: column;
        font-size: 20px;
        color: #6A9576;
        text-align: center;
        margin-top: -30px;
    
    }

    .rectangle-card .card .content .text p {
        display: flex;
        flex-direction: column;
        margin-top: 16px;
        font-size: 16px;
        text-align: start;
        width: 350px;
    }

    .section10 {
  
        height: 58px;
    }
    
  

  }
  
  @media (max-width: 475px) {
    .section1 > img {
        width: 417px;
        height: 278px;
      }
      .section2-company .section2-top h1 {
        text-align: center;
    }

    .section2-top .content {
        margin-top: 61px;
        padding-bottom: 61px;
    }

    .image-box img, .image-box {
        width: 340px;
        height: 240px;

    }

    .section2-bottom {
        margin-top: -35px;
    }
  
    .section4-company,  .section6-company {
        height: 92px;
        margin-block: 32px;

    }
  

    
    .rectangle-card .card {
        width: 333px;
    }
    
    .rectangle-card h5 {
        font-size: 30px;
    }
    
    .rectangle-card .card .content {
        width: 333px;
        height: 340px;
        margin-top: -35px;
    }
    .rectangle-card .card .content img {
        /* width: 100%; */
        width: 170px;
        height: 170px;
    }
    
    .rectangle-card .card .content .text h6 {
        display: flex;
        flex-direction: column;
        font-size: 20px;
        color: #6A9576;
        text-align: center;
        margin-top: -40px;
    
    }

    .rectangle-card .card .content .text p {
        display: flex;
        flex-direction: column;
        margin-top: 8px;
        font-size: 16px;
        text-align: start;
        width: 323px;
    }

    .stat-box img {
        width: 70px;
        height: 70px;
      }
      .rectangle-card:nth-child(odd) .card h5 {
        margin-right: 20px;
      }
      .rectangle-card:nth-child(even) .card h5 {
        margin-left: 20px;
      }
  }