@charset "utf-8";

/* ============================================================
   subsidy.css — 助成事業ページ専用スタイル
   共通: style.css を継承
============================================================ */


/* ===========================
   ページヘッダー
   ※ 共通スタイルは style.css で定義済み
   ※ subsidy固有：タイトルサイズのみ上書き
=========================== */
.page-header__title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
}


/* ===========================
   MVセクション
=========================== */
.subsidy-mv {
  background: #fff;
  padding: 20px 20px 0;
  text-align: center;
  overflow: hidden;
}

.subsidy-mv__catch {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.5rem, 3vw, 2.6rem);
  font-weight: 600;
  color: #5bbac3;
  letter-spacing: 0.09em;
  margin-bottom: 48px;
}

.subsidy-mv__illust {
  position: relative;
  max-width: 1400px;
  margin: 0 auto;
}

.subsidy-mv__illust > img {
  width: 100%;
  display: block;
}

/* イラスト上に乗せるテキスト（半円内部） */
.subsidy-mv__text {
  position: absolute;
  bottom: 16%;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  color: #fff;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(0.75rem, 1.3vw, 1.45rem);
  font-weight: 500;
  line-height: 1.9;
  letter-spacing: 0.16em;
  text-align: center;
  pointer-events: none;
}

@media (max-width: 768px) {
.subsidy-mv__illust {
  width: 170%;
  margin: 0 auto;
  margin-left: -35%;
}
}

/* ===========================
   CTAセクション
=========================== */
.subsidy-cta {
  background: #9de6eb;
  padding: 70px 40px;
}

.subsidy-cta__inner {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1000px;
  margin: 0 auto;
}

.subsidy-cta__img {
  flex: 0 0 42%;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
}

.subsidy-cta__img img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

/* js-reveal-left の初期状態を上書き（CTAはPCでも下から） */
.subsidy-cta__img.js-reveal-left {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.85s ease, transform 0.85s ease;
}
.subsidy-cta__img.js-reveal-left.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.subsidy-cta__body {
  flex: 1;
}

/* js-reveal-right も同様に上書き */
.subsidy-cta__body.js-reveal-right {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.85s ease 0.15s, transform 0.85s ease 0.15s;
}
.subsidy-cta__body.js-reveal-right.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.subsidy-cta__title {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: clamp(1.3rem, 2.2vw, 2.0rem);
  font-weight: 600;
  color: #4d517a;
  line-height: 1.4;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.subsidy-cta__text {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.9rem;
  color: #4d517a;
  line-height: 1.9;
  font-weight: 400;
  margin-bottom: 32px;
}

.subsidy-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  color: #2a2a2a;
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 14px 28px;
  border-radius: 40px;
  border: 1px solid #e86030;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.subsidy-cta__btn:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  transform: translateY(-2px);
}

.subsidy-cta__btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #e86030;
  color: #fff;
  border-radius: 50%;
  font-size: 0.85rem;
  flex-shrink: 0;
}


/* ===========================
   寄付企業セクション
=========================== */
.subsidy-donor {
  position: relative;
  padding: 90px 40px 100px;
  background-color: #f5f2eb;
  background-image: url('../images/bg_pattern.jpg');
  background-repeat: repeat;
  background-size: 300px auto;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.subsidy-donor__card {
  position: relative;
  z-index: 2;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(0,0,0,0.08);
  padding: 48px 56px;
  display: flex;
  align-items: center;
  gap: 48px;
  max-width: 700px;
  width: 100%;
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
}

.subsidy-donor__icon {
  flex: 0 0 120px;
}

.subsidy-donor__icon img {
  width: 120px;
  height: auto;
}

.subsidy-donor__title {
  font-family: 'Noto Serif JP', serif;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 600;
  color: #1a3a2a;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}

.subsidy-donor__text {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.8;
  margin-bottom: 20px;
}

.subsidy-donor__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #e86030;
  letter-spacing: 0.04em;
  transition: opacity 0.2s ease;
}

.subsidy-donor__link:hover {
  opacity: 0.7;
}

.subsidy-donor__link-arrow {
  font-size: 0.7rem;
}

/* 植物挿絵 */
.plant--donor-left {
  position: absolute;
  left: 23%;
  top: 27%;
  transform: translateY(-50%);
  width: 140px;
  z-index: 1;
  pointer-events: none;
}

.plant--donor-right {
  position: absolute;
  right: 23%;
  bottom: 4%;
  width: 130px;
  z-index: 2;
  pointer-events: none;
}


/* ===========================
   レスポンシブ
=========================== */
@media (max-width: 768px) {

  /* ページヘッダー（subsidy固有の上書き） */
  .page-header__title {
    gap: 12px;
  }

  .page-header__title .biz-title__leaf img {
    width: 60px;
  }

  /* MV */
  .subsidy-mv {
    padding: 40px 16px 0;
  }

  .subsidy-mv__catch {
    font-size: 1.27rem;
    margin-bottom: 20px;
  }

  .subsidy-mv__text {
    font-size: 12px;
    width: 60%;
    bottom: 10%;
    line-height: 1.7;
    letter-spacing: 0.08em;
  }

  /* CTA */
  .subsidy-cta {
    padding: 50px 24px;
  }

  .subsidy-cta__inner {
    flex-direction: column;
    gap: 32px;
  }

  .subsidy-cta__img {
    flex: none;
    width: 100%;
  }

  .subsidy-cta__img img {
    height: 220px;
  }

  .subsidy-cta__title {
    font-size: 1.25rem;
  }

  .subsidy-cta__text {
    font-size: 0.85rem;
  }

  /* 寄付企業 */
  .subsidy-donor {
    padding: 70px 24px 80px;
  }

  .subsidy-donor__card {
    flex-direction: column;
    text-align: center;
    padding: 36px 28px;
    gap: 24px;
  }

  .plant--donor-left {
    width: 80px;
    left: 10px;
    top: 14%;
    transform: none;
  }

  .plant--donor-right {
    width: 80px;
    right: 8px;
    bottom: 16px;
  }
}


/* ===========================
   subsidy-mv__catch 文字アニメーション
=========================== */
.subsidy-mv__catch .catch-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.subsidy-mv__catch .catch-char.visible {
  opacity: 1;
  transform: translateY(0);
}