@charset "UTF-8";

.link-wrapper {
  text-decoration: none;
  color: inherit;
  border: 1px solid #31577d;
  display: block;
}

.page_container {
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.page_container_3 {
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.page_content {
  padding: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  height: 100%;
  justify-content: flex-start;
  transition: all 0.3s ease;
}

.page_content img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid #8d8e8f;
  margin-bottom: 1.3rem;
}

.page_content p {
  text-align: center;
  margin: 0;
  font-weight: bold;
  line-height: 2.7rem;
}

@media (max-width: 853px) {
  .page_container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 598px) {
  .page_container,.page_container_3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 詳細を見るを追加 */
.page_content{
  position: relative;
}
figcaption {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,.6);
  -webkit-transition: .3s;
  transition: .3s;
  opacity: 0;
}

figcaption p {
  font-size: 20px;
  color: #fff;
  font-weight: bold;
  padding-right: 0;
  padding-left: 0
}

figure:hover figcaption { opacity: 1; }

/* 4列 */
@media print, screen and (min-width: 854px){}
@media print, screen and (min-width: 1021px){
  figcaption p { padding-top: 35%; }
}
@media print, screen and (max-width: 1020px) and (min-width: 854px){
  figcaption p { padding-top: 40%; }
}

/* 3列 */
@media print, screen and (max-width: 853px) and (min-width: 599px){}
@media print, screen and (max-width: 853px) and (min-width: 671px){
  figcaption p { padding-top: 35%; }
}
@media print, screen and (max-width: 670px) and (min-width: 599px){
  figcaption p { padding-top: 40%; }
}

/* 2列 */
@media print, screen and (max-width: 598px){}
@media print, screen and (max-width: 598px) and (min-width: 351px){
  figcaption p { padding-top: 35%; }
}
@media print, screen and (max-width: 350px){
  figcaption p { padding-top: 45%; }
}

/* 外枠の余白調整 */
@media print, screen and (min-width: 341px){
  .page_container { padding: 30px 30px; }
}
@media print, screen and (max-width: 340px){
  .page_container { padding: 1rem 0.5rem; }
}

table.materials-table {
	border:1px solid #ddd;
	margin-bottom: 1.6em;
	width: 100%;
	text-align: center;
}
table.materials-table tr { border:1px solid #ddd; }

table.materials-table th {
	border:1px solid #ddd;
	background: #694e2d;
	color: #fff;
	padding-top: 5px;
	padding-bottom: 5px;
}

table.materials-table td { 
    border: 1px solid #ddd;
    padding: 5px 0 !important;
}

table.materials-table tr td:nth-child(2) {
    text-align: left;
    padding-left: 1.5em !important;
}
