div.space8{padding-left:8px;}
div.space16{padding-left:16px;}
div.space32{padding-left:32px;}
div.space64{padding-left:64px;}

body{
border:black 2px solid;
line-height:130%;
}

a.dl:hover{
	border-bottom:red 1px solid;
  font-weight:bold;
}

div.title1{
}
div.title2{
  padding:5px;
  padding-left:16px;
  background-color:#80c0ff;
  color:#000000;
  font-weight:bold;

}

div.content{
padding-left:16px;
line-height:130%;
}

span.red{
  border-bottom:#ff0000 solid 2px;
  color:#000000;
}

div.top{
  background-color:#000000;
  font-weight:bold;
  font-size:24pt;
  color:#ffffff;
  padding:12px;
  border-bottom:#ff0000 solid 2px;
}

div.bottom{
  background-color:#000000;
  padding:5px;
  color:#ffffff;
  border-top:#000000 solid 2px;
}


div.tab{
    background-color:#8F3048;
    color: #ffffff;
    border-bottom-style: solid;
    top: 0px;
    left: 0px;
    border-bottom-width: 1px;
    border-left-style: solid;
    border-left-width: 1px;
    border-right: 1px;
    border-right-style: solid;
    border-right-width: 1px;
    padding-left:5px;
    padding-right:5px;
    padding-top:2px;
    padding-bottom:2px;
    font-weight:bold;
    font-size:normal;
}

div.tab a{
    color:#ffffff;
}

div.tab a:hover{
    color:#000000;
}

/* 既存の .top はそのまま */
.top {
  background: #0066cc;
  color: white;
  text-align: center;
  padding: 12px;
  font-weight: bold;
  font-size: 1.2em;
}


/* iframe 置き換え用：サムネイル動画リンク */
.video-thumb {
  margin: 15px 0;
  text-align: center;
  position: relative;
  width: 100%;
  max-width: 320px;
  flex: 0 0 320px; /* 横並び用 */
}

.video-thumb img {
  width: 100%;
  height: auto;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s;
}

.video-thumb a {
  text-decoration: none;
  color: inherit;
  display: block;
}

.video-thumb:hover img {
  transform: scale(1.03);
}

.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 102, 204, 0.8);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9em;
  font-weight: bold;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.video-thumb:hover .play-icon {
  opacity: 1;
}

.video-thumb p {
  margin: 8px 0 0;
  font-size: 0.9em;
  color: #444;
  line-height: 1.4;
}

/* 横並び用コンテナ */
.video-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin: 20px 0;
}