/*
Theme Name: NAKAJIMA FOODS
Theme URI:
Description:  
Author: 
Author URI: 
Version: 1.0
*/
.scroll-container {
  font-family: var(--font-family-en);
  font-size: clamp(100px, calc(80px + 5vw), 140px);
  font-weight: 700;
  letter-spacing: 1.2rem;
  line-height: 1;
  color: var(--sub-color02);
  position: absolute;
  top: 0;
  left:0;
  overflow: hidden;
  white-space: nowrap; 
  width: 100%;
}
.scroll-content {
  display: inline-block;
  white-space: nowrap;
  animation: scroll 120s linear infinite; /* アニメーション設定 */
}

@keyframes scroll {
  0% {
    transform: translateX(2%);
  }
  100% {
    transform: translateX(-100%);
  }
}

.scroll-content span {
  display: inline-block;
  padding: 0 2rem; /* テキスト間の隙間 */
}

/* トップページ */
#top{
  h2{
    margin:0;
    &::after{
      content: '';
      display: block;
      margin:30px auto 40px;
      width: 26px;
      height: 16px;
      background: url('img/heading_mark.png') center;
      background-size: contain;
    }
    .heading-en{
      font-family: var(--font-family-en);
      font-weight: bold;
      font-size: clamp(35px, calc(22.5px + 3.125vw), 60px);
      letter-spacing: 1rem;
      line-height: 1;
      margin-bottom: 10px;
      display: block;
    }
    .heading-ja{
      font-size: clamp(10px, calc(8px + 0.5vw), 14px);
      display: block;
    }
    @media screen and (max-width: 767px){
      &::after{
        margin: 20px auto 20px;
      }
    }
  }
  .scroll-container{
    top: 80px;
    @media screen and (max-width: 767px){
      top: 0;
    }
  }
  section{
    padding: 160px 0 80px;
    @media screen and (max-width: 767px){
      padding: 40px 0 40px;
    }
  }
  .slider{
    position: relative;
    padding-bottom: 60px;
    background: linear-gradient(180deg,transparent 0%,transparent 82%,var(--sub-color02) 82%, var(--sub-color02) 100%);
    .swiper-slide {
      visibility: hidden; /* 非アクティブなスライドを非表示に */
      opacity: 0;
      transition: 0.5s linear; 
    }
    .swiper-slide-active {
      visibility: visible; /* アクティブなスライドを表示 */
    }
    .swiper-pagination{
      bottom: -40px;
    }
    .slider-logo{
      position: absolute;
      top: 5%;
      left: 10%;
      z-index: 1;
      width: 200px;
    }
    .scroll-container {
      color: var(--sub-color01);
      top: 45%;
      transform: translate(0, -50%);
    }
  }
  .secConcept{
    .container{
      display: flex;
      align-items: center;
      gap: 40px;
      p{
        font-size: clamp(18px, calc(14px + 1vw), 22px);
        line-height: 2.4;
      }
      .flex{
        gap:10px 20px;
        .flex-item{
          width: calc((100% - 40px) / 3);
        }
      }
      @media screen and (max-width: 767px){
        flex-direction: column;
        p{
          text-align: center;
        }
        .flex{
          .flex-item{
            width: 100%;
          }
        }
      }
    }
  }
  .secStrength{
    background: linear-gradient(180deg,transparent 0%,transparent 50%,var(--main-color) 50%, var(--main-color) 100%);
    .container{
      .swiper-wrapper{
        display: flex;
        gap:0;
        margin: 0 auto 30px;
        .flex-item{
          font-weight: 600;
          text-align: center;
          width: 90%
        }
        @media screen and (min-width: 768px){
          width: 90%;
          gap:40px;
          margin: 0 auto 60px;
          .flex-item{
            width: calc((100% - 40px) / 3);
          }
        }
      }
    }
  }
  .secService{
    .flex{
      margin-bottom: 60px;
    }
    .service-item{
      position: relative;
      a{
        display: block;
        width: 100%;
        height: 100%;
      }
      .service-text{
        position:absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 50%;
        color: #fff;
        font-weight: 600;
        font-size: 2.5rem;
        border-top: 2px solid #fff;
        border-bottom: 2px solid #fff;
        padding: 15px 0;
        text-align: center;
      }
      @media screen and (max-width: 767px){
        .service-text{
          width: 80%;
        }
      }
    }
  }
}

