/* ==========================================================
   Page: Subsidy
   ========================================================== */

/* MV: 共通MVの背景画像のみをこのページ用に上書き */
.zp-digital-mv--subsidy::before {
  background-image:
    linear-gradient(0deg, rgba(146, 217, 0, 0.28), rgba(146, 217, 0, 0.28)),
    url("../../images/p-about-subsidies-mv_bg.webp");
  background-blend-mode: multiply;
}

.p-subsidy-about {
  padding: 84px 0 92px;
}

.p-subsidy-hero {
  max-width: 1080px;
  margin: 0 auto;
  padding-block: 100px;
}

.p-subsidy-hero__title {
  margin: 0;
  color: #1f7a3f;
  font-size: clamp(var(--fs-fluid-32), 2.5vw, var(--fs-fluid-40));
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-align: center;
}

.p-subsidy-hero__lead {
  margin: 30px 0 0;
  color: #222;
  font-size: var(--fs-fluid-16);
  font-weight: 400;
  line-height: 2;
  letter-spacing: 0.02em;
  text-align: center;
}

@media (max-width: 767px) {
  .p-subsidy-hero__lead {
    text-align: left;
  }
}

.p-subsidy-hero__cards {
  margin: 58px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.p-subsidy-hero-card {
  position: relative;
  border: 3px solid #00a41d;
  min-height: 292px;
  padding: 60px 24px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.p-subsidy-hero-card__num {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 112px;
  margin: 0;
  padding: 10px 0 15px;
  background-color: #a1d442;
  color: #000;
  font-size: var(--fs-fluid-48);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
  text-align: center;
}

.p-subsidy-hero-card__icon {
  margin: 34px 0 0;
  height: 80px;
}

.p-subsidy-hero-card__icon img {
  display: block;
  height: 100%;
}

.p-subsidy-hero-card__text {
  margin: 24px 0 0;
  color: #202020;
  font-size: clamp(var(--fs-fluid-18), 1.25vw, var(--fs-fluid-20));
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.02em;
  text-align: center;
}

.p-subsidy-merits {
  padding-block: 100px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  background: var(--color-bg-green-soft);
}

.p-subsidy-merits__head {
  text-align: center;
}

.p-subsidy-merits__en {
  margin: 0;
  color: #1f7a3f;
  font-size: clamp(var(--fs-cta-label), 3.2vw, var(--fs-fv-catch));
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
}

.p-subsidy-merits__title {
  margin: 8px 0 0;
  color: #1f7a3f;
  font-size: clamp(var(--fs-fluid-14), 1vw, var(--fs-body));
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.03em;
}

.p-subsidy-merits__list {
  margin: 40px auto 0;
  padding: 0 40px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-width: 1080px;
}

.p-subsidy-merits-card {
  background-color: #fff;
  padding: 34px 40px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.p-subsidy-merits-card__text {
  width: 40%;
}

.p-subsidy-merits-card__num {
  margin: 0;
  display: inline-block;
  background-color: #a1d442;
  color: #fff;
  font-size: var(--fs-fluid-36);
  font-weight: 500;
  line-height: 1;
  padding: 6px 10px 9px;
}

.p-subsidy-merits-card__title {
  margin: 18px 0 0;
  color: #00703b;
  font-size: var(--fs-fluid-20);
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.p-subsidy-merits-card__copy {
  margin: 18px 0 0;
  color: #333;
  font-size: clamp(var(--fs-fluid-14), 1vw, var(--fs-body));
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.02em;
}

.p-subsidy-merits-card__image {
  width: 60%;
  margin: 0;
}

.p-subsidy-merits-card__image img {
  display: block;
  width: 100%;
  height: auto;
}

.p-subsidy-step {
  margin: 96px auto 0;
  max-width: 1080px;
}

.p-subsidy-step__head {
  text-align: center;
}

.p-subsidy-step__title {
  margin: 0;
  color: #1f7a3f;
  font-size: clamp(var(--fs-services-card-title), 2vw, var(--fs-fluid-36));
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

.p-subsidy-step__title-br {
  display: none;
}

.p-subsidy-step__lead {
  margin: 24px 0 0;
  color: #222;
  font-size: clamp(var(--fs-fluid-13), 0.95vw, var(--fs-fluid-15));
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.02em;
}

.p-subsidy-step__figure {
  margin: 42px 0 0;
}

.p-subsidy-step__figure img,
.p-subsidy-step__figure-img {
  display: block;
  width: 100%;
  height: auto;
}

.p-subsidy-step__carousel {
  display: none;
}

.p-subsidy-value {
  margin: 96px auto 0;
  max-width: 1080px;
}

.p-subsidy-value__head {
  text-align: center;
}

.p-subsidy-value__title {
  margin: 0;
  color: #1f7a3f;
  font-size: clamp(var(--fs-services-card-title), 2vw, var(--fs-fluid-36));
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

.p-subsidy-value__lead {
  margin: 24px 0 0;
  color: #222;
  font-size: clamp(var(--fs-fluid-13), 0.95vw, var(--fs-fluid-15));
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.02em;
}

.p-subsidy-value__figure {
  margin: 42px 0 0;
}

.p-subsidy-value__figure img,
.p-subsidy-value__figure-img {
  display: block;
  width: 100%;
  height: auto;
}

/* 補助金のハードル（デメリット）: ヒーローカードと同型の3カラム */
.p-subsidy-hurdles {
  margin: 96px auto 0;
  max-width: 1080px;
}

.p-subsidy-hurdles__title {
  margin: 0;
  color: #1f7a3f;
  font-size: clamp(var(--fs-services-card-title), 2vw, var(--fs-fluid-36));
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.02em;
  text-align: center;
}

.p-subsidy-hurdles__cards {
  margin: 58px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.p-subsidy-hurdles-card {
  position: relative;
  border: 2px solid #5b9bd5;
  min-height: 292px;
  padding: 80px 24px 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.p-subsidy-hurdles-card__tag {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin: 0;
  padding: 8px 16px;
  background-color: #154c8e;
  color: #fff;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0.02em;
  text-align: center;
  font-size: var(--fs-fluid-14);
}

.p-subsidy-hurdles-card__tag-num {
  font-weight: 500;
  letter-spacing: 0.04em;
  font-size: var(--fs-fluid-40);
}

.p-subsidy-hurdles-card__icon {
  margin: 34px 0 0;
  height: 80px;
}

.p-subsidy-hurdles-card__icon img {
  display: block;
  height: 100%;
  width: auto;
}

.p-subsidy-hurdles-card__text {
  margin: 24px 0 0;
  color: #202020;
  font-size: clamp(var(--fs-fluid-18), 1.25vw, var(--fs-fluid-20));
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.02em;
  text-align: center;
}

.p-subsidy-hurdles__foot {
  margin: 48px 0 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.p-subsidy-hurdles__lead {
  margin: 0;
  color: #222;
  font-size: var(--fs-fluid-16);
  font-weight: 400;
  line-height: 1.9;
  letter-spacing: 0.02em;
  text-align: center;
}

.p-subsidy-hurdles__cta.p-top-news__more {
  box-sizing: border-box;
  margin: 28px 0 0;
  width: 100%;
  max-width: 300px;
  min-width: 0;
  padding: 10px 18px 10px 24px;
  gap: 14px;
  border: 1px solid #1f7a3f;
  border-radius: 999px;
  background-color: #fff;
  color: var(--color-text, #222);
  justify-content: space-between;
  transition:
    background-color var(--transition, 0.2s ease),
    border-color var(--transition, 0.2s ease),
    opacity var(--transition, 0.2s ease);
}

.p-subsidy-hurdles__cta.p-top-news__more:hover {
  background-color: #e8f2e0;
  border-color: rgba(0, 91, 47, 0.55);
  color: var(--color-text, #222);
  opacity: 0.96;
}

.p-subsidy-hurdles__cta.p-top-news__more:hover .p-top-news__more-en,
.p-subsidy-hurdles__cta.p-top-news__more:hover .p-top-news__more-ja {
  color: var(--color-text, #222);
}

.p-subsidy-hurdles__cta .p-top-news__more-texts {
  text-align: center;
}

@media (max-width: 1023px) {
  .p-subsidy-about {
    padding: 64px 0 72px;
  }

  .p-subsidy-hero__cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 40px 0 0;
    gap: 18px;
  }

  .p-subsidy-hero-card {
    min-height: 260px;
  }

  .p-subsidy-merits {
    margin-top: 64px;
  }

  .p-subsidy-merits__list {
    margin-top: 32px;
    gap: 16px;
  }

  .p-subsidy-step {
    margin-top: 64px;
  }

  .p-subsidy-step__lead {
    margin-top: 18px;
  }

  .p-subsidy-step__figure {
    margin-top: 26px;
  }

  .p-subsidy-value {
    margin-top: 64px;
  }

  .p-subsidy-value__lead {
    margin-top: 18px;
  }

  .p-subsidy-value__figure {
    margin-top: 26px;
  }

  .p-subsidy-hurdles {
    margin-top: 64px;
  }

  .p-subsidy-hurdles__cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 40px 0 0;
    gap: 18px;
  }

  .p-subsidy-hurdles-card {
    min-height: 260px;
  }

  .p-subsidy-hurdles__foot {
    margin-top: 40px;
  }
}

@media (max-width: 767px) {
  .p-subsidy-step__title-br {
    display: block;
  }

  .p-subsidy-hero {
    padding-top: 50px;
  }

  .p-subsidy-hero__cards {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 40px auto 0;
    gap: 18px;
  }

  .p-subsidy-merits__list {
    padding: 0 20px;
  }

  .p-subsidy-merits-card {
    padding: 24px 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .p-subsidy-merits-card__text,
  .p-subsidy-merits-card__image {
    width: 100%;
  }

  .p-subsidy-step__figure {
    display: none;
  }

  .p-subsidy-step__carousel {
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .p-subsidy-step__carousel-item {
    position: relative;
    flex: 0 0 calc((100% - 12px) / 2);
    height: 260px;
    scroll-snap-align: start;
  }

  /* width:auto だと SVG ごとに置換要素の枠幅が変わり、contain 時の表示高さがずれるため同一矩形に収める */
  .p-subsidy-step__carousel-image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: top center;
  }

  .p-subsidy-hurdles__cards {
    grid-template-columns: 1fr;
    max-width: 440px;
    margin: 40px auto 0;
    gap: 18px;
  }
}

