/* ============================================================
   下層ページ(プログラム/出店)用スタイル
   ※ style.css と同内容のミラー。style.css がサーバーのマルウェア
   スキャン誤検知でFTPアップ不可のため、下層ページが単体でも
   崩れないよう新規ファイルとして切り出したもの。
   style.css 側を編集したらこのファイルも同期すること。
   ============================================================ */

.btn:hover .arrow--back {
  transform: translateX(-4px);
}

/* ---- Hero feature (メインイベント) ---- */
.feature-card {
  display: flex;
  gap: 48px;
  align-items: flex-start;
  background: #fff;
  border-radius: 32px;
  padding: 40px;
  margin-top: 48px;
  box-shadow: 0 12px 16px rgba(0, 0, 0, 0.05);
}

.feature-card--reverse {
  flex-direction: row-reverse;
}

.feature-img {
  position: relative;
  flex: 0 0 50%;
  max-width: 560px;
  aspect-ratio: 4 / 3;
  border-radius: 24px;
  overflow: hidden;
}

.feature-img img:not(.card-img-logo) {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-top: 8px;
}

.feature-title {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 900;
  font-size: 40px;
  line-height: 1.25;
  color: #271a49;
  margin: 0;
}

.feature-desc {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.8;
  color: #475569;
  margin: 0;
}

.feature-foot {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: auto;
}

/* ---- 共通カードパーツ ---- */
.card-img--none {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eaf1fb 0%, #dbe7f8 100%);
}

.card-img-logo {
  width: 42%;
  height: 40%;
  max-width: 220px;
  object-fit: contain;
  opacity: 0.18;
}

.card-img-note {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 3px 10px;
  background: rgba(39, 26, 73, 0.65);
  border-radius: 999px;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 500;
  font-size: 11px;
  color: #fff;
}

.card-meta {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  padding-top: 8px;
}

.card-meta-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

.card-meta-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
  color: #1365c1;
}

.card-meta-label img {
  flex-shrink: 0;
}

.card-meta-value {
  font-weight: 400;
  color: #64748b;
}

.card-note {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 500;
  font-size: 12px;
  line-height: 1.7;
  color: #97a2bd;
  margin: 0;
}

.btn-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  padding: 14px 32px;
  border-radius: 12px;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.btn-card:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.btn-card--blue {
  background: #1365c1;
  color: #fff;
}

.btn-card--yellow {
  background: #fdc206;
  color: #271a49;
}

/* ---- プログラムカード ---- */
.pcard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
  margin-top: 48px;
}

.pcard {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  /* opacityはfade-up(スクロール表示)用に残す */
  transition: transform 0.35s ease, box-shadow 0.35s ease,
              opacity 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.pcard:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 32px rgba(19, 101, 193, 0.1);
}

.pcard-img {
  position: relative;
  height: 240px;
  flex-shrink: 0;
}

.pcard-img--sm {
  height: 180px;
}

.pcard-img--vendor {
  height: 200px;
}

.pcard-img img:not(.card-img-logo) {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.pcard:hover .pcard-img img:not(.card-img-logo) {
  transform: scale(1.04);
}

.pcard-img.card-img--none img.card-img-logo {
  width: 36%;
  height: auto;
}

.pcard-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
  padding: 24px;
}

.pcard-title {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 900;
  font-size: 24px;
  line-height: 1.45;
  color: #271a49;
  margin: 0;
}

.pcard-title--sm {
  font-size: 20px;
}

.card-title-sub {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
}

.title-badge {
  display: inline-block;
  vertical-align: 3px;
  margin-left: 10px;
  padding: 3px 10px;
  background: #eef2ff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #1365c1;
  white-space: nowrap;
}

.pcard-desc {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 500;
  font-size: 14px;
  line-height: 1.8;
  color: #64748b;
  margin: 0;
}

.pcard .card-meta {
  margin-top: auto;
}

.pcard .btn-card {
  margin-top: 4px;
}

.program-sub-heading {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 700;
  font-size: 32px;
  color: #271a49;
  margin: 64px 0 0;
}

.program-sub-heading + .pcard-grid {
  margin-top: 32px;
}

.section-more {
  display: flex;
  justify-content: flex-end;
  margin-top: 40px;
}

/* ---- 出店（Marche）ボックス ---- */
.marche-box {
  background: #fff;
  border-radius: 32px;
  padding: 60px;
  margin-top: 80px;
  scroll-margin-top: 90px;
}

.section-title-en--yellow {
  color: rgba(253, 194, 6, 0.12);
}

.marche-lead {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 700;
  font-size: 20px;
  line-height: 1.6;
  color: #475569;
  margin: 0;
}

.marche-box .pcard {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.05);
}

/* 出店系はプレースホルダ・バッジ・透かしを薄黄トーンに */
.pcard--vendor .card-img--none {
  background: linear-gradient(135deg, #fdf7e1 0%, #faedc4 100%);
}

.sub-main--marche .detail-badge {
  background: #fdf3d0;
  color: #271a49;
}

.sub-main--marche .sub-hero-watermark--detail {
  color: rgba(253, 194, 6, 0.12);
}

.vendor-badge {
  align-self: flex-start;
  padding: 6px 12px;
  background: #fdc206;
  border-radius: 999px;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 700;
  font-size: 13px;
  color: #271a49;
}

.vendor-org {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #475569;
  margin: 0;
}

.vendor-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 8px;
  margin-top: auto;
}

.vendor-meta-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
  color: #475569;
  margin: 0;
}

.vendor-meta-row img {
  flex-shrink: 0;
  margin-top: 2px;
}