#top{
  .secConcept{
  h2{
    margin:0;
    &::after{
      content:none;
    }
   }
  }
 }

.secContact{
  background: url('img/contact_bg.png') center;
  background-size: cover;
  text-align: center;
  color:#fff;
  padding: 60px 0!important;
  .contact-title{
    font-size: clamp(20px, calc(15px + 1.25vw), 30px);
    margin-bottom: 20px;
    font-weight: 600;
  }
  .flex{
    align-items:center;
    justify-content: space-between;
    gap: 10px 60px;
    margin-bottom: 40px;
    .contact-link{
      display: flex;
      justify-content: center;
      gap: 30px;
      font-family: var(--font-family-en);
      font-size: clamp(24px, calc(16px + 2vw), 40px);
      font-weight: 700;
      padding: 10px 60px;
      border: 2px solid #fff;
      border-radius: 20px;
      width: calc((100% - 60px) / 2);
      img{
        width: 40px;
      }
    }
  }
  p{
    font-size: clamp(16px, calc(12px + 1vw), 24px);
    font-weight: 600;
    margin-bottom: 20px;
  }
  @media screen and (max-width: 767px){
    padding: 30px 0!important;
    .flex{
      margin-bottom: 20px;
      .contact-link{
        padding: 5px 20px;
        width: 90%;
        border-radius: 10px;
      }
    }
    p{
      margin-bottom: 0;
      letter-spacing: 0;
    }
  }
}
.news-list{
  list-style: none;
  padding: 0;
  margin: 0 auto 60px;
  width: 80%;
  li{
    a{
      display: flex;
      gap: 5px 40px;
    }
    padding: 20px 40px;
    border-bottom: 2px dotted var(--border-color);
    .post-date{
      font-family: var(--font-family-en);
      font-weight: 600;
    }
    .post-title{
      font-weight: 600;
    }
  }
  @media screen and (max-width: 767px){
    width: 100%;
    margin: 0 auto 30px;
    li{
      padding: 10px 10px;
      a{
        flex-direction: column;
      }
    }
  }
}

