:root {
  --color-red: #c8102e;
  --color-red-dark: #9c0c24;
  --color-red-soft: #fdecee;
  --color-charcoal: #1e1e21;
  --color-gray-800: #333336;
  --color-gray-600: #6b6b6f;
  --color-gray-400: #a3a3a7;
  --color-gray-200: #e4e4e7;
  --color-gray-100: #f4f4f5;
  --color-off-white: #fafafa;
}

html {
  scroll-behavior: smooth;
}

/* ページ内リンクの着地位置が固定ヘッダーに隠れないよう余白を確保 */
[id] {
  scroll-margin-top: 6rem;
}

/* スクリーンリーダー専用(視覚的に隠す)。フォーカス時のみ表示するスキップリンク用 */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* 本文へスキップリンク: 通常は画面外、キーボードフォーカス時のみ左上に表示 */
.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--color-red);
  color: #fff;
  font-weight: 700;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}
.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* 動きに敏感な利用者向け: 装飾アニメーションと自動スクロールを抑制する
   (個別の @media は各所にもあるが、ここで漏れ(flagShine/heroLineIn 等)を一括で止める) */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-flag-shine::after,
  .hero-line,
  .hero-intro,
  .hero-intro-line,
  .hero-lines,
  .logo-badge img {
    animation: none !important;
  }
  .hero-line,
  .hero-lines {
    opacity: 1 !important;
    transform: none !important;
  }
  .hero-intro {
    display: none !important;
  }
  .reveal,
  .gallery-item {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

body {
  font-family: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;
  color: var(--color-charcoal);
  background-color: white;
}

.font-display {
  font-family: "Noto Sans JP", "Hiragino Sans", sans-serif;
  letter-spacing: 0.02em;
}

/* ヘッダー: 常時白背景、スクロールで影を強調
   (backdrop-filterはモバイルSafariでスクロール中に白フラッシュを起こすことが
   あるため使わず、代わりにほぼ不透明な単色背景にする) */
#site-header {
  background-color: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease;
}
#site-header.scrolled {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
}

/* ロゴバッジ: 通常カラーのエンブレム + 2行文字。
   1行目は文字数が少ない分フォントを小さくし、字間(letter-spacing)を
   広げることで2行目とちょうど同じ見た目の幅になるよう実測して調整済み */
.logo-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.logo-badge-img {
  position: relative;
  display: block;
  width: 96px;
  height: 44px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
}
.logo-badge-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}
.logo-badge:hover .logo-badge-img img {
  opacity: 0.82;
}
.logo-badge-text {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
  line-height: 1.3;
}
.logo-badge-line1 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 7.3px;
  color: #6b7280;
}
.logo-badge-line2 {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.45px;
  color: var(--color-charcoal);
}

/* 言語切替(ヘッダー右上)。画面幅によらず常に表示するため、
   ナビや寄付ボタンより小さく控えめな見た目にしている。 */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.lang-current {
  color: var(--color-charcoal);
}
.lang-sep {
  color: var(--color-gray-200, #e5e7eb);
}
.lang-alt {
  color: #6b7280;
  transition: color 0.2s ease;
}
.lang-alt:hover,
.lang-alt:focus-visible {
  color: var(--color-red);
  text-decoration: underline;
}

/* モバイルメニュー(表示切替は hidden クラスで行う) */

/* ヒーロー背景の日の出風グラデーション */
.hero-rays {
  background:
    radial-gradient(ellipse at 50% 120%, rgba(200, 16, 46, 0.16) 0%, rgba(200, 16, 46, 0) 60%),
    linear-gradient(180deg, #1a1a1c 0%, #262629 100%);
}

.rays-svg-mask {
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 75%);
}

/* カード共通のホバー */
.lift-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.lift-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}

/* タイムライン */
.timeline-line {
  background: linear-gradient(180deg, var(--color-red) 0%, var(--color-gray-200) 100%);
}
.timeline-dot {
  box-shadow: 0 0 0 4px var(--color-off-white);
}