/* ---- 下層: 一覧 / 詳細 ---- */
/* ページを開いた時に上から順にふわっと表示する */
@keyframes pageFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.article-page main > * {
  animation: pageFadeUp 0.7s cubic-bezier(0.23, 1, 0.32, 1) both;
}

.article-page main > *:nth-child(2) {
  animation-delay: 0.08s;
}

.article-page main > *:nth-child(3) {
  animation-delay: 0.16s;
}

.article-page main > *:nth-child(n+4) {
  animation-delay: 0.24s;
}

.detail-article > * {
  animation: pageFadeUp 0.7s cubic-bezier(0.23, 1, 0.32, 1) both;
}

.detail-article > *:nth-child(1) { animation-delay: 0.08s; }
.detail-article > *:nth-child(2) { animation-delay: 0.18s; }
.detail-article > *:nth-child(3) { animation-delay: 0.28s; }
.detail-article > *:nth-child(n+4) { animation-delay: 0.38s; }

@media (prefers-reduced-motion: reduce) {
  .article-page main > *,
  .detail-article > * {
    animation: none;
  }
}

.sub-main {
  position: relative;
  max-width: 1120px;
  margin: 0 auto;
  padding: 150px 20px 120px;
  overflow: visible;
}

.sub-hero {
  position: relative;
  text-align: center;
  padding: 40px 0 16px;
}

.sub-hero-watermark {
  position: absolute;
  left: 50%;
  top: -30px;
  transform: translateX(-50%);
  font-family: 'Teachers', sans-serif;
  font-weight: 700;
  font-size: 150px;
  line-height: 1;
  color: rgba(19, 101, 193, 0.06);
  pointer-events: none;
  white-space: nowrap;
}

.sub-hero-watermark--yellow {
  color: rgba(253, 194, 6, 0.1);
}

.sub-hero-title {
  position: relative;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 900;
  font-size: 44px;
  color: #271a49;
  margin: 0 0 16px;
}

.sub-hero-lead {
  position: relative;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 1.8;
  color: #475569;
  margin: 0;
}

.sub-grid {
  margin-top: 56px;
}

.sub-back {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 64px;
}

.sub-back--row {
  margin-top: 48px;
}

.sub-main--detail {
  max-width: 776px;
}

.sub-hero-watermark--detail {
  left: auto;
  right: -160px;
  transform: none;
  top: 110px;
  font-size: 116px;
}

.detail-article {
  position: relative;
}

.detail-header {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e2e8f0;
}

.detail-title {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 900;
  font-size: 36px;
  line-height: 1.3;
  color: #271a49;
  margin: 0;
}

.detail-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: #475569;
  margin: 0;
}

.detail-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: #eef2ff;
  border-radius: 50px;
  font-weight: 700;
  font-size: 13px;
  color: #1365c1;
  white-space: nowrap;
}

.detail-img {
  position: relative;
  margin: 32px 0;
  border-radius: 16px;
  overflow: hidden;
}

.detail-img img {
  width: 100%;
  display: block;
}

.detail-body {
  font-family: 'Zen Kaku Gothic New', sans-serif;
  font-weight: 500;
  font-size: 17px;
  line-height: 2;
  color: #404759;
}

.detail-body p {
  margin: 0 0 24px;
}

.detail-note {
  font-size: 14px;
  color: #97a2bd;
}

.detail-cta {
  padding-top: 8px;
}

.title-badge {
  display: inline-block;
  vertical-align: 3px;
  margin-left: 10px;
  padding: 3px 10px;
  background: #eef2ff;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #1365c1;
  white-space: nowrap;
}

@media (max-width: 1024px) {
  .pcard-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-title {
    font-size: 32px;
  }

  .marche-box {
    padding: 40px;
  }
}

@media (max-width: 900px) {
  /* メイン3件はスマホでは白コンテナを外してサブカードと差別化する */
  .feature-card,
  .feature-card--reverse {
    flex-direction: column;
    gap: 20px;
    padding: 0;
    margin-top: 40px;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
  }

  .feature-img {
    flex: none;
    width: 100%;
    max-width: none;
    aspect-ratio: 16 / 10;
    border-radius: 16px;
  }

  .feature-content {
    padding-top: 0;
    gap: 14px;
  }

  .feature-title {
    font-size: 26px;
  }

  .feature-desc {
    font-size: 15px;
  }

  .feature-foot {
    gap: 12px 24px;
  }

  .pcard-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
  }

  .pcard-img {
    height: 180px;
  }

  .pcard-img--sm,
  .pcard-img--vendor {
    height: 168px;
  }

  .pcard-body {
    padding: 18px 20px 22px;
    gap: 10px;
  }

  .pcard-title {
    font-size: 20px;
  }

  .card-meta {
    padding-top: 0;
    gap: 8px 24px;
  }

  .program-sub-heading {
    font-size: 24px;
    margin-top: 48px;
  }

  .section-more {
    justify-content: center;
    margin-top: 28px;
  }

  .marche-box {
    padding: 32px 20px;
    margin-top: 56px;
    border-radius: 20px;
  }

  .marche-lead {
    font-size: 15px;
  }

  .sub-main {
    padding: 110px 20px 72px;
  }

  .sub-hero-watermark {
    font-size: 72px;
    top: 0;
  }

  .sub-hero-title {
    font-size: 30px;
  }

  .sub-hero-lead {
    font-size: 14px;
  }

  .sub-grid {
    margin-top: 36px;
  }

  .sub-hero-watermark--detail {
    display: none;
  }

  .detail-title {
    font-size: 25px;
  }

  .detail-body {
    font-size: 15px;
  }

  .sub-back {
    flex-wrap: wrap;
    margin-top: 44px;
  }
}
