@charset "UTF-8";

/* ==========================
   基本設定
========================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #f2e3d8;
  color: #444;
  font-family: "Noto Sans JP", sans-serif;
  line-height: 1.8;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}


/* ==========================
   共通コンテナ
========================== */

.container {
  width: 92%;
  max-width: 1100px;
  margin: 0 auto;
}


/* ==========================
   ヘッダー
========================== */

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 250, 246, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #ead8ca;
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo h2 {
  font-size: 1.4rem;
  color: #e86f24;
}

.logo p {
  font-size: 0.82rem;
  color: #777;
  margin-top: 2px;
}

nav ul {
  display: flex;
  align-items: center;
  gap: 10px;
}

nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 16px;
  border-radius: 8px;
  font-weight: 700;
  color: #444;
  transition: 0.25s;
}

nav a:hover {
  background: #fff0e5;
  color: #e86f24;
}

.menu-btn {
  display: none;
  background: #fff;
  border: 1px solid #f3dfcf;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  color: #e86f24;
  font-weight: 700;
}


/* ==========================
   メインエリア
========================== */

main {
  width: 92%;
  max-width: 1000px;
  margin: 45px auto;
  padding: 55px 50px;
  background: #fffaf6;
  border-radius: 24px;
  box-shadow: 0 8px 30px rgba(100, 60, 30, 0.06);
}

.donation-title {
  text-align: center;
  font-size: 2rem;
  color: #5a4032;
  margin-bottom: 15px;
}

.donation-title::after {
  content: "";
  display: block;
  width: 55px;
  height: 4px;
  margin: 18px auto 45px;
  background: #e99a62;
  border-radius: 10px;
}


/* ==========================
   寄付者グループ
========================== */

.donation-content {
  display: flex;
  flex-direction: column;
  gap: 35px;
}

.donation-group {
  background: #fff;
  border: 1px solid #efdfd3;
  border-radius: 18px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(100, 60, 30, 0.04);
}

.donation-group h4 {
  text-align: center;
  font-size: 1.25rem;
  color: #875536;
  margin-bottom: 25px;
  padding-bottom: 14px;
  border-bottom: 2px solid #f3e4d8;
}


/* ==========================
   寄付者一覧
========================== */

.donation-group ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 20px;
  padding: 0;
  margin: 0;
}

.donation-group li {
  display: block;
  text-align: center;
  padding: 12px 5px;
  font-size: 0.95rem;
  background: transparent;
  border: none;
  border-bottom: 1px solid #ddd;
}


/* ==========================
   お礼の文章
========================== */

.donation-content > p {
  text-align: center;
  color: #765b4c;
  margin-top: 10px;
  line-height: 2;
}


/* ==========================
   フッター
========================== */

footer {
  text-align: center;
  padding: 35px 20px;
  background: #f2e3d8;
}

footer p {
  margin: 6px 0;
  color: #555;
  font-size: 14px;
  line-height: 1.8;
}

.host {
  white-space: normal;
}


/* ==========================
   960px以下
========================== */

@media (max-width: 960px) {

  nav {
    display: none;
    width: 100%;
  }

  nav.open {
    display: block;
  }

  nav ul {
    flex-direction: column;
    align-items: stretch;
    padding: 14px 0;
  }

  nav a {
    width: 100%;
  }

  .header-inner {
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .menu-btn {
    display: block;
  }

  .donation-group ul {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* ==========================
   600px以下 スマホ
========================== */

@media (max-width: 600px) {

  body {
    font-size: 15px;
  }

  main {
    width: 94%;
    margin: 25px auto;
    padding: 35px 18px;
    border-radius: 18px;
  }

  .donation-title {
    font-size: 1.55rem;
  }

  .donation-title::after {
    margin-bottom: 30px;
  }

  .donation-content {
    gap: 25px;
  }

  .donation-group {
    padding: 22px 14px;
    border-radius: 14px;
  }

  .donation-group h4 {
    font-size: 1.05rem;
    margin-bottom: 20px;
  }

  .donation-group ul {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .donation-group li {
    min-height: 44px;
    padding: 9px 8px;
    font-size: 14px;
  }

  footer {
    padding: 28px 20px;
  }

  footer p {
    text-align: center;
  }

}