/* フェードインアニメーション（JSでin-viewクラス付与） */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* セクション見出しの赤いアンダーライン */
.heading-underline::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 4px;
  background-color: var(--color-red);
  margin-top: 0.9rem;
  border-radius: 2px;
}
.heading-underline.center::after {
  margin-left: auto;
  margin-right: auto;
}

/* ボタン: ホバー時に色が左から右へ滑らかに満ちていく共通エフェクト。
   pill型・角丸ボタン(rounded-full / rounded-lg 等)や a[class*="border"]の
   ボタン風リンクに幅広く適用されるよう、属性セレクタで一括して対象化する。 */
.btn-primary:not(.jiggle-group),
.btn-outline,
a[class*="rounded-full"]:not(.jiggle-group),
button[type="submit"] {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: color 0.4s cubic-bezier(0.65, 0, 0.35, 1), border-color 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}
.btn-primary:not(.jiggle-group)::before,
.btn-outline::before,
a[class*="rounded-full"]:not(.jiggle-group)::before,
button[type="submit"]::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--sweep-color, rgba(0, 0, 0, 0.12));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}
.btn-primary:not(.jiggle-group):hover::before,
.btn-outline:hover::before,
a[class*="rounded-full"]:not(.jiggle-group):hover::before,
button[type="submit"]:hover::before {
  transform: scaleX(1);
}

.btn-primary {
  background-color: var(--color-red);
  color: #fff;
  --sweep-color: var(--color-red-dark);
}
.btn-outline {
  border: 1.5px solid var(--color-gray-400);
  color: var(--color-charcoal);
  --sweep-color: var(--color-red-soft);
}
.btn-outline:hover {
  border-color: var(--color-red);
}

/* フォーム */
.form-input {
  border: 1.5px solid var(--color-gray-200);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-input:focus {
  outline: none;
  border-color: var(--color-red);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.12);
}

/* ========== About ページ アニメーション ========== */
.about-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  animation: heroZoomFade 1.2s ease-out forwards;
}

