
/* =========================
  1. Base / Utility
========================= */

/* color */

.header-inner{
  background-color: #E8E8E8;
}

.header-dl{
  background-color: #9E9E9E;
  color: #fff;
}

.header-contact{
  background-color: #333;
  color: #fff;
}


.hero .btn-gray {
  background-color: #9E9E9E;
  color: #fff;
}

.hero .btn-black {
  background-color: #333;
  color: #fff;
}

.hero-bg{
  background-color: #BCD1CA;
}

.hero-bg-2{
  background-color: #5d6965;
}


.about-btn{
  background-color: #333;
  color: #fff;
}


.about-btn::after{
  background-color: #6a6a6a;
}

.about-image::before{
  background-color: #BCD1CA;
}





.farm{
  background-color: #fff;
}


.farm-right {
  background-color: #BCD1CA;
}

.farm-right_2{
  background-color:  #E8E8E8;
}

.farm-btn{
  background-color: #333;
  color: #fff;
}
.farm-btn::after{
  background-color: #6a6a6a;
}


.farm-tags span {
  background-color: #e3e3e3;
}


.farm-arrow{
  background-color: #333;
  color: #fff;
}

.farm-tags span{
  background-color: #f3f3f3;
}

.case-label{
  background-color: #5d6965;
  color: #fff;
}

.case-tags span{
  background-color: #fff;
}
.case-btn{
  background-color: #333;
  color: #fff;
}

.case-btn::after {
  background-color: #6a6a6a;
}

.case-btn::after{
  background-color: #6a6a6a;
}

.news-category{
  background-color: #fff;
}

.news-arrow{
  background-color: #333;
  color: #fff;
}
.cta-overlay{
  background-color: rgba(0,0,0,0.5);
    color: #fff;
}

