﻿@charset "UTF-8";

body {
	margin:0;
	padding:0;
	text-align: center;
	}
h1 {
	width:100%;
	text-align:center;
	font-size:16px;
	font-weight:normal;
	background-color: #dc143c;
	color:#ffffff;
	margin:0;
	}

h2 {
	font-size:20px;
	color:#dc143c;
	}

a {
	color:#ffffff;
	}

.contain {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* 2～3列対応 */
  gap: 20px;
  justify-items: center;
  align-items: stretch; /* 高さをそろえる */
  padding: 20px;
  box-sizing: border-box;
}

.catg {
	width:45%;
	margin:6px;
	float:left;
	border: #ff0000 solid 2px;
	border-radius: 8px;
	background-color: #ff0000;
	}

/* 各アイテム */
.detail {
  width: 100%;
  max-width: 300px;
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  padding: 10px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: 0.2s;
}

.detail:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* 画像調整 */
.detail img {
  width: 100%;
  height: 200px;
  object-fit: cover; /* 縦横比を保ちつつトリミング */
  border-radius: 6px;
  margin-bottom: 8px;
}

/* 下部メニューなどとの間隔 */
.clear {
  margin-top: 30px;
}

strong.menu {
	font-size:20px;
	color:#ffffff;
	}

strong.item_name {
	margin:2px auto;
	color:#00008b;
	font-weight:bold;
	font-size:12px;
	}


.bl {
	width:30%;
	margin:10px auto;
	}

.under_menu {
	width:90%;
	margin:auto;
	padding:10px;
	text-align:center;
	flex-wrap: wrap;
	justify-content: space-evenly;
	}

@media screen and (max-width: 600px) {
  .contain {
grid-template-columns: repeat(2, 1fr);
  }
}
