/* 全体のスタイル（ピンク・ベージュ基調） */
body {
  font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
  background-color: #fffafb;
  color: #5a4b50;
  margin: 0;
  padding: 0;
}

header {
  background: linear-gradient(135deg, #ff8eb3, #ff5e94); /* 「プロジェクトを支援する」ボタンと同じグラデーション */
  padding: 20px;
  text-align: center;
  color: white;
  box-shadow: 0 4px 12px rgba(255, 94, 148, 0.3);
}

h1 {
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: 2px;
  color: white;
  font-weight: bold;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

/* リボン見出し */
.ribbon-heading {
  position: relative;
  display: inline-block;
  background: #ff8eb3;
  color: #fff;
  padding: 12px 40px;
  font-size: 1.25rem;
  font-weight: bold;
  border-radius: 4px;
  margin: 35px 0 20px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.ribbon-heading::before,
.ribbon-heading::after {
  content: '';
  position: absolute;
  top: 100%;
  border-style: solid;
  border-color: transparent;
}
.ribbon-heading::before {
  left: 0;
  border-width: 0 15px 15px 0;
  border-right-color: #d15c86;
}
.ribbon-heading::after {
  right: 0;
  border-width: 0 0 15px 15px;
  border-left-color: #d15c86;
}
.center-wrap {
  text-align: center;
}

/* ダッシュボード（進捗状況） */
.dashboard {
  background: white;
  border: 3px solid #ffdde6;
  border-radius: 15px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 15px rgba(255, 182, 193, 0.2);
}

.status-item {
  margin-bottom: 20px;
}

.status-label {
  font-size: 0.9rem;
  color: #8c7a80;
  margin-bottom: 5px;
}

.status-value {
  font-size: 2.5rem;
  font-weight: bold;
  color: #d1497b;
}

.status-value span {
  font-size: 1.2rem;
  margin-left: 5px;
}

/* プログレスバー */
.progress-wrapper {
  background-color: #ffe0e9;
  border-radius: 20px;
  height: 25px;
  width: 100%;
  overflow: hidden;
  margin: 15px 0;
}

.progress-bar {
  background: linear-gradient(90deg, #ffb6c1, #ff69b4);
  height: 100%;
  width: 0%;
  border-radius: 20px;
  transition: width 1s ease-in-out;
}

.progress-percent {
  text-align: right;
  font-weight: bold;
  color: #ff69b4;
}

/* STORES連携ボタン */
.cta-section {
  text-align: center;
  margin: 35px 0;
}

.cta-button {
  display: inline-block;
  background: linear-gradient(135deg, #ff8eb3, #ff5e94);
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
  text-decoration: none;
  padding: 18px 50px;
  border-radius: 50px;
  box-shadow: 0 6px 15px rgba(255, 94, 148, 0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 94, 148, 0.6);
}

/* ==========================================
   ストレッチゴール（集まった分だけ、生誕祭が育つ）
   ========================================== */
.goals-board {
  background: white;
  border: 2px solid #ffdde6;
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 4px 12px rgba(255, 182, 193, 0.15);
}

#goals-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.goal-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-radius: 12px;
  background: #fafafa;
  border: 1px solid #eee;
  transition: all 0.3s;
}

/* 達成済みの項目 */
.goal-item.achieved {
  background: #fff0f5;
  border: 2px solid #ffb6c1;
}

/* 基本目標（30万円）の強調 */
.goal-item.main-target {
  border-color: #ff69b4;
  box-shadow: 0 2px 8px rgba(255, 105, 180, 0.15);
}

.goal-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.goal-price {
  font-size: 1.15rem;
  font-weight: bold;
  color: #d1497b;
}

.goal-item:not(.achieved) .goal-price {
  color: #8c7a80;
}

.goal-title {
  font-size: 1.05rem;
  font-weight: bold;
  color: #4a3b40;
}

.goal-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.badge-target {
  background: #ff69b4;
  color: white;
  font-size: 0.75rem;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 6px;
}

.badge-achieved {
  background: linear-gradient(135deg, #ff8eb3, #ff5e94);
  color: white;
  font-size: 0.85rem;
  font-weight: bold;
  padding: 5px 12px;
  border-radius: 20px;
  box-shadow: 0 2px 5px rgba(255, 94, 148, 0.3);
}

.badge-remaining {
  background: #f0e6ea;
  color: #8c7a80;
  font-size: 0.85rem;
  font-weight: bold;
  padding: 5px 12px;
  border-radius: 20px;
}

/* ==========================================
   応援者一覧（金額に応じたサイズ変更対応）
   ========================================== */
.supporter-board {
  background: white;
  border: 2px dashed #ffb6c1;
  border-radius: 15px;
  padding: 30px 20px;
  margin-bottom: 50px;
}

#supporter-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
  align-items: center;
}

/* 通常サイズ（30万円未満） */
#supporter-list li {
  background: #fff0f5;
  color: #d1497b;
  padding: 10px 20px;
  border-radius: 30px;
  font-weight: bold;
  font-size: 0.95rem;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  border: 1px solid #ffe0e9;
  line-height: 1.2;
}

/* 30万円以上：通常の2倍のサイズ */
#supporter-list li.tier-2x {
  font-size: 1.9rem;
  padding: 16px 32px;
  border-radius: 45px;
  background: linear-gradient(135deg, #fff0f5, #ffe0ec);
  border: 2px solid #ff8eb3;
  box-shadow: 0 4px 12px rgba(255, 142, 179, 0.3);
}

/* 150万円以上（3倍サイズ・毒うさぎパープル） */
.supporter-list li.tier-3x {
  font-size: 2.2rem;
  font-weight: bold;
  color: #8C36F5; /* キャラクター本体の鮮やかなパープル */
  background: linear-gradient(135deg, #f9f4ff, #efe3ff); /* 淡いパープルの背景 */
  border: 2px solid #6B24C6; /* 輪郭線と同じ濃いパープル */
  padding: 12px 28px;
  box-shadow: 0 4px 16px rgba(140, 54, 245, 0.3);
}

/* 管理者画面用スタイル */
.admin-panel {
  background: white;
  border: 2px solid #ffdde6;
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.admin-panel input {
  padding: 12px;
  margin: 5px;
  border: 1px solid #ffb6c1;
  border-radius: 8px;
  width: 80%;
  max-width: 250px;
  font-size: 1rem;
}

.auth-btn, .submit-btn {
  background: #ff69b4;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 25px;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s;
}

.auth-btn:hover, .submit-btn:hover {
  background: #e05297;
}

/* 写真の枠を中央寄せ対応にする */
.greeting-photo-wrap {
  flex-shrink: 0;
  text-align: center;
  width: 100%;
}

/* 写真の大きさを元の長方形（縦横比）のまま中央に配置 */
.greeting-photo {
  width: 240px !important;
  height: auto !important;
  max-width: 100%;
  margin: 0 auto;                /* これで縦並びのときに中央揃えになります */
  border-radius: 15px !important;
  border: 4px solid #ffb6c1;
  box-shadow: 0 4px 10px rgba(255, 142, 179, 0.3);
  display: block;
}

/* PCなど画面が広いとき（横並び）の設定 */
@media (min-width: 600px) {
  .greeting-photo-wrap {
    width: auto; /* 横並びのときは写真の幅に合わせる */
  }
  .greeting-photo {
    width: 260px !important;
    height: auto !important;
  }
}

/* ==========================================
   リターン（返礼品）一覧
   ========================================== */
.returns-board {
  margin-bottom: 40px;
}

.returns-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

/* PC・タブレット幅では2列に並べる */
@media (min-width: 650px) {
  .returns-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.return-card {
  background: white;
  border: 2px solid #ffdde6;
  border-radius: 15px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 12px rgba(255, 182, 193, 0.15);
  transition: transform 0.2s, box-shadow 0.2s;
}

.return-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(255, 142, 179, 0.25);
}

/* VIPコース用の特別枠 */
.return-card.vip-card {
  border: 2px solid #f5b041;
  background: linear-gradient(180deg, #fffdf9 0%, #fff5f8 100%);
}

.return-header {
  border-bottom: 2px dashed #ffe0e9;
  padding-bottom: 12px;
  margin-bottom: 15px;
}

.return-title {
  display: block;
  font-size: 1.05rem;
  font-weight: bold;
  color: #5a4b50;
  margin-bottom: 6px;
}

.return-price {
  display: block;
  font-size: 1.65rem;
  font-weight: bold;
  color: #d1497b;
}

.return-items {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  flex-grow: 1;
}

.return-items li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #5a4b50;
}

/* リストの先頭にピンクのハートマークを付ける */
.return-items li::before {
  content: "♥";
  position: absolute;
  left: 0;
  top: 0;
  color: #ff8eb3;
  font-size: 0.85rem;
}

.return-btn {
  display: block;
  text-align: center;
  background: linear-gradient(135deg, #ff8eb3, #ff5e94);
  color: white;
  font-weight: bold;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 12px 15px;
  border-radius: 30px;
  box-shadow: 0 4px 10px rgba(255, 94, 148, 0.3);
  transition: opacity 0.2s;
}

.return-btn:hover {
  opacity: 0.88;
}

/* 募集期間の表示スタイル */
.project-period {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px dashed #ffdde6;
  font-size: 0.85rem;
  color: #8c7a80;
  letter-spacing: 0.5px;
}

/* X（活動報告）フォロー欄 */
.x-follow-card {
  background: #ffffff;
  border: 2px solid #ffdde6;
  border-radius: 20px;
  padding: 24px 20px;
  margin: 40px auto 30px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(255, 133, 162, 0.12);
}

.x-follow-title {
  margin: 0 0 14px;
  font-size: 0.95rem;
  font-weight: bold;
  color: #5c434a;
  letter-spacing: 0.5px;
}

.x-follow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #ff85a2, #ff5c8a);
  color: #ffffff;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: bold;
  padding: 12px 26px;
  border-radius: 999px;
  transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.x-follow-btn:hover {
  background: #33383d;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.goal-note {
  margin-top: 14px;
  margin-bottom: 0;
  font-size: 0.85rem;
  color: #8c7a80;
  text-align: right; /* 左揃えにしたい場合は left に変更してください */
}