﻿/* =========================================
   B.css ベース（共通デザイン・変数）
   ========================================= */
:root {
  /* B.cssの定義 */
  --main-color: #00c8c8;
  --dark-bg: #121212;
  --dark-surface: #1e1e1e;
  --dark-text: #e0e0e0;
  --dark-sub-text: #a0a0a0;
  --border-color: #333333;

  /* C.cssからの互換性用マッピング */
  --primary-color: var(--main-color);
  --background-color: var(--dark-bg);
  --card-background-dark: var(--dark-surface);
  --text-color-dark: var(--dark-text);
  --border-color-dark: var(--border-color);

  /* C独自の変数 */
  --code-background-dark: #2a2a2a;
  --warning-color: #e74c3c;
  --contact-color: #27ae60;
  --modal-bg-light: white;
  --text-color-light: #333;
  --border-color-light: #eee;
}

/* 基本設定 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Arial', 'Noto Sans JP', sans-serif;
  background-color: var(--dark-bg);
  color: var(--dark-text);
  line-height: 1.6;
  padding-top: 80px;
  /* ヘッダー固定用 */
}

a {
  color: var(--main-color);
  text-decoration: none;
  transition: color 0.3s;
}

a:hover {
  text-decoration: underline;
}

/* ヘッダー (B準拠) */
header {
  background-color: var(--dark-surface);
  color: var(--dark-text);
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 20px;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 40px;
  margin-right: 10px;
}

.logo h1 {
  font-size: 1.5em;
  color: var(--main-color);
}

.global-nav ul {
  list-style: none;
  display: flex;
}

.global-nav li {
  margin-left: 20px;
}

.global-nav a {
  color: var(--dark-text);
  padding: 5px 10px;
  transition: color 0.3s;
}

.global-nav a:hover {
  color: var(--main-color);
  text-decoration: none;
}

/* メインラッパー */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* フッター (B準拠) */
footer {
  background-color: var(--dark-surface);
  color: var(--dark-sub-text);
  border-top: 1px solid var(--border-color);
  padding: 20px;
  text-align: center;
  font-size: 0.9em;
  margin-top: 50px;
}

.footer-content nav a {
  color: var(--dark-sub-text);
  margin: 0 10px;
}

.footer-content nav a:hover {
  color: var(--main-color);
}

/* =========================================
   C.css コンテンツ固有スタイル
   ========================================= */

/* ページヘッダー（製品画像など） */
.main-header {
  margin-bottom: 40px;
  text-align: center;
  /* ▼▼▼ 修正1: 幅を制限して中央寄せ ▼▼▼ */
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  /* ▲▲▲ 修正1 ここまで ▲▲▲ */
}

.main-header h1 {
  color: var(--main-color);
  font-size: 2.8em;
  margin-top: 10px;
  margin-bottom: 5px;
  text-shadow: 0 0 5px rgba(0, 200, 200, 0.2);
}

.subtitle {
  font-size: 1.2em;
  opacity: 0.8;
}

