@import url('https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic:wght@400;700&display=swap');

body {
  font-family: 'Zen Maru Gothic', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #fff6f2;
  color: #4b2e2e;
}

header {
  background-color: #fceae8;
  padding: 2rem 1rem;
  text-align: center;
}

header h1 {
  font-size: 2rem;
  margin: 0;
}

header p {
  font-size: 1rem;
  color: #666;
}

.sub-title {
    font-size: 0.9rem;
    color: #a65f3e; /* 温かみのあるブラウン */
    margin-bottom: 0.1rem;
    font-weight: 500;
  }

/* ----------------------ここからナビ---------------------- */
nav {
  display: flex;
  justify-content: center;
  background-color: #fff0f5;
  padding: 10px 0;
  border-bottom: 1px solid #f0cfc1;
}

nav a {
  text-decoration: none;
  color: #6d4c41;
  font-weight: bold;
  font-size: 15px;
  transition: color 0.3s;
}

nav a:hover {
  color: #d2691e;
}

@media screen and (max-width: 600px) {
  nav {
    flex-direction: column;
    gap: 10px;
  }
}

/* ナビ全体を中央寄せにして、スマホで横並びにも対応 */
nav {
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
  text-align: center;
}
/* ----------------------ナビ終わり---------------------- */

.page-title {
  text-align: center;
  margin: 2rem 0 1rem;
  font-size: 1.4rem;
  color: #a65f3e;
}

.products-grid {
  display: flex; /* grid → flex に変更 */
  justify-content: center; /* 中央寄せ */
  flex-wrap: wrap; /* 複数枚ある場合折り返し */
  gap: 2rem;
  max-width: 960px;
  margin: 0 auto;
}

@media screen and (min-width: 768px) {
  .products-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.product-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  padding: 1rem;
  text-align: center;
  max-width: 400px; /* 任意：カード最大幅 */
  flex: 1 1 300px; /* 最小300pxで伸縮 */
}

.product-card img {
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.product-card h2 {
  margin: 1rem 0 0.5rem;
  font-size: 1.1rem;
  text-decoration: underline;
}

.product-card .price {
  font-weight: bold;
  color: #d17a8a;
  margin-bottom: 0.5rem;
}

.product-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 0 0.5rem;
}

.detail-button {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.5rem 1.2rem;
  background-color: #f4a9ac;
  color: white;
  border-radius: 999px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}

.detail-button:hover {
  background-color: #e78b90;
}

footer {
  background-color: #fddede;
  text-align: center;
  padding: 1rem;
  font-size: 0.8rem;
}
.back-top {
  text-align: center;
  margin: 3rem 0 2rem;
}

.back-button {
  display: inline-block;
  padding: 0.7rem 2rem;
  background-color: #f4a9ac;
  color: #fff;
  font-weight: bold;
  border-radius: 999px;
  text-decoration: none;
  transition: background-color 0.3s;
}

.back-button:hover {
  background-color: #e78b90;
}
