body {
  font-family: Alegreya, serif;
  font-size: 15px;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
  color: #4b4b4b;
  max-width: 800px;
  margin: 0 auto;
  margin-top: 150px;
  margin-bottom: 270px; 
}

body {
  background-color: #f3f3f3;
}

/* リンクの色と下線 */
a {
  color: #4b4b4b;
  text-decoration: none;
}

.custom-font {
  font-size: 1.5em;
}

/* 例: 600px以下の場合はフォントサイズを小さくする */
@media screen and (max-width: 640px) {
  body {
    font-size: 11px;
    max-width: 100%; /* 画面幅いっぱいに広がるように調整 */
    padding: 30px; /* 余白やパディングの調整 */
    margin-top: 50px;
    margin-bottom: 120px; 
  }
}

@media screen and (max-width: 840px) and (orientation: landscape) {
  body {
    padding-left: 60px; /* 左側に余白を追加 */
    padding-right: 60px; /* 右側の余白も少し調整 */
  }
}

/* smartPhone */
@media screen and (max-width: 640px) {
  img {max-width:100%;}
}

@media (prefers-color-scheme: dark) {
  body {
    background-color: #333;
    color: #fafafa;
  }
  a {
    color: #fafafa;
  }
  img {
    filter: grayscale(0%);
  }
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  .video-container {
      padding: 10px; /* 画面が狭い場合は余白を減らす */
  }
}

/* レスポンシブicon対応 */
@media (prefers-color-scheme: dark) {
  .dark-mode-icon {
    fill: white; /* または color: white; */
  }
}

.video-container-1920 {
  width: 50vw;
  position: relative;
  left: 50%;
  right: 30%;
  transform: translateX(-50%);
  max-width:900px;
}

@media (max-width: 768px) {
  .video-container-1920 {
    width: 95vw;
    position: relative;
    left: 50%;
    right: 30%;
    transform: translateX(-50%);
    max-width:700px;
  }
}

.video-container-1080 {
  width: 90vw;
  position: relative;
  left: 50%;
  right: 30%;
  transform: translateX(-50%);
  max-width:1200px;
}

@media (max-width: 768px) {
  .video-container-1080 {
    width: 95vw;
    position: relative;
    left: 50%;
    right: 30%;
    transform: translateX(-50%);
    max-width:850px;
  }
}