@keyframes heroZoomFade {
  from {
    opacity: 0;
    transform: scale(1.05);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ギャラリーアイテム */
.gallery-item {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.gallery-item.in-view {
  opacity: 1;
  transform: translateY(0);
}

.gallery-image {
  transition: transform 0.3s ease-out;
}

.gallery-item:hover .gallery-image {
  transform: scale(1.08);
}

/* ========== 画像アスペクト比設定 ========== */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.news-image {
  aspect-ratio: 16 / 9;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.activity-image {
  aspect-ratio: 4 / 3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* モバイルフレンドリーなグリッド */
@media (max-width: 640px) {
  .grid {
    gap: 1rem;
  }

  .sm\:grid-cols-2 {
    grid-template-columns: 1fr;
  }

  .sm\:p-6 {
    padding: 1.25rem;
  }
}

/* ========== フルスクリーン Hero セクション ========== */
.hero-fullscreen {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -64px;
  padding-top: 64px;
  /* 写真の読み込み・再描画が間に合わない一瞬でも白く見えないよう、
     背景を白ではなく濃紺(サイトのブランドカラー)にしておく */
  background-color: var(--color-charcoal);
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-charcoal);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
  /* 独立した合成レイヤーとして安定させ、スクロール中の再描画による
     ちらつき(白フラッシュ)を防ぐ */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  will-change: transform;
}

.hero-bg::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
  z-index: 2;
}

.hero-track {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  display: flex;
  width: max-content;
  animation: heroMarquee linear infinite;
  will-change: transform;
}

.hero-cell {
  flex: 0 0 auto;
  height: 100%;
  /* 巨大な1枚レイヤーになるとiOSでテクスチャ上限を超えて描画が乱れるため、
     写真1枚ごとに独立した合成レイヤーに分割する */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.hero-cell img {
  width: auto;
  height: 100%;
  display: block;
}

@keyframes heroMarquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-track {
    animation: none;
  }
}

/* 画面外にスクロールしている間は合成負荷を下げるため一時停止する
   (js/hero-slider.js が IntersectionObserver で付け外しする) */
.hero-track.is-paused {
  animation-play-state: paused;
}

.hero-content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 90%;
  display: grid;
  justify-items: center;
}

/* .hero-intro と .hero-lines を同じマス目に重ねて表示する
   (導入の3行が消えるのと入れ替わりに、常設の3行がふわっと重なって現れる) */
.hero-content > .hero-intro,
.hero-content > .hero-lines {
  grid-area: 1 / 1;
}

.hero-logo {
  max-width: 200px;
  height: auto;
  width: 100%;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  animation: fadeInLogo 0.8s ease-out forwards;
}

@keyframes fadeInLogo {
  from {
    opacity: 0;
    transform: scale(0.9) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ===== メインビジュアルの導入演出 =====
   ①まず節目メッセージ3行(.hero-intro)が1行ずつふわっと浮かび上がる
   ②少し間を置いて、常設の3行タイトル(.hero-lines)がふわっと重なって現れ、今の見た目に落ち着く
   (文字送り演出ではなく行単位の不透明度変化のみに留め、読みやすさを優先している) */
.hero-intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-family: "Noto Sans JP", "Hiragino Sans", sans-serif;
  opacity: 1;
  animation: heroIntroFadeOut 1.6s ease-in-out forwards;
  animation-delay: 9.1s;
}

/* 1行ずつ2秒おきに、左からふわっと(クリップで)現れ、3行揃ってから4秒表示して消える。
   あわせて、上品にきらめくよう(スワロフスキーのような光)、
   ①白〜淡いゴールドの光暈がゆっくり呼吸するように明滅する(heroIntroGlow)
   ②文字の上を一度だけ光の筋がすっと通り抜ける(heroIntroShine, ::afterで実装)*/
.hero-intro-line {
  position: relative;
  display: block;
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  animation: heroIntroWipeIn 0.8s ease-out forwards, heroIntroGlow 2.6s ease-in-out infinite;
  color: white;
  font-size: clamp(1.5rem, 7.2vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  white-space: normal;
  max-width: 90vw;
}

.hero-intro-line:nth-child(1) { animation-delay: 0.3s, 0.3s; }
.hero-intro-line:nth-child(2) { animation-delay: 2.3s, 2.3s; }
.hero-intro-line:nth-child(3) { animation-delay: 4.3s, 4.3s; }

@keyframes heroIntroWipeIn {
  0% {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
  }
  40% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}

@keyframes heroIntroGlow {
  0%, 100% {
    text-shadow: 0 0 6px rgba(255, 255, 255, 0.35), 0 0 14px rgba(255, 224, 138, 0.22);
  }
  50% {
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.6), 0 0 22px rgba(255, 224, 138, 0.4);
  }
}

.hero-intro-line::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(
    100deg,
    transparent 0%, transparent 40%,
    rgba(255, 255, 255, 0.95) 47%,
    #fff6d8 50%,
    rgba(255, 255, 255, 0.95) 53%,
    transparent 60%, transparent 100%
  );
  background-size: 300% 100%;
  background-repeat: no-repeat;
  background-position: 200% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  animation: heroIntroShine 1.4s ease-in-out forwards;
}

.hero-intro-line:nth-child(1)::after { animation-delay: 1.1s; }
.hero-intro-line:nth-child(2)::after { animation-delay: 3.1s; }
.hero-intro-line:nth-child(3)::after { animation-delay: 5.1s; }

@keyframes heroIntroShine {
  0% { opacity: 0; background-position: 200% 0; }
  15%, 80% { opacity: 1; }
  100% { opacity: 0; background-position: -120% 0; }
}

@keyframes heroIntroFadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

/* 常設の3行タイトル。導入(.hero-intro)がふわっと消えるのと同時に、
   3行とも一斉に(順送りではなく)ゆっくりふわっと重なって現れて最終形になる。
   以降は3行とも常に表示したままにし、クロスフェードでの入れ替えは行わない(視認性重視) */
.hero-lines {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  font-family: "Noto Sans JP", "Hiragino Sans", sans-serif;
  text-align: center;
  opacity: 0;
  animation: heroFinalFadeIn 2.6s ease-out forwards;
  animation-delay: 9.1s;
}

@keyframes heroFinalFadeIn {
  to {
    opacity: 1;
  }
}

/* 導入3行(.hero-intro-line)と同じ、上品にゆっくり呼吸するような光暈を
   3行とも共通で纏わせる(heroIntroGlowを流用) */
.hero-line {
  display: block;
  color: white;
  animation: heroIntroGlow 2.8s ease-in-out infinite;
  animation-delay: 9.1s;
  /* スマホ・iPadでも各行を必ず1行で表示する。画面幅に応じて
     文字サイズを縮小し、折り返さないようにする */
  white-space: nowrap;
}

/* clamp(最小, 画面幅連動, 最大)。長い行(サブ)ほど vw 係数を小さくして、
   狭い画面でもそれぞれの行がはみ出さずに1行で収まるようにしている */
.hero-line-sub {
  font-size: clamp(0.7rem, 3.6vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.hero-line-main {
  font-size: clamp(1.5rem, 7.6vw, 4.5rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1.15;
}

/* 自動翻訳などで字数が増え、1行に収まらなくなった行にだけ折り返しを許可する
   (付与するかどうかは translate-guard.js が実測して決めるため、
   日本語表示のままなら発動せず従来の見た目は変わらない) */
.hero-line.is-wrapped {
  white-space: normal;
  max-width: 90vw;
  line-height: 1.3;
}

/* フライキプロジェクトの文字は常に白文字のまま(常駐)にし、
   その上に同じ文字を重ねたレイヤー(::after)だけをキラッと光らせて
   5秒に1回、左から右へ走らせる。ベースの白文字は一切変化しないため、
   background-clip:text が効かない環境でも見た目が壊れない */
.hero-flag-shine {
  position: relative;
  color: white;
}

.hero-flag-shine::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: linear-gradient(
    100deg,
    transparent 0%, transparent 42%,
    rgba(255, 255, 255, 0.95) 47%,
    #ffe28a 50%,
    rgba(255, 255, 255, 0.95) 53%,
    transparent 58%, transparent 100%
  );
  background-size: 300% 100%;
  background-repeat: no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: flagShine 5s ease-in-out infinite;
  animation-delay: 11.7s;
}

@keyframes heroLineIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes flagShine {
  0%, 20% {
    background-position: 200% 0;
  }
  35%, 100% {
    background-position: -100% 0;
  }
}

@media (max-width: 768px) {
  .hero-fullscreen {
    margin-top: -64px;
    padding-top: 64px;
  }
}

/* モバイルメニューボタン: タップ遅延・ダブルタップ拡大を防止 */
#menu-button {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  cursor: pointer;
  transform-origin: center;
}

/* タップ時にスライム風にプルンと震える */
#menu-button.jiggling {
  animation: slimeTap 0.55s ease-in-out;
}

@keyframes slimeTap {
  0%   { transform: scale(1, 1); }
  15%  { transform: scale(1.25, 0.75); }
  30%  { transform: scale(0.85, 1.15); }
  45%  { transform: scale(1.12, 0.9); }
  60%  { transform: scale(0.95, 1.05); }
  75%  { transform: scale(1.04, 0.98); }
  100% { transform: scale(1, 1); }
}

/* スマホ: ヘッダーバーを消してメインビジュアルを最上部から表示。
   三本線ボタンだけを白抜きで右上に浮かせる */
@media (max-width: 767px) {
  #site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    border-bottom: none;
    box-shadow: none !important;
    pointer-events: none;
  }

  #site-header a.group {
    display: none; /* ロゴスペースを非表示 */
  }

  #menu-button {
    /* ロゴ・ナビが非表示になると同じ行に残るのはこのボタンだけになり、
       flexの space-between/evenly は単独の要素を左端に置いてしまう。
       開いた時のメニューパネル(右上)と位置を合わせるため、
       レイアウトに依存せず右上に固定表示する */
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 61;
    pointer-events: auto;
    color: #fff;
    /* backdrop-filterはスクロール中に白フラッシュを起こすことがあるため
       使わず、少し濃いめの単色背景で同等の視認性を確保する */
    background: rgba(0, 0, 0, 0.5);
    border-radius: 9999px;
  }

  .hero-fullscreen {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  /* 下層ページのタイトルが浮いているメニューボタンと重ならないよう余白を取る */
  main > section:first-child:not(.hero-fullscreen):not(.about-hero) {
    padding-top: 6.5rem;
  }
}

