/*================================================
  アニメーション（スクロール表示）
=================================================*/
[data-animate] {
  opacity: 0;
  transform: translateY(12px);
  will-change: opacity, transform;
  transition: opacity 0.6s ease, transform 0.6s ease;
}
[data-animate][data-in-view="true"] {
  opacity: 1;
  transform: none;
}

/* バリアント */
[data-animate="fade-in"] {
  transform: none;
}
[data-animate="fade-up"] {
  transform: translateY(14px);
}
[data-animate="fade-right"] {
  transform: translateX(-16px);
}
[data-animate="fade-left"] {
  transform: translateX(16px);
}
[data-animate="zoom-in"] {
  transform: scale(0.98);
}

/*================================================
  活動例の縦並びショーケース
=================================================*/
.showcase-list {
  display: block;
}
.showcase-list figure {
  margin: 0 0 1.25rem 0;
}
.showcase-list img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  border-radius: var(--radius);
}
.showcase-list figcaption {
  margin-top: 0.5rem;
  color: var(--color-secondary);
  font-size: 1.05rem;
  text-align: center;
}

/*================================================
  ヘッダーのスクロール追従（スティッキー）
=================================================*/
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  /* 半透明 + 背景ぼかしで馴染ませる */
  background-color: rgba(18,18,18,0.55);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

/*================================================
  ヒーローの可読性向上（左寄せ・幅制御）
=================================================*/
.hero > h1 {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

/*================================================
  問い合わせ（Contact）の“ポップ”を無効化
  - ボタンのホバー持ち上がり（transform）を無効
  - スクロールリビールはそのまま維持
=================================================*/
body[data-page="contact"] .btn:hover {
  transform: none;
}
.hero .hero-copy {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}
@media (min-width: 1024px) {
  .hero > h1,
  .hero .hero-copy { max-width: 860px; }
}

/* 活動例セクションの幅を少し狭く（見やすさ向上） */
body[data-page="about"] .section.alt .container {
  max-width: 800px;
}

/* テンプレート用テキストボックスのスタイル調整 */
.contact-actions textarea {
  background-color: var(--color-surface);
  color: var(--color-primary);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  line-height: 1.6;
  font-family: var(--font-base);
  box-shadow: inset 0 1px 0 rgba(0,0,0,0.2);
}
.contact-actions textarea:focus {
  outline: none;
  border-color: var(--color-accent-end);
  box-shadow: 0 0 0 3px rgba(0,198,255,0.15);
}

/* CONTACT: カードの強調を抑える（背景・ボーダー・トランジション） */
body[data-page="contact"] .card.info {
  background: var(--color-surface);
  border: 1px solid rgba(255,255,255,0.12);
}
body[data-page="contact"] .card {
  transition: none !important; /* ホバーによる“ポップ”は抑制 */
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}

/* Contactページの使いやすさ向上 */
body[data-page="contact"] .grid.two {
  align-items: stretch;
}
body[data-page="contact"] .grid.two .card {
  height: 100%;
}

/* ABOUT: 本文SNSカードは初期表示から非表示（JSで削除までのチラつき防止） */
body[data-page="about"] .page .card.info {
  display: none;
}
body[data-page="contact"] .contact-actions .btn {
  width: 100%;
}
body[data-page="contact"] h2 {
  letter-spacing: 0.02em;
}

/* アニメーションを好まないユーザー配慮 */
@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* Contactページ: ふわっと感を強める（遅め・移動量増し） */
body[data-page="contact"] [data-animate] {
  transition: opacity 0.9s ease, transform 0.9s ease;
}
body[data-page="contact"] [data-animate="fade-up"] {
  transform: translateY(20px);
}
