@font-face {
  font-family: "マルミーニャフォント";
  src: url("x12y12pxMaruMinya.ttf") format("truetype");
}

/* ----------------------------------------
   全体レイアウト・背景
---------------------------------------- */
body {
  margin: 0;
  background-color: #333631;
}

.top-text {
  font-family: "マルミーニャフォント", cursive;
  color: white;
  font-size: 3rem;
  text-align: center;
  width: 70%;
  max-width: 800px;
  line-height: 1.8;
  margin: 1em auto;
}

.goth-text {
  font-family: "マルミーニャフォント", cursive;
  color: white;
  font-size: 1.2rem;
  background-color: rgba(240, 240, 240, 0.5);
  padding: 1.2em;
  margin: 1.5em auto;
  width: 90%;
  max-width: 800px;
  box-shadow: 0 0 8px rgba(132, 147, 208, 0.6);
  line-height: 1.8;
  text-align: left;
  border-radius: 6px;
}

/* ----------------------------------------
   動画設定（レスポンシブ対応）
---------------------------------------- */
video {
  display: block;
  margin: 0 auto;
  width: 100%;
  height: auto;
  max-width: 640px;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(132, 147, 208, 0.4);
}

/* ----------------------------------------
   画像ギャラリー（4枚並び）
---------------------------------------- */
:root {
  --frame-width: 220px;
  --frame-height: 220px;
  --gap: 18px;
  --frame-border: 2px;
}

.omuraisu-photo {
  display: flex;
  gap: var(--gap);
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  margin-top: 30px;
}

.frame {
  width: var(--frame-width);
  height: var(--frame-height);
  background: rgba(255, 255, 255, 0.0);
  border-radius: 8px;
  overflow: hidden;
  flex: 0 0 auto;
}

.frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 220ms ease;
}

.frame:hover img {
  transform: scale(1.03);
}

/* ----------------------------------------
   その他ギャラリー（縦比率5:7）
---------------------------------------- */
.photo-gallery {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.photo-gallery img {
  aspect-ratio: 5 / 7;
  width: 180px;
  object-fit: contain;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid #888;
  border-radius: 6px;
}

/* ----------------------------------------
   スマホ対応
---------------------------------------- */
@media (max-width: 900px) {
  :root {
    --frame-width: 180px;
    --frame-height: 180px;
  }
}

@media (max-width: 640px) {
  .top-text {
    font-size: 1.8rem;
  }

  .goth-text {
    font-size: 1rem;
    padding: 1em;
  }

  .omuraisu-photo {
    justify-content: space-around;
  }

  :root {
    --frame-width: 46vw;
    --frame-height: 46vw;
  }

  video {
    max-width: 100%;
  }
}


/* ----------------------------------------
   動画を安定サイズで中央表示
---------------------------------------- */
.video-wrapper {
  position: relative;
  width: 90%;
  max-width: 640px;     /* 最大幅 */
  margin: 0 auto 2em auto;
  aspect-ratio: 4 / 3; /* 動画比率固定（重要） */
  background-color: #000; /* 読み込み前に黒背景 */
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 8px rgba(132, 147, 208, 0.4);
}

.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

