/* ===========================================================
   css/pages/project.css
   MIRAIEプロジェクトページ固有スタイル
   MIRAIE PROJECT | 株式会社IKIpuro
   ガイドライン v1.2 準拠
   =========================================================== */

/* ─────────────────────────────────────────────────────────
   .page-hero-bg — ヒーロー写真位置（project固有）
   ───────────────────────────────────────────────────────── */
.page-hero {
  margin-bottom: -80px;
  position: relative;
}

.page-hero-bg img {
  object-position: center 40%;
}

/* ─────────────────────────────────────────────────────────
   .project-section — 各活動セクション
   ───────────────────────────────────────────────────────── */
.project-section {
  background-color: var(--color-bg-sub);
  padding-block: var(--sp-xl);
}

.project-section .content-card {
  position: relative;
  z-index: 1;
}

.project-section-header {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin-bottom: var(--sp-md);
  text-align: center;
}

.project-section-title {
  font-size: var(--fs-xl);
  font-weight: 900;
  color: var(--color-primary);
  text-align: center;
}

.project-section-illust {
  position: absolute;
  right: 0;
  transform: translateY(-50%);
  width: 120px;
  pointer-events: none;
}

/* 共育 */
#kyoiku .project-section-illust {
  top: 120%;
}

/* 倶楽部 */
#club .project-section-illust {
  top: 10%;
}

/* ファーム */
#farm .project-section-illust {
  top: 10%;
}

/* タウン */
#town .project-section-illust {
  top: 40%;
}

.project-section-illust img {
  width: 100%;
  height: auto;
}

/* ─────────────────────────────────────────────────────────
   .project-lead-banner — 緑帯サブ見出し
   ───────────────────────────────────────────────────────── */
.project-lead-banner {
  position: relative;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: var(--fs-lg);
  font-weight: 700;
  padding: 10px var(--sp-xl);
  margin-bottom: var(--sp-lg);
  margin-inline: auto;
  text-align: center;
  width: 70%;
  clip-path: polygon(
    20px 0%,
    calc(100% - 20px) 0%,
    93% 50%,
    calc(100% - 20px) 100%,
    20px 100%,
    7% 50%
  );
}

/* ─────────────────────────────────────────────────────────
   .project-card-inner — カード内レイアウト
   ───────────────────────────────────────────────────────── */
.project-card-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-lg);
  align-items: start;
  margin-bottom: var(--sp-lg);
}

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

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

.project-card-body p:last-child {
  margin-bottom: 0;
}

.project-card-img img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  margin-bottom: var(--sp-sm);
}

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

/* ─────────────────────────────────────────────────────────
   .project-list — 箇条書き
   ───────────────────────────────────────────────────────── */
.project-list {
  margin-block: var(--sp-sm);
  background-color: var(--color-bg-sub);
  border-radius: 8px;
  padding: var(--sp-sm) var(--sp-md);
}

.project-list li {
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
  color: var(--color-text);
  margin-bottom: var(--sp-xs);
  list-style: none;
  padding-left: 1em;
  text-indent: -1em;
}

.project-list li::before {
  content: '・';
  color: var(--color-text);
}

/* ─────────────────────────────────────────────────────────
   .project-sub — サブセクション
   ───────────────────────────────────────────────────────── */
.project-sub {
  margin-top: var(--sp-xl);
  padding-top: var(--sp-lg);
  border-top: 1px dashed var(--color-primary);
}

.project-card-body .btn {
  display: block;
  width: fit-content;
  margin-left: 0;
}

.project-card-body .project-sub-title {
  margin-left: 0;
  width: 100%;
}

.project-sub-title {
  position: relative;
  background-color: var(--color-primary);
  color: var(--color-white);
  font-size: var(--fs-lg);
  font-weight: 900;
  padding: 10px var(--sp-lg) 10px var(--sp-sm);
  margin-bottom: var(--sp-md);
  text-align: left;
  clip-path: polygon(
    0% 0%,
    calc(100% - 20px) 0%,
    93% 50%,
    calc(100% - 20px) 100%,
    0% 100%
  );
}

.project-sub-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-lg);
  align-items: start;
}

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

.project-sub-body p:last-child {
  margin-bottom: 0;
}

.project-sub-img img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
  margin-bottom: var(--sp-sm);
}

.project-sub-img img:last-child {
  margin-bottom: 0;
}

/* ─────────────────────────────────────────────────────────
   .project-coming-soon-text — Coming soon
   ───────────────────────────────────────────────────────── */
.project-sub-body .project-coming-soon-text,
.project-card-body .project-coming-soon-text {
  color: var(--color-white);
}

.project-coming-soon-text {
  display: block;
  color: var(--color-white);
  font-size: var(--fs-sm);
  font-weight: 700;
  background-color: #aaaaaa;
  border-radius: 999px;
  padding: 6px var(--sp-lg);
  margin-top: calc(var(--sp-sm) * 0.5);
  border: none;
  text-align: right;
  width: fit-content;
  margin-left: auto;
}

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

  .project-section-illust {
    width: 80px;
  }

  #kyoiku .project-section-illust {
    top: 20px;
  }

  #club .project-section-illust {
    top: 20px;
  }

  #farm .project-section-illust {
    top: 20px;
  }

  #town .project-section-illust {
    top: 20px;
  }

  .project-card-inner,
  .project-sub-inner {
    grid-template-columns: 1fr;
  }

  .project-lead-banner {
    font-size: var(--fs-lg);
    padding: var(--sp-xs) var(--sp-md);
    clip-path: polygon(
      0% 0%,
      100% 0%,
      93% 50%,
      100% 100%,
      0% 100%,
      7% 50%
    );
    width: 100%;
  }

  .project-sub-title {
    clip-path: polygon(
      0% 0%,
      calc(100% - 10px) 0%,
      93% 50%,
      calc(100% - 10px) 100%,
      0% 100%
    );
  }
}

@media (max-width: 440px) {
  .project-section-illust {
    display: none;
  }
}