/* コンテンツページ共通 */
.content{
  h1.content-title{
    text-align: center;
    font-size: clamp(25px, calc(19.5px + 1.375vw), 36px);
    font-weight: 600;
    letter-spacing: 0.13em;
    .title-en{
      font-family: var(--font-family-en);
      font-size: clamp(10px, calc(8px + 0.5vw), 14px);
      color: var(--main-color);
    }
  }
  .content-image{
    background-size: cover;
    width: 100%;
    height: 300px;
    @media screen and (max-width: 767px){
      height: 100px;
    }
  }
  .tabs {
    .tab-buttons{
      display: flex;
      width: 80%;
      margin: 0 auto;
      justify-content: center;
      .tab-button{
        cursor: pointer;
        background: #fff;
        padding: 5px 10px;
        text-align: center;
        width: 50%;
        font-weight: 600;
        &.active{
          background-color: var(--main-color);
        }
        &:first-child{
          border-radius: 10px 0 0 10px;
        }
        &:last-child{
          border-radius: 0 10px 10px 0;
        }
      }
      @media screen and (max-width: 767px){
        width: 100%;
      }
    }
    .tab-content .content {
      display: none;
    }
    .tab-content .content.active {
      display: block;
    }
  }
}
/* 事業内容 */
#service{
  .content-image{
    background-image: url('img/service/title_bg.png');
  }
  .flex{
    align-items: flex-start;
    margin-bottom: 80px;
    .textarea{
      background: #fff;
      padding: 20px;
      .service-title{
        position: relative;
        display: flex;
        gap: 30px;
        line-height: 1.4;
        padding-top: 5px;
        padding-left: 5px;
        margin-bottom: 40px;
        .service-no{
          font-family: var(--font-family-en);
          font-weight: 700;
          font-size: clamp(2.5rem, 1.955rem + 2.73vw, 4rem);
          z-index: 2;
          position: relative;
          padding-left: 10px;
          flex-shrink: 0;
        }
        h2{
          margin: 0;
          text-align: left;
        }
        &::before{
          content: '';
          position: absolute;
          top: 0;
          left: 0;
          width: 0;
          height: 0;
          border-bottom: 50px solid transparent; 
          border-left: 50px solid var(--main-color);     
          border-top: 0 solid transparent;
          border-right: 0 solid transparent;
          z-index: 1;
        }
      }
      p{
        padding:0 20px;
      }
    }

  }
  @media screen and (min-width: 768px){
    .flex{
      .textarea{
        width: 55%;
        z-index: 2;
        margin-right: -5%;  
      }
      img{
        margin-top: 60px;
        margin-left: -5%;
        position: relative;
        z-index: 1;
        width: 55%;
      }
      &.reverse{
        .textarea{
          margin-left: -5%;
          margin-right: 0;
        }
        img{
          margin-left: 0;
          margin-right: -5%;
        }
      }
    }
  }
  @media screen and (max-width: 767px){
    .flex{
      margin-bottom: 30px;
      &.reverse{
        flex-direction: column;
      }
    }
  }
}
/* 企業情報 */
#company{
  .content-image{
    background-image: url('img/company/title_bg.png');
  }
  .tab-content{
    padding: 80px 0;
  }
  .flex{
    gap: 20px 60px;
  }
  .president-image{
    margin-bottom: 40px;
    width: 35%;
  }
  .president_name{
    text-align: right;
    font-weight: 600;
    margin-top: 40px;
  }
  .president-text{
    flex: 1;
  }
  strong{
    font-size: 120%;
  }
  @media screen and (max-width: 767px){
    .flex{
      flex-direction: column;
      gap: 20px;
    }
    .president-image{
      width: 100%;
      margin-bottom: 20px;
    }
    .president_name{
      text-align: center;
    }
  }
  table.gaiyo{
    width: 80%;
    margin: 0 auto;
    border-top: 2px dotted var(--border-color);
    tr{
      border-bottom: 2px dotted var(--border-color);
    }
    th{
      width: 20%;
      vertical-align: top;
    }
    th, td{
      padding: 20px 10px;
    }
    td{
    }
    @media screen and (max-width: 767px){
      width: 100%;
      th, td{
        display: block;
        width: 100%;
      }
      th{
        text-align: left;
        padding-bottom: 0;
      }
      td{
        padding-top: 0;
      }
    }
  }
}
/* 強み */
#strength{
  .content-image{
    background-image: url('img/strength/title_bg.png');
  }
  .flex{
    gap: 20px 40px;
    align-items: flex-start;
    margin-bottom: 80px;
    .textarea{
      width: 55%;
      h2{
        font-size: 2.4rem;
        text-align: left;
        margin: 0 0 20px;
      }
      @media screen and (max-width: 767px){
        width: 100%;
      }
    };
    .imgarea{
      flex: 1;
    }
}
}
/* 食育への取り組み */
#education{
  .content-image{
    background-image: url('img/education/title_bg.png');
  }
  .flex{
    align-items: center;
    gap: 20px 40px;
    @media screen and (max-width: 767px){
      margin-bottom: 40px;
    }
    .textarea{
      .education-title{
        display: flex;
        align-items: flex-end;
        gap: 20px;
        margin-bottom: 30px;
        h2{
          margin: 0;
          font-size: 2.2rem;
          line-height: 1.2;
        }
        @media screen and (max-width: 767px){
          flex-direction: column;
          align-items: center;
          h2{
            font-size: 1.9rem;
          }
        }
      }
    }
    > img{
      width: 40%;
      border-radius: 50%;
      @media screen and (max-width: 767px){
        width: 100%;
        border-radius: 0;
      }
    }
  }
}
/* 採用情報 */
#recruit{
  .content-image{
    background-image: url('img/recruit/title_bg.png');
  }
  @media screen and (max-width: 767px){
    .content-image{
      background-position: right;
    }
  }
  .secFukurikosei{
    p{
      text-align: center;
      margin-bottom: 60px;
    }
    .flex{
      justify-content: space-between;
      gap: 20px 20px;
    }
  }
  .tabs{
    .tab-buttons{
      width: 100%;
    }
  }
  .secKyujin{
    table{
      background: #fff;
      width: 100%;
      margin: 60px auto;
      th{
        width: 20%;
      }
      td, th{
        padding: 20px 30px;
        vertical-align: top;
        text-align: left;
        border-bottom: 2px dotted var(--border-color);
      }
      tr:last-child td, tr:last-child th{
        border:none;
      }
      @media screen and (max-width: 767px){
        th, td{
          width: 100%;
          display: block;
        }
        th{
          border-bottom: none;
          padding-bottom: 0;
        }
      }
    }
  }
  .secInterview{
    .flex{
      gap: 20px 40px;
      margin-bottom: 40px;
      align-items: flex-start;
      p{
        flex: 1;
      }
      .name{
        font-weight: 700;
        margin-bottom: 20px;
        font-size: 110%;
      }
      dl{
        dt{
          &.faq_q{
            background: var(--bg-gray);
            padding: 10px;
            color: var(--main-color);
            font-weight: 700;
          }
        }
        dd{
          margin: 0;
          &.faq_a{
            padding: 10px;
            margin-bottom: 10px;
            span{
              font-weight: 700;
              color: var(--main-color);
            }
          }
        }
      }
    }
  }
}
/* お問い合わせ */
#contact{
  .content-image{
    background-image: url('img/contact/title_bg.png');
  }
  .contact-text{
    text-align: center;
    line-height: 2.4;
    margin-bottom: 60px;
  }
  .contact-form{
    table{
      width: 100%;
      margin-bottom: 40px;
      th{
        width: 25%;
        padding: 20px 20px;
        text-align: left;
        vertical-align: top;
        .require{
          background: var(--main-color);
          border-radius: 5px;
          font-size: 10px;
          padding: 5px 10px;
          margin-left: 10px;
        }
      }
      td{
        padding: 15px 0;
      }
      input[type='text'],input[type='tel'],input[type='email'],textarea{
        padding: 10px 15px;
        width: 100%;
        border: 1px solid var(--border-color);
        font-size: 18px;
      }
      @media screen and (max-width: 767px){
        margin-bottom: 20px;
        th, td{
          display: block;
          width: 100%;
        }
        th{
          padding: 0;
        }
        td{
          padding: 5px 0 15px;
        }
      }
    }
    .btn {
      font-family: var(--font-family);
      font-size: 120%;
    }
  }
}
#news{
  .content-image{
    background-image: url('img/news/title_bg.png');
  }
  .news-list{
    .news-list_img{
      img{
        max-width: 180px;
        aspect-ratio: 5 / 4;
        object-fit: cover;
        height: auto;
      }
    }
    .post-date{
      color: var(--sub-color01);
    }
    @media screen and (max-width: 767px){
      li{
        a{
          flex-direction: row;
          gap: 20px;
        }
      }
    }
  }
}

/* お知らせ詳細 */
#single{
  .content-image{
    background-image: url('img/news/title_bg.png');
  }
}
#single .post-title{
  font-size: clamp(25px, calc(19.5px + 1.375vw), 36px);
  font-weight: 600;
  letter-spacing: 0.13em;
}
#single .post-date{
  color: var(--sub-color01);
  margin-bottom: 40px;
}
#single .post-img{
  margin-bottom: 40px;
  text-align: center;
  img{
    width: 100%;
    height: auto;
    max-width: 800px;
  }
}