.cta-row-bottom .cta-box {
  background-color: #BCD1CA;}

  .cta-arrow{
    background-color: #333;
    color: #fff;
  }

  .footer a::after{
    background-color: #333;
  }




  /* section title */

  .about h2,
  .farm h2,
  .case h2,
  .news h2{
    font-size: 100px;
    letter-spacing: 0.08em;
    font-weight: bold;
    width: 90%;
    margin: 0 auto;
  }

  .about h2,
  .case h2,
  .news h2{
    color: #fff;
  }

  .farm h2{
    color: rgba(0,0,0,0.05);
  }

  .news h2{
    width: 100%;
  }


    .about-title,
    .farm-title,
    .case-title,
    .news-title{
      font-size: 18px;
      color:#333;
      width: 90%;
      margin: auto;
    }

    .news-title{
      width: 100%;
    }


  @media (max-width: 1125px){

    .about h2,
    .farm h2,
    .case h2,
    .news h2{
      font-size: 80px;
    }

    .about-title,
    .farm-title,
    .case-title,
    .news-title{
      font-size: 15px;
    }


  }



  @media (max-width: 467px){

    .about h2,
    .farm h2,
    .case h2,
    .news h2{
      font-size: 50px;
      letter-spacing: 0.03em;
    }

    
    .about-title,
    .farm-title,
    .case-title,
    .news-title{
      font-size: 13px;
    }

  }



/* =========================
  btn
========================= */


/* ===|= */



    .hero-buttons {
      display: flex;
      gap: 16px;
    }
    
    .hero .btn {
      display: inline-block;
      padding: 18px 0px;
      font-size: 18px;
      text-decoration: none;
     text-align: center;
      width: 48%;
    }



    .about-btn {
      position: relative;
      display: inline-block;
      padding: 16px 40px;
      font-size: 16px;
      letter-spacing: 0.05em;
      cursor: pointer;
      width: fit-content;
    }


    /* 右に伸びる線 */
.about-btn::after {
  content: "";
  position: absolute;
  right: -18px;
  top: 50%;
  width: 40px;
  height: 1px;
  transform: translateY(-50%);
}



    .farm-btn {
      position: relative;
      display: inline-block;
      padding: 16px 56px 16px 40px;
      font-size: 14px;
    }
    
    .farm-btn::after {
      content: "";
      position: absolute;
      right: -18px;
      top: 50%;
      width: 40px;
      height: 1px;
      transform: translateY(-50%);
    }



  /* 右の丸矢印 */
  .farm-arrow {
    
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    cursor: pointer;
position: relative;
z-index: 4;
    border: 1px dotted #333;
  }
  




    .case-btn {
      margin: 30px auto 0;
      width: fit-content;
      padding: 16px 56px 16px 40px;
      position: relative;
    }
    
    .case-btn::after {
      content: "";
      position: absolute;
      right: -18px;
      top: 50%;
      width: 40px;
      height: 1px;
      transform: translateY(-50%);
    }
  
    


  .news-more {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: flex-end;
    cursor: pointer;
    color: #333;
    width: fit-content;
    margin: 28px 0 0 auto;   
  }

  .news-more a{
    align-items: center;
  }
  
  .news-arrow {
    margin: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  @media (max-width: 1125px){

    .hero-buttons {
      display: flex;
      gap: 36px;
    }










.about-btn,
    .farm-btn,
    .case-btn {
      font-size: 13px;
      margin: 20px auto 0;
      padding: 10px 40px 10px 30px;
    }
    
    .about-btn::after,
    .farm-btn::after,
    .case-btn::after {
      right: -16px;
      width: 35px;
    }



    .news-more {
      gap: 8px;
      margin: 20px 0 0 auto;  
      font-size: 13px; 
    }



  .news-arrow {
    width: 25px;
    font-size: 10px;
    height: 25px;
  }
  }


  @media (max-width: 762px) {
      /* 右の丸矢印 */
      .farm-arrow {
    
        width: 48px;
        height: 48px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 16px;
        flex-shrink: 0;
        cursor: pointer;
    position: relative;
    z-index: 4;
        border: 1px dotted #333;
      }
    
  }



  @media (max-width: 567px){
    .hero-buttons {
      flex-direction: column;
      gap: 16px; /* お好みで */
    }
  
    .hero .btn {
      width: 100%; /* これ超重要 */
    }
  }




/* =========================
 11. Animation / Interaction
========================= */

  /* スクロール後の状態 */
  header.scrolled {
    backdrop-filter: blur(6px);
    background: rgba(232,232,232,0.95);
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  }
  
  /* 隠れる */
  header.hide {
    transform: translateY(-100%);
  }


/* =========================
 Sub Page
========================= */

.header-nav a.is-active,
.footer-nav a.is-active {
  opacity: 0.55;
}

.sub-page {
  padding-top: 78px;
  background: #fff;
}

.sub-hero {
  min-height: 420px;
  display: flex;
  align-items: end;
  background: linear-gradient(135deg, #BCD1CA 0%, #eef2ef 100%);
  padding: 96px 5% 72px;
}

.sub-hero-photo {
  position: relative;
  background-size: cover;
  background-position: center;
  color: #fff;
}

.sub-hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.42);
}

.sub-hero-inner {
  position: relative;
  z-index: 1;
  width: min(90%, 1120px);
  margin: 0 auto;
}

.sub-kicker,
.sub-section-label {
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.14em;
  margin-bottom: 18px;
}

.sub-hero h1 {
  font-size: 56px;
  font-weight: bold;
  letter-spacing: 0.06em;
  margin-bottom: 22px;
}

.sub-hero p {
  max-width: 760px;
  font-size: 18px;
  line-height: 2;
}

.sub-section {
  width: 90%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 88px 0;
}

.sub-private-notice {
  padding: 64px 5%;
  background: #f4f6f4;
  text-align: center;
}

.sub-private-notice h2 {
  margin-bottom: 18px;
}

.download-modal {
  width: min(90%, 520px);
  max-width: none;
  padding: 0;
  border: 0;
  border-radius: 4px;
  color: #333;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}

.download-modal::backdrop {
  background: rgba(0, 0, 0, 0.55);
}

.download-modal-inner {
  padding: 52px 8%;
  text-align: center;
}

.download-modal-inner h2 {
  margin-bottom: 18px;
  font-size: 28px;
}

.download-modal-inner > p:not(.sub-section-label) {
  line-height: 2;
}

.download-modal-inner button {
  min-width: 160px;
  margin-top: 32px;
  padding: 14px 28px;
  border: 0;
  background: #333;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.sub-lead {
  max-width: 900px;
}

.sub-section h2 {
  font-size: 28px;
  font-weight: bold;
  line-height: 1.6;
  margin-bottom: 22px;
}

.sub-section p {
  font-size: 16px;
  line-height: 2;
}

.sub-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 56px;
  align-items: center;
}

.sub-split img,
.sub-card-grid img,
.sub-case-list img,
.sub-gallery img {
  width: 100%;
  object-fit: cover;
}

.sub-split img {
  height: 380px;
}

.sub-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.sub-card-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.sub-card-grid article {
  background: #f5f5f5;
  padding: 30px;
}

.sub-card-grid article span {
  display: inline-block;
  font-weight: bold;
  color: #5d6965;
  margin-bottom: 18px;
}

.sub-card-grid article img {
  height: 220px;
  margin: -30px -30px 24px;
  width: calc(100% + 60px);
}

.sub-feature-list,
.sub-case-list,
.sub-news-list,
.sub-timeline {
  display: grid;
  gap: 24px;
}

.sub-feature-list article {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 32px;
  padding: 34px 0;
  border-top: 1px solid #ddd;
}

.sub-feature-number {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  background: #333;
  color: #fff;
  font-weight: bold;
}

.sub-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.sub-tag-list li {
  background: #f0f0f0;
  padding: 8px 14px;
  font-size: 13px;
}

.sub-gallery {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 18px;
}

.sub-gallery img {
  height: 300px;
}

.sub-case-list article {
  display: grid;
  grid-template-columns: 42% 1fr;
  gap: 42px;
  align-items: center;
  padding: 34px 0;
  border-bottom: 1px solid #ddd;
}

.sub-case-list img {
  height: 300px;
}

.sub-news-list article a {
  display: grid;
  grid-template-columns: 140px 120px 1fr;
  gap: 24px;
  align-items: baseline;
  padding: 30px 0;
  border-bottom: 1px solid #ddd;
}

.sub-news-list h2 {
  margin-bottom: 8px;
}

.sub-news-list p {
  grid-column: 3;
}

.sub-news-list span {
  width: fit-content;
  background: #f0f0f0;
  padding: 6px 12px;
  font-size: 13px;
}

.sub-timeline article {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid #ddd;
}

.sub-timeline time {
  font-size: 22px;
  font-weight: bold;
  color: #5d6965;
}

.sub-info-list,
.sub-contact-box {
  border-top: 1px solid #ddd;
}

.sub-info-list div,
.sub-contact-box div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid #ddd;
}

