/* タクティカル・ミリタリースタイルのカラースキーム */
:root {
  --primary-dark: #1a1a1a;
  --secondary-dark: #2d2d2d;
  --accent-orange: #ff6b35;
  --accent-green: #4a9d5f;
  --text-light: #e0e0e0;
  --text-muted: #a0a0a0;
  --border-tactical: #3a3a3a;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text-light);
  background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
  background-attachment: fixed;
  line-height: 1.7;
}

/* ナビゲーションバー - タクティカルスタイル */
.navbar {
  background: linear-gradient(to bottom, #2d2d2d, #1a1a1a) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  border-bottom: 2px solid var(--accent-orange);
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-light) !important;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.nav-link {
  font-weight: 600;
  color: var(--text-muted) !important;
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.nav-link:hover {
  color: var(--accent-orange) !important;
  transform: translateY(-2px);
}

.nav-link.active {
  color: var(--accent-orange) !important;
}

/* ナビゲーショントグラーのカスタマイズ */
.navbar-toggler {
  border-color: var(--accent-orange);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 107, 53, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* メインコンテナ - カードスタイル */
.container {
  padding-top: 3rem;
  padding-bottom: 3rem;
  max-width: 900px;
}

article {
  background: rgba(45, 45, 45, 0.9);
  border-radius: 12px;
  padding: 2.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-tactical);
  backdrop-filter: blur(10px);
}

/* 見出しスタイル */
h1 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent-orange);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 2rem;
  text-align: center;
  position: relative;
  padding-bottom: 1rem;
}

h1::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(
    to right,
    transparent,
    var(--accent-orange),
    transparent
  );
}

h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-green);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--accent-green);
  padding-left: 1rem;
}

h3 {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 1px;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

/* セクションスタイル */
section {
  margin-bottom: 2rem;
}

section:not(:last-child) {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border-tactical);
}

/* パラグラフとリンク */
p {
  line-height: 1.9;
  margin-bottom: 1.5rem;
  color: var(--text-light);
  font-size: 1.05rem;
}

a {
  color: var(--accent-orange);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
}

a:hover {
  color: #ff8c5f;
  border-bottom: 2px solid var(--accent-orange);
}

/* 画像スタイル - タクティカルフレーム */
img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 2rem auto;
  border-radius: 8px;
  border: 3px solid var(--border-tactical);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  transition: all 0.4s ease;
}

img:hover {
  transform: scale(1.02);
  border-color: var(--accent-orange);
  box-shadow: 0 12px 32px rgba(255, 107, 53, 0.3);
}

/* リストスタイル */
ul {
  list-style: none;
  padding-left: 0;
}

ul li {
  margin-bottom: 0.8rem;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-muted);
}

ul li::before {
  content: "▸";
  position: absolute;
  left: 0;
  color: var(--accent-orange);
  font-weight: bold;
}

ol {
  padding-left: 1.5rem;
  color: var(--text-light);
}

ol li {
  margin-bottom: 0.8rem;
}

time {
  color: var(--accent-green);
  font-weight: 600;
}

/* テーブルスタイル */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

table th {
  background: var(--secondary-dark);
  color: var(--accent-orange);
  padding: 1rem;
  text-align: left;
  border: 1px solid var(--border-tactical);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

table td {
  padding: 0.8rem 1rem;
  border: 1px solid var(--border-tactical);
  color: var(--text-light);
}

table tr:hover {
  background: rgba(255, 107, 53, 0.1);
}

/* コードブロックスタイル */
code {
  background: var(--primary-dark);
  color: var(--accent-green);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: "Courier New", monospace;
}

pre {
  background: var(--primary-dark);
  color: var(--text-light);
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid var(--border-tactical);
  overflow-x: auto;
  margin: 2rem 0;
}

pre code {
  background: none;
  padding: 0;
}

/* 引用スタイル */
blockquote {
  border-left: 4px solid var(--accent-orange);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-muted);
}

/* フッター */
.footer {
  background: linear-gradient(to top, #2d2d2d, #1a1a1a) !important;
  color: var(--text-muted);
  padding: 1.5rem 0;
  border-top: 2px solid var(--accent-orange);
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.5);
}

.footer a {
  color: var(--accent-orange);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #ff8c5f;
}

.footer img {
  border: none;
  box-shadow: none;
  margin: 0;
}

.footer img:hover {
  transform: none;
  border: none;
}

/* スキップリンク */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--accent-orange);
  color: white;
  padding: 8px 16px;
  text-decoration: none;
  z-index: 100;
  font-weight: 600;
  border-radius: 0 0 4px 0;
}

.skip-link:focus {
  top: 0;
}

/* レスポンシブ調整 */
@media (max-width: 768px) {
  article {
    padding: 1.5rem;
  }

  h1 {
    font-size: 2rem;
    letter-spacing: 2px;
  }

  h2 {
    font-size: 1.5rem;
    letter-spacing: 1px;
  }

  h3 {
    font-size: 1.2rem;
  }

  .container {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}
