/* ============================================
   QZS-6 共通スタイル
   7機体制ページ内のqzs-6コンテンツ用
============================================ */

/* メインラッパー */
.qzs6-wrapper {
  background: #000;
  color: #fff;
  padding: 4rem 0;
}

.qzs6-wrapper.style3 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #f7f7f7;
}

/* ページヘッダー */
.qzs6-header {
  text-align: center;
  margin-bottom: 3rem;
}

.qzs6-header__title {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff;
}

.qzs6-header__description {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  opacity: 0.9;
  color: #fff;
}

/* コンテナ */
.qzs6-container {
  max-width: 1052px;
  margin: 0 auto;
  padding: 0 2rem;
}

@media (max-width: 576px) {
  .qzs6-container {
    padding: 0 1rem;
  }
}

/* リーフセクション（コンテンツ領域） */
.qzs6-leaf {
  background: transparent;
  padding: 2rem;
}

.qzs6-wrapper.style3 .qzs6-leaf {
  background: rgba(255, 255, 255, 0.95);
  color: #333;
}

.qzs6-leaf h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 2rem 0 1rem;
  color: #fff;
  border-bottom: 2px solid #667eea;
  padding-bottom: 0.5rem;
}

.qzs6-leaf h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1.5rem 0 1rem;
  color: #fff;
}

.qzs6-leaf p,
.leaf p {
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: #fff;
}

/* リンク内のp要素は青色に上書き */
.qzs6-leaf a p,
.leaf a p {
  color: #6bb6ff;
}

.qzs6-leaf a:hover p,
.leaf a:hover p {
  color: #a3d5ff;
}

.qzs6-leaf hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin: 2rem 0;
}

/* 画像 */
.qzs6-image {
  display: block;
  width: 100%;
  height: auto;
}

.qzs6-image.fit {
  width: 100%;
  margin: 2rem 0;
}

/* links.html用の画像スタイル */
.leaf.align-center .image.fit {
  display: block;
  max-width: 680px;
  margin: 0 auto;
}

.leaf.align-center .image.fit img {
  width: 100%;
  height: auto;
  display: block;
}

.qzs6-image + .caption,
.caption {
  display: block;
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.5rem;
  font-style: italic;
}

/* テーブル */
.qzs6-table-wrapper {
  overflow-x: auto;
  margin: 2rem 0;
}

.qzs6-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.qzs6-table td {
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  vertical-align: top;
}

.qzs6-table td:first-child {
  font-weight: 700;
  background: rgba(255, 255, 255, 0.1);
  width: 30%;
}

@media (max-width: 768px) {
  .qzs6-table td:first-child {
    width: 40%;
  }
}

/* リスト */
.qzs6-leaf ul {
  list-style-type: disc;
  padding-left: 1.5rem;
  margin: 1rem 0;
}

.qzs6-leaf ul li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.qzs6-leaf ul li a {
  color: #6bb6ff;
  text-decoration: none;
  transition: color 0.3s ease;
}

.qzs6-leaf ul li a:hover {
  color: #a3d5ff;
  text-decoration: underline;
}

/* リンク内のH3要素 (links.htmlなど) */
.qzs6-leaf a h3,
.leaf a h3 {
  color: #fff;
  transition: color 0.3s ease;
}

/* センタリング用クラス */
.qzs6-leaf.align-center,
.leaf.align-center {
  text-align: center;
}

/* グリッドレイアウト（旧skelの.row代替） */
.qzs6-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

.qzs6-grid--2col {
  grid-template-columns: repeat(2, 1fr);
}

.qzs6-grid--3col {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
  .qzs6-grid--2col,
  .qzs6-grid--3col {
    grid-template-columns: 1fr;
  }
}

/* poster.html用: 3列グリッド */
.poster_tn .qzs6-grid {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 768px) {
  .poster_tn .qzs6-grid {
    grid-template-columns: 1fr;
  }
}

/* カラムクラス（旧skelのu系クラス代替） */
.qzs6-col-6 {
  grid-column: span 6;
}

/* フェードインアニメーション */
.qzs6-fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.qzs6-fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ボタン */
.qzs6-button {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: #667eea;
  color: #fff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 700;
  transition: background 0.3s ease;
}

.qzs6-button:hover {
  background: #5568d3;
}

/* アクション（ボタンラッパー） */
.qzs6-actions {
  display: flex;
  gap: 1rem;
  margin: 2rem 0;
}

.qzs6-actions.align-center {
  justify-content: center;
}