/* 画像スタイル */
.addon-image,
.image-gallery img,
.link-to-top img {
  max-width: 100%;
  height: auto;
  /* ▼▼▼ 修正2: 角丸を削除（0にする） ▼▼▼ */
  border-radius: 0;
  /* ▲▲▲ 修正2 ここまで ▲▲▲ */
  margin-bottom: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.image-gallery img {
  display: block;
  margin: 20px auto;
}

/* セクション共通スタイル */
.info-section {
  margin: 40px 0;
}

.section-header {
  padding: 15px;
  font-size: 1.5em;
  font-weight: bold;
  color: var(--dark-bg);
  /* 文字色を背景色に合わせて反転 */
  border-radius: 6px 6px 0 0;
  margin: 0;
  text-align: left;
}

.primary-bg {
  background: var(--main-color);
}

.warning-bg {
  background: var(--warning-color);
  color: white;
}

.contact-bg {
  background: var(--contact-color);
  color: white;
}

.section-content {
  background-color: var(--dark-surface);
  color: var(--dark-text);
  padding: 20px;
  border-radius: 0 0 6px 6px;
  text-align: left;
  border: 1px solid var(--border-color);
  min-height: 100px;
}

/* セクション内の見出し調整 */
.section-content h2,
.section-content h3 {
  color: var(--dark-text);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 5px;
  margin-top: 25px;
  text-align: left;
  font-size: 1.5em;
}

.section-content h4 {
  color: var(--main-color);
  margin-top: 15px;
}

/* リストスタイル */
.list-dots,
.sound-list {
  list-style: none;
  padding-left: 0;
}

.list-dots li::before,
.sound-list li::before {
  content: "•";
  color: var(--main-color);
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

.sound-list li {
  margin-bottom: 5px;
}

/* コマンドスタイル */
.command-section {
  font-size: 1em;
}

.command-group {
  margin-bottom: 20px;
  border-left: 3px solid var(--main-color);
  padding-left: 15px;
}

.command-code {
  display: block;
  background-color: var(--code-background-dark);
  padding: 10px;
  border-radius: 4px;
  font-family: monospace;
  color: var(--dark-text);
  overflow-x: auto;
  margin: 10px 0;
}

.inline-code {
  background-color: var(--code-background-dark);
  padding: 2px 5px;
  border-radius: 3px;
  font-family: monospace;
  color: var(--main-color);
}

.note {
  font-size: 0.9em;
  opacity: 0.7;
  margin-top: 15px;
}

/* 警告セクションの調整 */
.warning-content h2 {
  color: var(--warning-color);
  border-bottom: 1px solid var(--warning-color);
}

.warning-item h3 {
  color: var(--warning-color);
  margin-top: 20px;
  border-bottom: none;
}

/* 問い合わせiframe */
.contact-section iframe {
  border: 1px solid var(--contact-color);
  border-radius: 4px;
}

/* ダウンロードボタン */
.download-container {
  margin: 50px 0;
  text-align: center;
}

.download-button {
  padding: 20px 40px;
  font-size: 2em;
  font-weight: bold;
  color: white;
  /* ボタン文字は白 */
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.1s ease;
  width: 100%;
  max-width: 750px;
  box-shadow: 0 5px 15px rgba(0, 200, 200, 0.4);
}

.primary-bg-button {
  background-color: var(--main-color);
}

.download-button:hover {
  background-color: #00aaaa;
  transform: translateY(-2px);
  box-shadow: 0 7px 20px rgba(0, 200, 200, 0.6);
}

/* 戻るリンク */
.link-to-top {
  text-align: center;
  margin: 40px 0;
}

.link-to-top img {
  max-width: 100%;
  height: auto;
  /* border-radiusは上の共通設定で0になっています */
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
  body {
    padding-top: 110px;
  }

  .header-content {
    flex-direction: column;
    padding: 10px;
  }

  .logo {
    margin-bottom: 10px;
  }

  .global-nav ul {
    justify-content: center;
    flex-wrap: wrap;
  }

  .global-nav li {
    margin: 5px 10px;
  }

  .main-header h1 {
    font-size: 2em;
  }

  .download-button {
    font-size: 1.5em;
    padding: 15px 30px;
  }

  .section-header {
    font-size: 1.3em;
  }
}

/* ====================================
   モーダル (ポップアップ) スタイル
   ==================================== */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  overflow-y: auto;
}

.modal-content.modal-white-bg {
  background-color: var(--modal-bg-light);
  color: var(--text-color-light);
  padding: 30px;
  border-radius: 10px;
  max-width: 800px;
  width: 90%;
  box-shadow: 0 0 20px rgba(0, 200, 200, 0.5);
  position: relative;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-align: left;
}

.modal-close-button {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 2em;
  font-weight: bold;
  color: var(--main-color);
  cursor: pointer;
  border: none;
  background: none;
  line-height: 1;
}

.modal-body {
  flex-grow: 1;
  overflow-y: auto;
  padding-right: 15px;
  margin-bottom: 20px;
  scrollbar-color: var(--main-color) var(--border-color-light);
  scrollbar-width: thin;
}

.agree-download-button {
  padding: 20px 40px;
  font-size: 1.8em;
  font-weight: bold;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: not-allowed;
  opacity: 0.4;
  transition: all 0.3s ease;
  background-color: var(--main-color);
  width: 100%;
  max-width: 750px;
}

.agree-download-button.enabled {
  cursor: pointer;
  opacity: 1;
  box-shadow: 0 5px 15px rgba(0, 200, 200, 0.4);
}

.link-to-top-button {
  padding: 10px 20px;
  font-size: 1.2em;
  font-weight: bold;
  color: white;
  background-color: var(--main-color);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.1s ease;
  box-shadow: 0 4px 10px rgba(0, 200, 200, 0.3);
}