@import url('https://fonts.googleapis.com/css2?family=Kiwi+Maru:wght@400;500&display=swap');

body {
  font-family: "Kiwi Maru", "Yu Gothic", sans-serif;
  background: linear-gradient(180deg, #f8f3ef 0%, #efe2d3 100%);
  color: #4b3b2f;
  text-align: center;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  background: #d7c3a7;
  color: #fff;
  padding: 30px 20px 20px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

header h1 {
  font-size: 2em;
  margin-bottom: 5px;
}

header p {
  font-size: 1em;
  opacity: 0.9;
}

/* ======== グリッド ======== */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 50px;
  flex-grow: 1;
  justify-items: center;
}

/* ======== カード ======== */
.user {
  position: relative;
  background: #fffaf6;
  border-radius: 20px;
  width: 220px;
  height: 220px; /* ← 正方形 */
  box-shadow: 0 4px 8px rgba(0,0,0,0.08);
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
  border: 2px solid #e6d7c5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.user:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 15px rgba(0,0,0,0.15);
  background: #fdf6ef;
}

.user img {
  border-radius: 50%;
  width: 100px;
  height: 100px;
  object-fit: cover;
  border: 3px solid #d7c3a7;
  margin-bottom: 10px;
}

.user p {
  font-size: 1.1em;
  font-weight: 500;
  color: #6b4c37;
}

/* ======== フッター ======== */
footer {
  background: #d7c3a7;
  color: #fff;
  padding: 10px;
  font-size: 0.9em;
}

/* ======== スマホ対応 ======== */
@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .user {
    width: 180px;
    height: 180px;
  }
}