/* メニューパネル(赤グラデーション)。表示するかどうかは画面幅ではなく
   header-fit.js が実際に収まるかで判定するため、ここでは幅の条件を付けない */
#mobile-menu {
  /* ヘッダー内での表示切替はiOSで再描画されないことがあるため、
     独立した固定レイヤーとして表示する(menu.jsでbody直下へ移動)。
     幅は全画面ではなく、メニュー文字の横幅に合わせて縦長に表示する */
  position: fixed;
  top: 72px;
  right: 12px;
  left: auto;
  width: max-content;
  max-width: calc(100% - 24px);
  z-index: 60;
  pointer-events: auto;
  background: linear-gradient(135deg, #c8102e, #9c0c24);
  border: none;
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
}

#mobile-menu a {
  white-space: nowrap;
}

/* 横向きスマホなど高さの低い画面向けの調整。幅は広いが高さが低いので、
   幅連動(vw)ではなく高さ連動(vh)で文字を抑えて3行が収まるようにする */
@media (max-height: 500px) {
  .hero-line-main {
    font-size: clamp(1.4rem, 7vh, 3.5rem);
  }

  .hero-line-sub {
    font-size: clamp(0.7rem, 3.4vh, 1.3rem);
  }

  .hero-lines {
    gap: 0.4rem;
  }
}

