﻿body {
  font-family: Arial, sans-serif;
  line-height: 1.8;
  margin: 0;
  padding: 0;
  background-color: #121212;
  color: #e0e0e0;
}

.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

/* 固定ヘッダー */
.fixed-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(18, 18, 18, 0.95);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  height: 60px;
  display: flex;
  margin-bottom: 20px;
  align-items: center; /* 垂直方向の中央揃え */
  justify-content: center; /* 横方向の中央揃えを追加 */
}

.global-menu ul {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0;
  padding: 10px 0;
  list-style: none;
  flex-wrap: nowrap; /* 折り返し防止 */
  overflow-x: auto; /* スクロール可能にする */
  white-space: nowrap; /* テキストの折り返しを防ぐ */
  font-size: 14px; /* 文字サイズを小さくする */
}


.global-menu li {
  margin: 0 15px;
}

.global-menu a {
  color: #bb86fc;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.global-menu a:hover {
  color: #ffffff;
}

/* お知らせ:グローバルメニューより前面に表示 */
.notice-collapsible {
  position: relative;
  z-index: 10; /* メニューより下に表示 */
  background-color: #ffcc80; /* 優しいオレンジ */
  color: #000;
  font-size: 0.9em;
  margin-top: 60px; /* メニューと干渉しないよう調整 */
}


/* お知らせ*/
.notice-content-collapsible {
  padding: 15px;
  display: none;
  line-height: 1.5;
}
.notice-content-collapsible.active {
  display: block;
}

.notice-header {
  padding: 10px 15px;
  background-color: #ffa726;
  cursor: pointer;
  user-select: none;
  font-weight: bold;
}

.notice-header:hover {
  background-color: #fb8c00;
}

.notice-content-collapsible {
  padding: 15px;
  display: none;
  line-height: 1.5;
}

.notice-content-collapsible a {
  color: #0000ee;
  text-decoration: underline;
}


/* ページ先頭の余白 */
body {
  padding-top: 60px;
}

/* ダウンロードリンク */
.download-container {
  text-align: center;
  margin-bottom: 20px;
}

/* 既存の download-link を再利用 */
.download-link {
  background: #007bff;
  color: #fff;
  padding: 8px 12px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.download-link:hover {
  background: #0056b3;
}

.hero-download {
  display: inline-block;
  margin-top: 20px;  /* 余白など調整 */
  font-size: 1.1em;  /* 文字サイズなど調整 */
}

/* 見出し */
h1, h2, h3, h4 {
  color: #bb86fc;
}

/* テキスト */
p, ul, ol, table {
  text-align: justify;
}

/* 重要情報 */
.important {
  background-color: #3700b3;
  border-left: 5px solid #bb86fc;
  padding: 15px;
  margin: 20px 0;
  color: #fff;
}

/* リスト */
ul, ol {
  margin-left: 20px;
}

/* テーブル */
table {
  text-align: center; 
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
}

table, th, td {
  border: 1px solid #444;
}

th, td {
  padding: 10px;
  text-align: left;
}

th {
  background-color: #222;
}

/* リンク */
a {
  color: #bb86fc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* 画像センター寄せ */
.center-image {
  display: block;
  margin: 20px auto;
  max-width: 100%;
  height: auto;
}

/* 動画コンテナ */
.video-container {
  position: relative;
  max-width: 720px;
  margin: 40px auto;
  border: 2px solid rgba(255, 0, 0, 0.3);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
}

video {
  width: 100%;
  height: auto;
  display: block;
}

.video-overlay {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  padding: 5px 10px;
  font-size: 14px;
  border-radius: 5px;
}

.youtube-container {
  text-align: center; 
  margin: 30px 0;
}

.youtube-container iframe {
  display: inline-block;
}

/* ライセンスボックス */
.license-box {
  background-color: #1e1e1e;
  border: 1px solid #444;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  font-family: 'Courier New', monospace;
  color: #e0e0e0;
  overflow-x: auto;
}

pre {
  margin: 0;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* ヒーローセクション */
.hero {
  position: relative;
  height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 3em;
  margin: 0;
}

.hero p {
  font-size: 1.5em;
  margin: 10px 0;
}

.hero button {
  padding: 10px 20px;
  font-size: 1em;
  border: none;
  background: #007bff;
  color: #fff;
  cursor: pointer;
}

/* 背景ビデオ */
.background-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}


/* 関連ツール */
.related-tools-list {
  list-style: none;
  padding-left: 0;
  margin: 0;
}

.related-tools-item {
  background-color: #1e1e1e;
  border: 1px solid #444;
  border-radius: 8px;
  padding: 12px 15px;
  margin: 12px 0;
}

.related-tools-item a {
  font-weight: bold;
}

.related-tools-desc {
  margin: 6px 0 0 0;
  font-size: 0.95em;
  color: #cccccc;
}

/* フッター */
.site-footer {
  margin-top: 40px;
  padding: 20px 0 10px;
  text-align: center;
  font-size: 0.9em;
  color: #888888;
  border-top: 1px solid #333333;
}