h3 { text-align:center;
	color:#34a;
	font-size:18px;
}

#m2000w {
	text-align:center !important;
	font-size:16px !important
}

#top-title {
  display: block;
  margin: 30px auto;
}

.image-area {
  margin: 0 auto;
}

.row {
  width: 100%;
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  align-items: flex-start;
}

.box {
  display: flex;
  flex-direction: column;
  background: #ddd;
  overflow: visible;
}

.box a {
  display: block;
  width: 100%;
  text-decoration: none;
}

.img-wrap {
  width: 100%;
  overflow: hidden;
  display: block;
}

.box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

/* 1段目・2段目：4つずつ（800×600 → 4:3） */
.row-1 .box,
.row-2 .box {
  width: calc((100% - 60px) / 4);
}

/* 3段目：6つ（600×800 → 3:4） */
.row-3 .box {
  width: calc((100% - 100px) / 6);
}

/* 画像部分だけに比率を指定 */
.row-1 .img-wrap,
.row-2 .img-wrap {
  aspect-ratio: 4 / 3;
}

.row-3 .img-wrap {
  aspect-ratio: 3 / 4;
}

.img-caption {
  display: block;
  margin: 6px 0 0 0;
  padding: 0 4px 4px 4px;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  color: #333;
  background: #ddf;
  box-sizing: border-box;
}

/* lightbox */
#lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  z-index: 99999;
}

#lightbox.active {
  display: block;
}

#lightbox-inner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: auto;
  height: auto;
  max-width: 90vw;
  max-height: 90vh;
  text-align: center;
}

#lightbox-img {
  display: block;
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  margin: 0 auto;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}

/* 閉じるボタン */
#lightbox-close {
  position: fixed;
  top: 20px;
  right: 30px;
  font-size: 50px;
  line-height: 1;
  color: #fff;
  cursor: pointer;
  font-weight: bold;
  background: rgba(0, 0, 0, 0.65);
  padding: 8px 18px 12px 18px;
  border-radius: 8px;
  z-index: 100000;
  user-select: none;
}

/* BACK */
#lightbox-prev {
  position: fixed;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 60px;
  line-height: 1;
  color: #fff;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.65);
  padding: 12px 20px 18px 20px;
  border-radius: 8px;
  z-index: 100000;
  user-select: none;
}

/* NEXT */
#lightbox-next {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 60px;
  line-height: 1;
  color: #fff;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.65);
  padding: 12px 20px 18px 20px;
  border-radius: 8px;
  z-index: 100000;
  user-select: none;
}

/* 操作説明 */
#lightbox-caption {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  color: #fff;
  font-size: 14px;
  line-height: 1.5;
  background: rgba(0, 0, 0, 0.55);
  padding: 10px 18px;
  border-radius: 8px;
  z-index: 100000;
  user-select: none;
}

#lightbox-prev:hover,
#lightbox-next:hover,
#lightbox-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.info-grid {
display: grid;
grid-template-columns: repeat(2,1fr);
gap: 25px;
margin: 40px 0;
}

.info-box {
background: #f5f5f5;
padding: 25px;
border-radius: 6px;
line-height: 1.7;
font-size: 15px;
}

.info-box h3 {
margin: 0 0 15px 0;
font-size: 20px;
border-bottom: 2px solid #ccc;
padding-bottom: 6px;
}

.info-box ul {
margin: 10px 0 10px 20px;
padding: 0;
}

.info-box li {
margin-bottom: 5px;
}

#toiawase {
	text-align:center;
	padding:10px 20px ;
	background-color:#fdd;
	border:2px solid #e00;
	border-radius:10px;
	font-size:20px;
}

.video-area{
  text-align:center;
  margin:50px auto 40px auto;
}

.video-title{
  font-size:22px;
  font-weight:bold;
  margin-bottom:15px;
  color:#333;
}

.video-area video{
  display:block;
  margin:0 auto;
  border:1px solid #cccccc;
  box-shadow:0 3px 10px rgba(0,0,0,0.15);
  background:#000;
}