/* SNS・寄付カード内のCTA: 横長楕円+光沢ハイライトでリキッドグラス風に見せる */
.cta-pill {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.8rem 1.85rem;
  border-radius: 999px;
  font-weight: 900;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.cta-pill::after {
  content: "";
  position: absolute;
  top: 10%;
  left: 8%;
  width: 50%;
  height: 45%;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

/* マスコット一体型の寄付ボタン(5秒に1回、スライム風プルプル) */
.jiggle-group {
  animation: slimeJiggle 10s ease-in-out infinite;
  transform-origin: center bottom;
  height: 2.75rem; /* ボタン本体は44px固定 */
}

.jiggle-group img {
  height: 3.5rem; /* マスコットはボタンより一回り大きく、上下にはみ出す */
  width: auto;
  margin: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}

@keyframes slimeJiggle {
  0%    { transform: scale(1, 1); }
  1.5%  { transform: scale(1.12, 0.86); }
  3%    { transform: scale(0.92, 1.08); }
  4.5%  { transform: scale(1.06, 0.94); }
  6%    { transform: scale(0.98, 1.03); }
  7.5%  { transform: scale(1.02, 0.99); }
  9%    { transform: scale(1, 1); }
  100%  { transform: scale(1, 1); }
}

@media (prefers-reduced-motion: reduce) {
  .jiggle-group {
    animation: none;
  }
}

/* フォーム: 入力エラー時に赤く表示 */
.input-error {
  border-color: #dc2626 !important;
  background-color: #fef2f2 !important;
}

.input-error:focus {
  border-color: #dc2626 !important;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.15) !important;
}

/* ハニーポット欄は画面外に隠す(display:noneはボットに検知されやすいため) */
.hp-field {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

::selection {
  background-color: var(--color-red);
  color: #fff;
}
