/* ベース設定 */
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-image: url("../img/bg.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  font-family: "Helvetica", "Arial", sans-serif;
  color: #333;
}

span {
  color: #ffa0a0;
}

/* コンテンツボックス */
.content {
  background-color: rgba(0, 0, 0, 0.50);
  max-width: 850px;
  margin: 1rem auto;
  padding: 4px 10px;
/*  border-radius: 6px;*/
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* ヘッダーのスタイル */
.content h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: white;
}

/* 段落スタイル */
.content p {
  line-height: 0.85rem;
  margin-bottom: 10px;
  font-size: 0.85rem;
  color: white;
}

.content table {
  margin: auto;
}


.content th {
/*  line-height: 0.85rem;
  margin-bottom: 10px;*/
  width: 30%;
  font-size: 0.85rem;
  color: #a0a0ff;
}

.content td {
/*  line-height: 0.85rem;
  margin-bottom: 10px;*/
  font-size: 0.85rem;
  color: white;
}

.content a,a:hover,a:visited{
  color: #c0c0ff;
}

.center_txt {
  text-align: center;
}

.contenttitle {
  background-color: rgba(0,0,192,0.50);
  max-width: 850px;
  margin: 0 auto;
  padding: 0 10px;
/*  border-radius: 6px;*/
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.contenttitle h1 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: white;
}


.contentcopyright {
  background-color: rgba(0, 0, 0, 0.20);
  max-width: 600px;
  margin: auto;
  padding: 10px 10px;
/*  border-radius: 6px;*/
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.contentcopyright p {
  line-height: 0.5rem;
  margin: auto;
  font-size: 0.5rem;
  color: white;
}

.top_logo {
  display: block;
  width:80%;
  margin-left: auto;
  margin-right: auto;
}

.top_logo_zn {
  display: block;
  width:35%;
  margin-left: auto;
  margin-right: auto;
}

.video-container {
  position: relative;
  width: 100%;
  max-width: 768px;
  margin: 2rem auto;
  aspect-ratio: 16 / 9; /* modern browsers only */
  background-color: black; /* 読み込み前に黒背景を表示（任意） */
  overflow: hidden;
}

.video-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.icon-wrapper {
  width: 25%;             /* ウインドウサイズに応じて可変 */
  max-width: 250px;
  margin: 0 1em;         /* 中央寄せ */
}

.icon-image {
  width: 100%;
  height: auto;
  display: block;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);  /* 初期は3列 */
  gap: 1rem;
  max-width: 1024px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.screenshot-grid img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.image-wrapper {
  display: flex;               /* 横並びにする */
  justify-content: center;     /* 横方向の中央寄せ */
  gap: 20px;                    /* 画像間の間隔 */
  flex-wrap: wrap;              /* 画面幅が狭い場合は折り返す */
  margin: 2rem 0;
}

.image-wrapper img {
  max-width: 100%;             /* 画面幅に応じて縮小 */
  height: auto;                /* アスペクト比を維持 */
  max-height: 64px;           /* 必要なら最大高さを制限 */
}

.image-wrapper_s {
  display: flex;               /* 横並びにする */
  justify-content: center;     /* 横方向の中央寄せ */
  gap: 20px;                    /* 画像間の間隔 */
  flex-wrap: wrap;              /* 画面幅が狭い場合は折り返す */
  margin: 2rem 0;
}

.image-wrapper_s img {
  max-width: 100%;             /* 画面幅に応じて縮小 */
  height: auto;                /* アスペクト比を維持 */
  max-height: 32px;           /* 必要なら最大高さを制限 */
}


/* レスポンシブ対応：スマートフォン向け */
@media screen and (max-width: 600px) {
/*@media (max-width: 600px) {*/
  .content {
    margin: 1rem auto;
 /*   margin: 2rem 1rem;*/
/*    padding: 1.5rem;*/
  }

  .content h1 {
    font-size: 1.5rem;
  }

  .content p {
    font-size: 0.8rem;
  }

  .contenttitle h1 {
    font-size: 1.1rem;
    margin-bottom: 0.9rem;
  }
  .screenshot-grid {
    grid-template-columns: 1fr;
  }
}

/* さらに小さい画面（500px以下）用の調整 */
@media screen and (max-width: 500px) {
  .content {
/*    padding: 1rem;*/
  }

  .content h1 {
    font-size: 1.3rem;
  }

  .content p {
    font-size: 0.7rem;
  }

  .contenttitle h1 {
    font-size: 1.0rem;
    margin-bottom: 0.8rem;
  }
  .screenshot-grid {
    grid-template-columns: 1fr;
  }
}
