/* ===========================================================
   css/pages/top.css
   TOPページ固有スタイル
   MIRAIE PROJECT | 株式会社IKIpuro
   ガイドライン v1.2 準拠
   =========================================================== */

/* ─────────────────────────────────────────────────────────
   .hero — ヒーローセクション
   ───────────────────────────────────────────────────────── */
.hero {
  position: relative;
  background-color: var(--color-white);
}

/* 写真コンテナ＋下端カーブ（山型） */
.hero-bg {
  position: relative;
  overflow: hidden;
  line-height: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 150%;
  height: 120px;
  background-color: var(--color-white);
  border-radius: 50%;
  pointer-events: none;
}

.hero-bg img {
  height: 200px; /* 18vh から変更 */
  object-fit: cover;
  object-position: center 45%;
  width: 100%;
}

/* ロゴ背景円 */
.hero-logo {
  position: absolute;
  bottom: -130px;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background-color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.hero-logo img {
  width: 128px;
  height: auto;
}


/* ─────────────────────────────────────────────────────────
   .hero-copy — キャッチコピー＋ビジョンカード
   ───────────────────────────────────────────────────────── */
.hero-copy {
  position: relative;
  background-color: var(--color-white);
  padding-top: calc(100px + var(--sp-xl));
  padding-bottom: var(--sp-xl);
  padding-inline: var(--sp-sm);
  text-align: center;
  overflow: hidden;
}

.hero-copy-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin-inline: auto;
}

/* キャッチコピー */
.hero-copy-title {
  font-size: var(--fs-hero);
  font-weight: 900;
  line-height: 1.5;
  color: var(--color-primary);
  margin-bottom: var(--sp-sm);
  letter-spacing: 0.08em;
}

/* 装飾線 */
.section-title-line {
  display: block;
  justify-content: center;
  margin-bottom: var(--sp-lg);
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}

.section-title-line img {
  width: 100%;
  max-width: 600px;
  height: auto;
  margin-inline: auto;
}

/* リード文 */
.hero-copy-lead {
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: var(--lh-relaxed);
  color: var(--color-text);
  margin-bottom: var(--sp-lg);
}

/* ビジョンカードボタン群 */
.hero-copy-btns {
  display: flex;
  gap: var(--sp-sm);
  width: 100%;
}

/* 左右イラスト */
.hero-copy-illust {
  position: absolute;
  bottom: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-copy-illust img {
  width: 100%;
  height: auto;
}

.hero-copy-illust--left {
  left: 100px;
  top: 35%;
  width: 140px;
}

.hero-copy-illust--right {
  right: 80px;
  top: 10%;
  width: 180px;
}

/* 黄色ドット装飾 */
.hero-copy-deco {
  position: absolute;
  width: 80px;
  pointer-events: none;
  z-index: 0;
}

.hero-copy-deco img {
  width: 100%;
  height: auto;
}

.hero-copy-deco--left {
  left: 220px;
  top: 120px;
}

.hero-copy-deco--right {
  right: 180px;
  bottom: 160px;
}


/* ─────────────────────────────────────────────────────────
   .project-intro — MIRAIEプロジェクトとは？
   ───────────────────────────────────────────────────────── */
.project-intro {
  position: relative;
  background-color: var(--color-bg-sub);
  padding-top: var(--sp-3xl);
  padding-bottom: var(--sp-xl);
  text-align: center;
}

/* 上端カーブ（白→ベージュ） */
.project-intro-curve {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background-color: var(--color-white);
  clip-path: ellipse(55% 100% at 50% 0%);
}

.project-intro .section-title {
  margin-bottom: var(--sp-xs);
}

.project-intro-body {
  max-width: 640px;
  margin-inline: auto;
  margin-top: var(--sp-lg);
}

.project-intro-body p {
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
  color: var(--color-text);
  margin-bottom: var(--sp-md);
}

.project-intro-sub {
  margin-top: var(--sp-md);
  font-size: var(--fs-base);
}

.project-intro-deco {
  position: absolute;
  width: 80px;
  pointer-events: none;
}

.project-intro-deco img {
  width: 100%;
  height: auto;
  display: block;
}

.project-intro-deco--left {
  left: 100px;
  top: 30%;
  width: 160px;
}

.project-intro-deco--right {
  right: 160px;
  top: 70%;
}


/* ─────────────────────────────────────────────────────────
   .activities — 活動紹介カード（左右交互）
   ───────────────────────────────────────────────────────── */
.activities {
  background-color: var(--color-bg-sub);
  padding-block: var(--sp-xl);
  padding-top: 0px;
  padding-bottom: var(--sp-xl);
}

.activity-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-lg);
  align-items: center;
  margin-bottom: calc(var(--sp-xl) * 0.5);
  background-color: var(--color-white);
  border-radius: 20px;
  overflow: hidden;
  padding: var(--sp-md);
}