.sub-info-list dt,
.sub-contact-box dt {
  font-weight: bold;
}

.sub-form {
  display: grid;
  gap: 20px;
  max-width: 760px;
}

.sub-form label {
  display: grid;
  gap: 10px;
  font-weight: bold;
}

.sub-form input,
.sub-form select,
.sub-form textarea {
  width: 100%;
  border: 1px solid #ccc;
  padding: 14px 16px;
  font: inherit;
  background: #fff;
}

.sub-form button,
.sub-button,
.sub-cta a {
  display: inline-block;
  width: fit-content;
  border: 0;
  background: #333;
  color: #fff;
  padding: 16px 40px;
  font: inherit;
  font-weight: bold;
  cursor: pointer;
}

.sub-cta {
  width: 90%;
  max-width: 1120px;
  margin: 0 auto 96px;
  padding: 42px;
  background: #BCD1CA;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.sub-cta p {
  font-size: 22px;
  font-weight: bold;
  line-height: 1.6;
}

@media (max-width: 1000px) {
  .sub-card-grid,
  .sub-card-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .sub-hero h1 {
    font-size: 40px;
  }

  .sub-split,
  .sub-case-list article,
  .sub-news-list article a,
  .sub-timeline article {
    grid-template-columns: 1fr;
  }

  .sub-news-list p {
    grid-column: auto;
  }

  .sub-info-list div,
  .sub-contact-box div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .sub-gallery {
    grid-template-columns: 1fr;
  }

  .sub-cta {
    display: grid;
  }
}

