/* ===== footer.css ===== */

/* 全体 */
body.kurafan {
  margin: 0;
  font-family: 'Zen Old Mincho', 'Noto Serif JP', serif;
  background: linear-gradient(135deg, #FFD700, #E6BE8A, #FFD700);
  background-attachment: fixed;
  color: #2a1a00;
}

/* ヘッダー */
.kurafan-header {
  text-align: center;
  margin: 20px auto;
  width: 92%;
  max-width: 900px;
  padding: 25px 15px;
  background: linear-gradient(180deg, #c9b037, #8c6c1a);
  border-radius: 20px;
  box-shadow: 0 6px 12px rgba(0,0,0,0.4), inset 0 3px 8px rgba(255,255,255,0.3);
  border: 3px solid #fff7d1;
}
.kurafan-header h1 {
  margin: 0;
  font-size: clamp(30px, 6vw, 60px);
  font-weight: 900;
  color: #fffbe6;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
}
.kurafan-header .sub {
  margin-top: 12px;
  font-size: clamp(18px, 3vw, 22px);
  color: #fff9e6;
  line-height: 1.8;
}

/* メイン */
.kurafan-main {
  text-align: center;
  margin: 0 auto;
  width: 92%;
  max-width: 900px;
  padding-bottom: 140px;
}

/* 額縁 */
.frame {
  border: 40px solid transparent;
  border-image: url("haikei.png") 60 round; 
  border-radius: 12px;
  background: #fffdf5;
  padding: 40px 25px;
  margin: 40px auto;
  box-shadow: 0 12px 25px rgba(0,0,0,0.4);
}

/* 支援者行 */
.supporter-row {
  display: flex;
  justify-content: center;
  margin: 16px 0;
}
.supporter-row .supporter { margin: 0 6px; }
.supporter-row .name {
  margin: 0;
  line-height: 1.45;
  word-break: keep-all;
  color: #2a1a00;
  text-shadow: 1px 1px 3px rgba(255,255,200,0.6);
}

/* 大（1人） */
.supporter-row.big .name { font-size: clamp(36px, 6vw, 64px); font-weight: 900; }
/* 中（2人） */
.supporter-row.medium .name { font-size: clamp(26px, 4.5vw, 40px); font-weight: 800; }
/* 小（3人） */
.supporter-row.small .name { font-size: clamp(20px, 3.8vw, 28px); font-weight: 700; }

/* 感謝メッセージ */
.thanks {
  margin: 30px 0 0;
  font-size: clamp(24px, 5vw, 44px);
  font-weight: 900;
  color: #fffbe6;
  text-shadow: 2px 2px 8px rgba(0,0,0,0.6);
}

/* =========================
   スマホ対応（最適化済み）
   ========================= */
@media screen and (max-width: 768px) {

  /* ページ全体の幅を広げる */
  .kurafan-main,
  .kurafan-header {
    width: 96%;
    max-width: none;
  }

  /* 額縁の余白を最適化（読みやすく） */
  .frame {
    padding: 32px 16px; /* 詰まり防止と全体バランス */
    border-width: 22px; /* スマホでも枠が太すぎないように調整 */
  }

  /* タイトル・説明 */
  .kurafan-header h1 {
    font-size: 36px;
    line-height: 1.4;
  }
  .kurafan-header .sub {
    font-size: 17px;
    line-height: 1.7;
  }

  /* 感謝メッセージ */
  .thanks {
    font-size: 26px;
    margin-top: 20px;
  }

  /* 行間を統一（通常行間 1.45） */
  .supporter-row {
    flex-wrap: wrap;
    margin: 16px 0; /* 詰まり防止のため少し余裕 */
  }

  /* =========================
     支援者名のサイズとバランス
     ========================= */

  /* 大（1人） */
  .supporter-row.big .supporter {
    max-width: 100%;
  }
  .supporter-row.big .name {
    font-size: 9vw; /* 画面幅基準（例：360px → 32px前後） */
    line-height: 1.45;
    word-break: keep-all;
    text-align: center;
  }

  /* 中（2人） */
  .supporter-row.medium {
    gap: 12px;
  }
  .supporter-row.medium .supporter {
    flex: 1;
    max-width: 47%;
    min-width: 47%;
  }
  .supporter-row.medium .name {
    font-size: 6.3vw; /* 大の約70%程度 */
    line-height: 1.45;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  /* 小（3人） */
  .supporter-row.small {
    gap: 10px;
  }
  .supporter-row.small .supporter {
    flex: 1;
    max-width: 30%;
    min-width: 30%;
    padding: 0 2px;
  }
  .supporter-row.small .name {
    font-size: 4.8vw; /* 大の約50%程度 */
    line-height: 1.45;
    word-break: break-word;
    overflow-wrap: break-word;
  }

  /* 各行の間を微調整（大→中→小のバランスを整える） */
  .supporter-row.big + .supporter-row.medium { margin-top: 22px; }
  .supporter-row.medium + .supporter-row.small { margin-top: 20px; }

  /* ハンバーガーメニューが小さい場合の対策 */
  .menu-button {
    transform: scale(1.3);
    transform-origin: center;
  }
}

.cicon p {
  font-size: clamp(10px, 2vw, 15px); 
  margin: 2px 0 4px;
  font-weight: 900;
text-align:center
}