/* ==========================================================================
   トップページ（index.html）
   ========================================================================== */

/* MV
   ========================================================================== */
.p-mv {
  position: relative;
  max-width: var(--inner-width);
  margin: 0 auto;
}

.p-mv__images {
  width: 100%;
}

.p-mv__images img {
  width: 100%;
  height: auto;
}

.p-mv__title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 89.33vw; /* 335px / 375px */
}

.p-mv__title img {
  width: 100%;
  height: auto;
}

/* イントロ
   ========================================================================== */
.p-intro {
  padding: 56px 0;
}

.p-intro__body {
  max-width: 800px;
  margin: 0 auto;
}

.p-intro__body p + p {
  margin-top: 24px;
}

.p-intro__note {
  font-size: 3.73vw; /* 14px / 375px */
  text-align: left;
  padding-left: 1em;
  text-indent: -1em;
}

/* 記事カード
   ========================================================================== */
.p-articles {
  padding: 56px 0;
}

.p-articles__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.p-card {
  display: block;
  background-color: var(--color-white);
  border: 1px solid var(--color-text);
  box-shadow: 8px 8px 0 rgba(68, 50, 0, 0.15);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.p-card:hover {
  transform: translateY(-6px);
  box-shadow: 8px 14px 0 rgba(68, 50, 0, 0.15);
}

.p-card__img img {
  width: 100%;
  height: auto;
}

.p-card__body {
  padding: 4.27vw;
  display: flex;
  flex-direction: column;
}

.p-card__title {
  font-size: 4.80vw;
  font-weight: 700;
  margin-bottom: 12px;
}

.p-card__text {
  font-size: 3.73vw;
  line-height: 1.7;
}

.p-card__body .c-arrow-btn {
  align-self: flex-end;
  margin-top: auto;
  padding-top: 16px;
}

/* 実証事業事例紹介
   ========================================================================== */
.p-case {
  position: relative;
  padding: 56px 0;
}

.p-case::before {
  content: '';
  position: absolute;
  top: -74%;
  right: 0;
  bottom: 0;
  left: 0;
  background-image: url('../img/top/img_vegetable.png');
  background-size: 76.8%;
  background-position: right center;
  background-repeat: no-repeat;
  mix-blend-mode: multiply;
  z-index: 0;
  pointer-events: none;
}

.p-case > .l-inner {
  position: relative;
  z-index: 1;
}

.p-case__heading {
  font-size: 8vw;
  font-weight: 700;
  text-align: center;
  margin-bottom: 32px;
}

.p-case-card {
  display: block;
  background-color: var(--color-white);
  border: 1px solid var(--color-text);
  overflow: hidden;
  box-shadow: 8px 8px 0 rgba(68, 50, 0, 0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 5.33vw;
}

.p-case-card:hover {
  transform: translateY(-6px);
  box-shadow: 8px 14px 0 rgba(68, 50, 0, 0.15);
}

.p-case-card__img img {
  width: 100%;
  height: auto;
  border: 1px solid var(--color-text);
  border-radius: 10px;
}

.p-case-card__body {
  padding: 5.33vw 0 0 0;
}

.p-case-card__body .c-text-btn {
  display: flex;
  margin: 0 auto;
}

.p-case-card__title {
  font-size: 4.80vw;
  font-weight: 700;
  margin-bottom: 10px;
}

.p-case-card__text {
  font-size: 3.73vw;
  line-height: 1.7;
  margin-bottom: 16px;
}

/* ==========================================================================
   PC（769px以上）
   ========================================================================== */
@media (min-width: 769px) {

  /* MV */
  .p-mv__title {
    width: 705px;
  }

  /* イントロ */
  .p-intro {
    padding: 80px 0;
  }

  .p-intro__body {
    text-align: center;
  }

  .p-intro__note {
    font-size: 14px;
  }

  /* 記事カード（2列） */
  .p-articles {
    padding: 80px 0;
  }

  .p-articles__list {
    flex-direction: row;
    justify-content: center;
    gap: 32px;
  }

  .p-articles__item {
    width: 406px;
    flex-shrink: 0;
    display: flex;
  }

  .p-articles__item .p-card {
    width: 100%;
    display: flex;
    flex-direction: column;
  }

  .p-articles__item .p-card__body {
    flex: 1;
    padding: 20px;
  }

  .p-card__title {
    font-size: 18px;
  }

  .p-card__text {
    font-size: 14px;
  }

  .p-card__img img {
    height: 260px;
  }

  /* 事例紹介 */
  .p-case {
    padding: 80px 0;
  }

  .p-case__heading {
    font-size: 40px;
    margin-bottom: 40px;
  }

  .p-case::before {
    top: -280px;
    background-size: 50%;
  }

  .p-case-card {
    display: flex;
    align-items: flex-start;
    width: 1000px;
    margin: 0 auto;
    padding: 45px 40px;
  }

  .p-case-card__img {
    flex-shrink: 0;
    width: 410px;
  }

  .p-case-card__img img {
    width: 100%;
    height: auto;
    border: 1px solid var(--color-text);
    border-radius: 10px;
  }

  .p-case-card__body {
    padding: 20px 0 0 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .p-case-card__body .c-text-btn {
    margin: 0;
  }

  .p-case-card__title {
    font-size: 24px;
    line-height: 1;
    margin-bottom: 30px;
  }

  .p-case-card__text {
    font-size: 16px;
    margin-bottom: 24px;
  }
}