.activity-card:last-child {
  margin-bottom: 0;
}

/* 写真が右の場合（img-right）は順序を入れ替え */
.activity-card--img-right .activity-card-img {
  order: 2;
}

.activity-card--img-right .activity-card-body {
  order: 1;
}

.activity-card-img img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
}

.activity-card-body {
  position: relative;
  display: flex;
  flex-direction: column;
}

.activity-card-body .btn {
  align-self: flex-end;
}

.activity-card-illust {
  position: absolute;
  top: -10px;
  right: 0;
  width: 130px;
}

.activity-card-illust img {
  width: 100%;
  height: auto;
}

.activity-card--1 .activity-card-illust,
.activity-card--3 .activity-card-illust {
  width: 104px; /* 130px × 0.8 */
}

.activity-card--2 .activity-card-illust {
  width: 144px; /* 180px × 0.8 */
}

.activity-card--4 .activity-card-illust {
  width: 160px; /* 200px × 0.8 */
}

.activity-card-label {
  font-size: var(--fs-sm);
  color: var(--color-primary);
  font-weight: 700;
  margin-bottom: 0;
}

.activity-card-title {
  font-size: var(--fs-xl);
  font-weight: 900;
  color: var(--color-primary);
  line-height: var(--lh-loose);
  margin-bottom: var(--sp-sm);
  letter-spacing: 0.05em;
}

.activity-card-text {
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
  color: var(--color-text);
  margin-bottom: var(--sp-md);
}

.activity-card-line {
  width: 100%;
  max-width: 100%;
  height: 4px;
  border-bottom: 1px dashed var(--color-primary);
  margin-bottom: var(--sp-sm);
}


/* ─────────────────────────────────────────────────────────
   .news-section — お知らせ
   ───────────────────────────────────────────────────────── */
.news-section {
  position: relative;
  background-color: var(--color-white);
  padding-top: var(--sp-3xl);
  padding-bottom: var(--sp-xl);
  text-align: center;
}

.news-section-deco--left {
  position: absolute;
  left: 40px;
  top: 40px;
  width: 120px;
  pointer-events: none;
}

.news-section-deco--right {
  position: absolute;
  right: 40px;
  bottom: 80px;
  width: 160px;
  pointer-events: none;
}

.news-section-deco--left img,
.news-section-deco--right img {
  width: 100%;
  height: auto;
}

.news-section .section-title {
  margin-bottom: var(--sp-lg);
}

.news-section .news-filter {
  padding-left: var(--sp-lg);
}

.news-list-wrap {
  background-color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--sp-md) var(--sp-lg);
  margin-top: var(--sp-lg);
  text-align: left;
}

/* SNSアイコン */
.sns-icons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-md);
  margin-top: var(--sp-lg);
}

.sns-icons a {
  display: block;
  transition: opacity 0.2s;
}

.sns-icons a:hover {
  opacity: 0.7;
}

.sns-icons img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}


/* ─────────────────────────────────────────────────────────
   .partner-banner — パートナー様募集
   ───────────────────────────────────────────────────────── */
.partner-banner {
  background-color: var(--color-bg-sub);
  padding-block: var(--sp-xl);
}

.partner-banner-title {
  font-size: var(--fs-xl);
  font-weight: 900;
  color: var(--color-primary);
  margin-bottom: var(--sp-lg);
  text-align: center;
}

