/* ========================================
   寄付金ページ共通スタイル
   iframe埋め込み用 (幅700px, 縦スクロール)
   ======================================== */

/* CSS Variables */
:root {
  --primary-color: #2E7D32;
  --primary-light: #4CAF50;
  --primary-dark: #1B5E20;
  --accent-color: #FF6F00;
  --accent-light: #FFA726;
  --bg-gradient-start: #E8F5E9;
  --bg-gradient-end: #C8E6C9;
  --card-bg: #FFFFFF;
  --text-primary: #263238;
  --text-secondary: #546E7A;
  --text-light: #78909C;
  --border-color: #E0E0E0;
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.16);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  font-family: 'Noto Sans JP', 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  background: linear-gradient(135deg, var(--bg-gradient-start) 0%, var(--bg-gradient-end) 100%);
  color: var(--text-primary);
  line-height: 1.7;
  min-height: 100vh;
  width: 700px;
  max-width: 100%;
  overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.4;
}

/* ========================================
   概要ページ (スライド風)
   ======================================== */

.slide-container {
  padding: 24px;
}

/* タイトルセクション */
.slide-section {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.slide-title {
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary-dark);
  line-height: 1.4;
  margin-bottom: 16px;
}

.title-icon {
  display: block;
  font-size: 2.5rem;
  margin-bottom: 8px;
}

.slide-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

.highlight-large {
  color: var(--accent-color);
  font-weight: 700;
  font-size: 1.2rem;
}

/* フロー図セクション */
.flow-section {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-md);
}

.flow-title {
  font-size: 1.3rem;
  color: var(--primary-dark);
  text-align: center;
  margin-bottom: 20px;
}

.flow-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.flow-step {
  text-align: center;
  flex: 1;
  max-width: 160px;
}

.flow-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 10px;
}

.flow-icon.customer {
  background: linear-gradient(135deg, #42A5F5 0%, #1976D2 100%);
}

.flow-icon.ecoring {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent-color) 100%);
}

.flow-icon.org {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-color) 100%);
}

.flow-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.flow-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.flow-arrow {
  font-size: 1.5rem;
  color: var(--primary-color);
  flex-shrink: 0;
}

/* 実績セクション */
.stats-section {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-md);
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
}

.stats-title {
  font-size: 1.1rem;
  font-weight: 600;
  opacity: 0.9;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.stats-highlight {
  position: relative;
  z-index: 1;
}

.stats-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

.stats-number {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
}

.stats-unit {
  font-size: 1.5rem;
  font-weight: 700;
}

.stats-label {
  font-size: 1rem;
  margin-top: 8px;
  opacity: 0.9;
}

.stats-thanks {
  font-size: 0.9rem;
  margin-top: 16px;
  opacity: 0.8;
  position: relative;
  z-index: 1;
}

/* 寄付先プレビュー */
.preview-section {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.preview-title {
  font-size: 1.3rem;
  color: var(--primary-dark);
  text-align: center;
  margin-bottom: 16px;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.preview-item {
  background: #F5F5F5;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: center;
}

/* ========================================
   寄付先一覧ページ
   ======================================== */

/* シンプルヘッダー */
.page-header-simple {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 20px 24px;
  text-align: center;
}

.page-title-simple {
  font-size: 1.5rem;
  font-weight: 700;
}

/* Destination Card */
.destination-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  margin: 16px 24px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.destination-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
}

.destination-title-area {
  flex: 1;
  min-width: 0;
}

.destination-category {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-bottom: 2px;
}

.destination-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.destination-body {
  padding: 16px 20px;
}

.destination-description {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* 画像付きグリッドレイアウト */
.destination-grid {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 16px;
  align-items: center;
}

.destination-image-wrapper {
  width: 200px;
  height: 140px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.destination-image-grid {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.destination-text {
  flex: 1;
}

/* Highlight Text */
.highlight {
  color: var(--primary-color);
  font-weight: 700;
}

.highlight-accent {
  color: var(--accent-color);
  font-weight: 700;
}

/* Footer */
.footer {
  text-align: center;
  padding: 20px 24px;
  color: var(--text-light);
  font-size: 0.8rem;
}

/* Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.5s ease forwards;
}

.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }
.delay-4 { animation-delay: 0.4s; opacity: 0; }

/* ========================================
   iframe確認ページ用
   ======================================== */

.iframe-preview-page {
  font-family: 'Noto Sans JP', sans-serif;
  background: #f0f0f0;
  min-height: 100vh;
  padding: 40px;
  width: 100%;
  max-width: 100%;
}

.preview-header {
  max-width: 1200px;
  margin: 0 auto 30px;
}

.preview-header h1 {
  font-size: 1.5rem;
  color: #333;
  margin-bottom: 8px;
}

.preview-header p {
  color: #666;
  font-size: 0.9rem;
}

.iframe-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
}

.iframe-wrapper {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.iframe-wrapper h2 {
  font-size: 1rem;
  color: #333;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee;
}

.iframe-wrapper iframe {
  display: block;
  border: 1px solid #ddd;
  border-radius: 8px;
}
