/* ===== セクション④ 創作紹介 ===== */
.top-creation {
  padding: 2em 0;
}

.top-creation-title {
  font-size: 1.4em;
  color: var(--color-main);
  border-bottom: 2px solid var(--color-sky);
  padding: 0.5em 0.8em 0.3em;
  margin-bottom: 1rem;
}

.top-creation-subtitle {
  font-size: 0.95em;
  color: var(--color-text);
  margin-bottom: 1.5em;
}

/* ===== グリッド ===== */
.top-creation-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
  max-width: 1160px;
}

/* ===== カード ===== */
.top-creation-card {
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  /* plan 1788422502785: 通常時のごく薄い影を18枚に統一（hover 0 4px 12pxより明確に弱く） */
  box-shadow: 0 1px 3px rgba(31,32,65,0.06);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

/* plan 1788441452706: 白カードhover統一トークンA（影＋浮きのみ・枠維持） */
@media (hover: hover) {
  .top-creation-card:hover {
    border-color: var(--color-border, #DCE6EE);
    box-shadow: 0 4px 16px rgba(31, 32, 65, 0.12);
    transform: translateY(-2px);
  }
  .top-creation-card:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(31, 32, 65, 0.10);
  }
}

.top-creation-card:focus-visible {
  outline: 2px solid var(--color-fuji-deep, #5F568E);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .top-creation-card {
    transition: none;
  }
  .top-creation-card:hover,
  .top-creation-card:active {
    transform: none;
    box-shadow: 0 1px 3px rgba(31, 32, 65, 0.06);
  }
}

@media print {
  .top-creation-card:hover,
  .top-creation-card:active {
    transform: none;
    box-shadow: none;
  }
}

/* ===== 画像プレースホルダー（16:9） ===== */
.top-creation-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: linear-gradient(
    135deg,
    var(--color-bg-light) 0%,
    var(--color-bg-fuji) 100%
  );
  flex-shrink: 0;
}

/* ===== テキスト ===== */
.top-creation-card-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
/* affordance (plan 1788165101395): L/Mカードは右下固定 */
.top-creation-card .top-card-aff{
  margin-top:auto;
  align-self:flex-end;
  padding-top:0.8em;
}
@media (min-width: 769px){
  .top-creation-card .top-card-aff{
    padding-top:1.1em;
  }
}

.top-creation-card-title {
  display: flex;
  align-items: center;
  gap: 0.4em;
  font-size: 1.05rem; /* 2026-08-30 plan 1788065556310: タイトルは1.05rem据え置き — 説明0.95との差1.6pxで許容 */
  font-weight: 700;
  color: var(--color-main);
  margin-top: 1rem;
  line-height: 1.4;
}

.top-creation-card-title i {
  font-size: 0.9em;
  color: var(--color-main);
  flex-shrink: 0;
}

.top-creation-card-desc {
  font-size: 0.95rem; /* plan 1788065556310: 段階縮小 Desktop0.95/Tablet0.9/Mobile0.875 — 共通style.cssと同値で冗長だが単体読み込みでも正しくするため併記 */
  line-height: 1.7;
  color: var(--color-text);
  margin-top: 0.5rem;
  flex: 1;
}



/* ===== リンク（カード下部揃え） ===== */
.top-creation-card-text .top-creation-card-desc + .top-creation-card-title,
.top-creation-card-text .top-creation-card-title ~ * {
  /* カード下部に配置する要素用 */
}

/* カード末尾にリンクがある場合の調整 */
.top-creation-card-text {
  padding-top: 0;
}

/* ===== レスポンシブ ===== */




/* ===== 創作と共創 画像額縁（私と世界観の小型版） ===== */
/* 対象: .top-creation-card-image--with-frame（3カード共通、70%縮小） */
.top-creation-card-image--with-frame {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--color-border, #DCE6EE);
  box-shadow: 0 1px 3px rgba(31,32,65,0.06), 0 6px 16px rgba(31,32,65,0.06), inset 0 0 0 1px rgba(255,255,255,0.90);
}
.top-creation-card-image--with-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 5px;
  background: rgba(255,255,255,0.5);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border-radius: 8px;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  pointer-events: none;
  z-index: 1;
}
.top-creation-card-image--with-frame::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px solid var(--color-fuji, #BBB7DA);
  border-radius: 4px;
  pointer-events: none;
  z-index: 2;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.65);
}
/* 画像本体: 親の16/9をカバー（透過PNGなら下のグラデが透ける） */
.top-creation-card-img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center center;
  border: none;
  border-radius: 0;
  position: relative;
  z-index: 0;
  background: transparent;
}
/* backdrop-filter非対応フォールバック */
@supports not ((backdrop-filter: blur(3px)) or (-webkit-backdrop-filter: blur(3px))) {
  .top-creation-card-image--with-frame::before {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
/* レスポンシブ: 480px以下でさらに縮小 */

/* ===== ゲーム制作カード専用: ヒーロー背景（20%透明） ===== */
/* hero source: section-hero.css .top-hero-placeholder — linear-gradient(135deg, #8ED1E0 0%, #BBB7DA 50%, #F3FAFD 100%) の alpha 0.8 版 */
/* 背景グラデ層のみ透明化（額縁 ::before/::after と前景 GameCreate.png は不透明維持） */
.top-creation-card-image--hero-bg {
  background: linear-gradient(135deg, rgba(142,209,224,0.8) 0%, rgba(187,183,218,0.8) 50%, rgba(243,250,253,0.8) 100%);
}

/* 印刷: 私と世界観と同等のフォールバック（mask/backdropが全面ベール化する不具合回避） */
@media print {
  .top-creation-card-image--with-frame {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .top-creation-card-image--with-frame::before {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: transparent !important;
    mask: none !important;
    -webkit-mask: none !important;
    mask-composite: unset !important;
    -webkit-mask-composite: unset !important;
    padding: 0 !important;
    border: 5px solid rgba(255,255,255,0.5) !important;
    border-radius: 8px !important;
  }
  .top-creation-card-image--with-frame::after {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}