/* Crowdfund / Fund Transactions - Common Styles */
.crowdfund-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 3rem 0;
  margin: -2rem -2rem 2rem -2rem;
  border-radius: 0 0 20px 20px;
  box-shadow: 0 10px 40px rgba(102, 126, 234, 0.3);
}

.crowdfund-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

.fund-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.fund-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.95rem;
  opacity: 0.95;
}

.fund-meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.card-white {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  margin-bottom: 2rem;
}

.support-button {
  width: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 1.2rem 2rem;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
  text-decoration: none;
  display: block;
  text-align: center;
}

.support-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
  color: white;
}

.notice-banner {
  background: linear-gradient(135deg, #84fab0 0%, #8fd3f4 100%);
  color: #155724;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  margin-bottom: 1.5rem;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(132, 250, 176, 0.3);
}

.transaction-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.transaction-item {
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 10px rgba(0,0,0,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.transaction-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.transaction-info {
  flex: 1;
}

.transaction-user {
  font-weight: 700;
  color: #333;
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}

.transaction-memo {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.transaction-date {
  color: #999;
  font-size: 0.85rem;
}

.transaction-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: #667eea;
}

/* Fund Show Page Specific Styles */
.main-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}

.fund-image-wrapper {
  width: 100%;
  height: 400px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  margin-bottom: 2rem;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.fund-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fund-placeholder {
  font-size: 4rem;
  color: rgba(0,0,0,0.2);
}

.progress-card {
  background: white;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  position: sticky;
  top: 20px;
}

.progress-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: #667eea;
  margin-bottom: 0.5rem;
}

.progress-label {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.progress-bar-wrapper {
  background: #f0f0f0;
  border-radius: 20px;
  height: 20px;
  overflow: hidden;
  margin-bottom: 1rem;
  position: relative;
}

.progress-bar-fill {
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
  height: 100%;
  border-radius: 20px;
  transition: width 0.6s ease;
  box-shadow: 0 2px 10px rgba(102, 126, 234, 0.4);
}

.progress-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 2rem;
}

.progress-stat {
  text-align: center;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 12px;
}

.progress-stat:hover {
  background: #e9ecef;
}

.progress-stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  display: block;
}

.progress-stat-label {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.25rem;
}

.description-card {
  background: white;
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.description-card h2 {
  color: #333;
  font-size: 1.8rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.description-card h2:first-child {
  margin-top: 0;
}

.description-card h3 {
  color: #667eea;
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.description-card p {
  color: #555;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

.description-card ul {
  color: #555;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.description-card li {
  margin-bottom: 0.5rem;
  font-size: 1.05rem;
}

.description-card strong {
  color: #764ba2;
  font-weight: 700;
}

.admin-actions {
  margin-top: 3rem;
  padding: 1.5rem;
  background: #e0e0e0;
  border-radius: 12px;
}

.admin-actions-title {
  font-weight: 700;
  color: #333;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.payment-notice-card {
  max-width: 600px;
  margin: 2rem auto 0;
  background: #fff9e6;
  border: 1px solid #ffc107;
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.payment-notice-card h3 {
  margin: 0 0 1rem 0;
  color: #ff9800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.payment-notice-content {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .crowdfund-hero {
    padding: 2rem 0;
    margin: -1rem -1rem 1.5rem -1rem;
  }
  
  /* スマホでの左右余白を縮小 */
  .crowdfund-container {
    padding: 0 1rem;
  }
  
  .fund-title {
    font-size: 1.8rem;
  }
  
  .transaction-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
  
  .transaction-amount {
    align-self: flex-end;
  }
  
  /* Fund Show Page - スマホ向けスタイル */
  .main-content {
    grid-template-columns: 1fr;
  }
  
  .progress-card {
    position: static;
  }
  
  /* スマホで画像を横幅いっぱいに表示 */
  .fund-image-wrapper {
    margin-left: -2rem;
    margin-right: -2rem;
    border-radius: 0;
    box-shadow: none;
    width: calc(100% + 4rem);
  }
  
  /* descriptionの影付き枠を非表示 */
  .description-card {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: 1rem 0;
  }
  
  /* card-whiteの枠を非表示（fund_transactions/new等） */
  .card-white {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    padding: 1rem 0;
  }
  
  /* payment-notice-cardの枠を非表示、背景色のみ残す */
  .payment-notice-card {
    border: none;
    box-shadow: none;
    border-radius: 0;
    padding: 1rem 0;
    margin-left: 0;
    margin-right: 0;
  }
}