.partner-banner-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-lg);
  align-items: start;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.partner-banner-img img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  border-radius: 20px;
}

.partner-banner-body {
  padding: var(--sp-lg);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.partner-banner-text {
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
  color: var(--color-text);
  margin-bottom: var(--sp-md);
}


/* ─────────────────────────────────────────────────────────
   レスポンシブ（SP）
   ───────────────────────────────────────────────────────── */
@media (max-width: 767px) {

  .hero-bg img {
    height: 40vw;
  }

  /* ① ロゴ円を少し大きく */
  .hero-logo {
    width: 180px;
    height: 180px;
    bottom: -90px;
  }

  .hero-logo img {
    width: 110px;
  }

  .hero-copy {
    padding-top: calc(90px + var(--sp-lg));
  }

  /* ① セクション見出しフォントサイズを下げる */
  .section-title {
    font-size: 24px;
  }

  /* ② キャッチコピーフォントサイズをセクション見出しに合わせる */
  .hero-copy-title {
    font-size: var(--fs-xl);
  }

  /* ② 左右イラストを非表示 */
  .hero-copy-illust {
    display: none;
  }

  .hero-copy-deco {
    display: none;
  }

  /* ② 装飾線をコンテンツ幅に */
  .section-title-line {
    width: 100%;
    margin-left: 0;
  }

  /* ② ③ 改行タグをSPで非表示 */
  .hero-copy-lead br,
  .project-intro-body br {
    display: none;
  }

  .hero-copy-btns {
    flex-direction: column;
  }

  /* ③ 活動カードと上部文章の余白を50%に */
  .project-intro {
    padding-bottom: calc(var(--sp-xl) * 0.5);
  }

  /* ③ プロジェクトイントロのドット装飾を非表示 */
  .project-intro-deco {
    display: none;
  }

  .activity-card {
    grid-template-columns: 1fr;
  }

  .activity-card--img-right .activity-card-img {
    order: 0;
  }

  .activity-card--img-right .activity-card-body {
    order: 1;
  }

  /* ④ 活動カードイラストのはみ出しを修正 */
  .activity-card-illust {
    top: 0;
  }

  /* ④ 活動カードのイラストサイズを80%に */
  .activity-card--1 .activity-card-illust,
  .activity-card--3 .activity-card-illust {
    width: 91px; /* 130px × 0.7 */
  }

  .activity-card--2 .activity-card-illust {
    width: 91px;
    top: 20px;
  }

  .activity-card--4 .activity-card-illust {
    width: 112px; /* 160px × 0.7 */
    top: 20px;
  }

  /* ① 活動カード見出しフォントサイズを下げる */
  .activity-card-title {
    font-size: 24px;
  }

  /* ④ 活動カード写真の高さを80%に */
  .activity-card-img img {
    height: 224px; /* 280px × 0.8 */
  }

  /* ④ もっと知りたいボタンをセンタリング */
  .activity-card-body .btn {
    align-self: center;
  }

  /* ⑤ お知らせ右ドット装飾を非表示 */
  .news-section-deco--right {
    display: none;
  }

  /* ⑤ お知らせリストの左右パディングを縮小 */
  .news-list-wrap {
    padding: var(--sp-sm) var(--sp-xs);
  }

  /* ⑤ パートナーボタン下余白を50%に */
  .partner-banner {
    padding-bottom: calc(var(--sp-xl) * 0.5);
  }

  .partner-banner-inner {
    grid-template-columns: 1fr;
  }

  .partner-banner-img img {
    height: 200px;
  }

  /* ⑥ パートナーボタンをセンタリング・余白を縮小 */
  .partner-banner-body {
    padding: var(--sp-xs) var(--sp-sm);
    align-items: center;
  }

  /* ⑥ パートナーテキストを写真幅に合わせる */
  .partner-banner-text {
    width: 100%;
  }

  /* フッター田園写真の高さを50%に */
  .footer-photo img {
    height: 140px; /* 280px × 0.5 */
  }

}
