/* ========== ポップアップ ========== */
.tmb {
  width: 50%;
}
.tmb_img {
  width: 60%;
  height: auto;
}
.tmb_img:hover {
  cursor: pointer;
}
.popup {
  z-index: 10;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  transform: scale(0);
  background-color: rgba(0, 0, 0, 0.8);
  opacity: 0;
  transition: opacity 0.3s, transform 0s 0.3s;
}
.popup__btn {
  display: block;
  z-index: 13;
  position: absolute;
  top: 1vh;
  right: 1vh;
  width: 5vh;
  height: 5vh;
  cursor: pointer;
}
.popup__btn::before,
.popup__btn::after {
  position: absolute;
  top: 50%;
  width: 100%;
  height: 2px;
  margin-top: -1px;
  background-color: #fff;
  content: '';
}
.popup__btn::before { transform: rotate(45deg); }
.popup__btn::after  { transform: rotate(-45deg); }
.popup__btnarea {
  z-index: 12;
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}
.popup__img {
  z-index: 11;
  position: absolute;
  top: 5%; left: 5%;
  width: 90%; height: 90%;
}
.popup__img img {
  width: 100%; height: 100%;
  object-fit: contain;
}
input[type="checkbox"] { display: none; }
input[type="checkbox"]:checked ~ .popup {
  transform: scale(1);
  opacity: 1;
  transition: opacity 0.3s;
}

/* ========== 基本レイアウト ========== */
body {
  font-family: 'Hiragino Kaku Gothic Pro', 'Meiryo', sans-serif;
  min-height: 100vh;
  display: flex;
  padding-top: 100px;
  margin: 0;
}

/* ========== ヘッダー ========== */
header {
  position: fixed;
  z-index: 2;
  top: 0;
  width: 100%;
  height: 100px;
  background-color: slategray;
  color: aliceblue;
  text-align: left;
  padding-top: 10px;
  padding-left: 70px;
  box-sizing: border-box;
}
.topheader {
  position: fixed;
  z-index: 2;
  top: 0;
  width: 100%;
  height: 150px;
  padding-top: 2em;
  background-color: slategray;
  color: aliceblue;
  text-align: center;
  line-height: 2em;
  box-sizing: border-box;
}
body.is-top {
  padding-top: 150px;
}

/* ========== コンテンツエリア ========== */
.Content {
  flex: 1;
  background-color: snow;
  text-align: left;
  margin: 10px 20px 20px;
  padding: 20px 20px 20px;
}
.topContent {
  flex: 1;
  background-color: snow;
  text-align: center;
  margin: 10px 0 20px;
  padding: 20px 0 20px;
}

/* ========== 色 ========== */
.gray  { color: silver; }
.alice { color: aliceblue; }

/* ========== テキストブロック ========== */
.toptext {
  display: inline-block;
  width: 100%;
  margin: 5em 0 3em 1em;
  padding: 10px;
  text-align: center;
  color: #494949;
  line-height: 2em;
}
.contentstext {
  display: inline-block;
  width: 100%;
  margin: 0.5em 0 3em;
  padding: 10px;
  text-align: center;
  background: lightsteelblue;
  color: white;
  font-size: 24px;
  font-weight: bold;
}
.midashi {
  text-align: center;
  display: inline-block;
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  color: white;
  background: lightsteelblue;
  font-size: 20px;
}
.kaisetu {
  text-align: center;
  display: inline-block;
  width: 100%;
  margin: 1em 0;
  padding: 10px;
  color: #494949;
  font-size: 16px;
}

/* ========== カードグリッド ========== */
img { object-fit: contain; }

.cards {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.card {
  width: 300px;
  height: 370px;
  background-color: white;
  border: 1px solid lightgray;
}
.picture img {
  width: 95%;
  height: 225px;
  margin: auto;
  display: block;
  margin-top: 8px;
  object-fit: cover;
}
.description {
  width: 100%;
  height: 145px;
  padding: 0 12px;
  box-sizing: border-box;
}
.description p {
  font-size: 16px;
  color: dimgray;
}

/* ========== ボタン ========== */
.btn-back {
  background: slategray;
  color: aliceblue;
  border-radius: 50vh;
  padding: 1em 2em 0.8em;
  line-height: 1;
  display: inline-block;
  text-decoration: none;
}

/* ========== スマートフォン対応 ========== */
@media (max-width: 600px) {
  .tmb       { width: 90%; }
  .tmb_img   { width: 85%; }
  .contentstext { font-size: 20px; }
  .midashi   { font-size: 18px; }
  .cards     { flex-direction: column; align-items: center; }
}