@media (max-width: 600px) {
  .sub-card-grid,
  .sub-card-grid-4,
  .sub-feature-list article {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 500px) {
  .sub-page {
    padding-top: 64px;
  }

  .sub-hero {
    min-height: 340px;
    padding: 64px 5% 48px;
  }

  .sub-hero h1 {
    font-size: 32px;
  }

  .sub-hero p,
  .sub-section p {
    font-size: 15px;
  }

  .sub-section {
    padding: 56px 0;
  }

  .sub-split img,
  .sub-case-list img,
  .sub-gallery img {
    height: 240px;
  }

  .sub-cta {
    margin-bottom: 64px;
    padding: 28px;
  }
}


.hero-content,
.hero-image {
  opacity: 0;
  transform: translateY(20px);
  animation: heroFade 1.2s ease forwards;
}

.hero-image {
  animation-delay: 0.3s;
  overflow: hidden;
}

@keyframes heroFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


.hero-image img {
  transition: transform 8s ease;
}




.hero-bg {
  animation: bgMove 12s ease-in-out infinite alternate;
}

@keyframes bgMove {
  from { transform: translateX(0); }
  to { transform: translateX(-40px); }
}



.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 30s linear infinite;
}


/* アニメーション */
@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-33.333%);
  }
}


  
  
.farm-item {
  position: relative;
  transition: transform 0.4s ease;
}


.farm-arrow {
  transition: transform 0.3s ease;
}


.farm-item {
  opacity: 0;
  transform: translateY(40px);
  transition: 0.8s ease;
}

.farm-item.show {
  opacity: 1;
  transform: translateY(0);
}

.case-card {
  transition: 0.4s ease;
}
  
.news-item {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 2s ease, transform 2s ease;
}

.news-item.show {
  opacity: 1;
  transform: translateY(0);
}





.cta-image {
  overflow: hidden;
}

.cta-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s ease;
  z-index: -1;
}




.cta-overlay {
  transition: background 0.4s ease;
}


.cta-row-bottom .cta-box {
  transition: background 0.4s ease, transform 0.4s ease;
}


  
.cta-arrow {
  transition: transform 0.4s ease, background 0.4s ease;
}




.cta-box {
  transition: transform 0.4s ease;
}


/* Interaction */


.hero:hover .hero-image img {
  transform: scale(1.05);
}

.btn:hover {
  opacity: 0.85;
}

.btn-black:hover {
  background: #222;
}

.about-image:hover img {
  transform: scale(1.03);
}

  /* hover（さりげなく） */
  .farm-item:hover .farm-arrow {
    background: #333;
  }

    
  .farm-item:hover {
    transform: translateX(12px);
  }


  .farm-item:hover .farm-arrow {
    transform: translateX(6px);
  }

  .farm-item:hover .farm-tags span {
    background: #e6efe9;
  }


  .case-card:hover {
    transform: translateY(-8px);
  }

  .news-item:hover {
    transform: translateX(10px);
    background: rgba(0,0,0,0.02);
  }

    /* hover */
    .cta-box:hover .cta-arrow {
      transform: translateX(4px);
      transition: 0.3s;
    }
    .cta-box.cta-image:hover::before {
      transform: scale(1.08);
    }

    .cta-box.cta-image:hover .cta-overlay {
      background: rgba(0,0,0,0.65);
    }


    .cta-box:hover .cta-arrow {
      transform: translateX(8px);
      background: #222;
  
    }

    .cta-row-bottom:hover::after {
      background-image: repeating-linear-gradient(
        to bottom,
        rgba(0,0,0,0.6) 0px,
        rgba(0,0,0,0.6) 4px,
        transparent 4px,
        transparent 8px
      );
    }

    .cta-box:hover {
      transform: scale(1.01);
    }


    .footer a:hover::after {
      width: 100%;
    }

    .footer-sns li:hover {
      transform: translateX(6px);
    }
