/* style.css */
body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
  background-color: #fff;
  color: #333;
}

header {
  background-color: #4CAF50;
  color: white;
  padding: 20px 0;
  text-align: center;
}

header img.logo {
  height: 50px;
  vertical-align: middle;
}

nav {
  margin-top: 10px;
}

nav a {
  margin: 0 15px;
  color: white;
  text-decoration: none;
  font-weight: bold;
}

.hero {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

main {
  padding: 40px 20px;
  max-width: 900px;
  margin: auto;
}

footer {
  background-color: #eee;
  text-align: center;
  padding: 15px;
  font-size: 0.9em;
  margin-top: 40px;
}

button[type="submit"]:hover {
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.card-section table td {
  text-align: left;
}

.button-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* 中央寄せに変更 */
  gap: 20px;
  margin-top: 20px;
}

.button-grid a {
  width: 45%;
  max-width: 300px;
  min-width: 200px;
  text-align: center;
  padding: 20px;
  background-color: #2e7d32;
  color: white;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s;
  margin-top: 20px;
}

.product-card {
  flex: 1 1 calc(33.33% - 20px);
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden;
  text-align: center;
}

.product-card img {
  width: 100%;
  height: auto;
  display: block;
}

.product-card a {
  display: block;
  padding: 12px;
  font-weight: bold;
  color: #2e7d32;
  text-decoration: none;
  font-size: 1.1em;
  background-color: #fff; /* 明示的に白背景 */
}

.product-card a:hover {
  text-decoration: underline;
}

/* ページ読込時のチラつき防止 */
#header {
  width: 100%;
  aspect-ratio: 1260 / 318;
  display: block;
  background: #fff; /* 背景白でチラ見え防止 */
}

#footer {
  min-height: 60px;
}

#sidebar-container {
  min-height: 400px;
}

.header-image {
  width: 100%;
  aspect-ratio: 1260 / 318;
  display: block;
  background-color: #fff;
  overflow: hidden;
}

.header-image img {
  width: 100%;
  height: auto;
  display: block;
}