/* 大日本帝国南方軍シンガポール基地 - メインCSS */

/* 基本スタイル・リセット */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Noto Sans JP', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #000;
  color: #f5f5f5;
  line-height: 1.7;
  font-size: 16px;
  text-shadow: 0 0 1px rgba(255, 255, 255, 0.1);
}

/* ヘッダー */
header {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #111, #222);
  padding: 15px 25px;
  border-bottom: 3px solid #ffd700;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.flag-title {
  display: flex;
  align-items: center;
  flex: 2;
}

.flag-title img {
  height: 80px;
  width: auto;
  margin-right: 15px;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.site-title {
  font-size: clamp(20px, 3vw, 28px);
  color: #f5f5f5;
  text-shadow: 0 0 3px rgba(255, 255, 255, 0.3);
  font-weight: 700;
}

/* ナビゲーション */
.links {
  flex: 3;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}

.links a {
  background: linear-gradient(135deg, #ffd700, #ffed4a);
  color: #000;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 6px;
  font-weight: 500;
  font-size: 14px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.links a:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.4);
  background: linear-gradient(135deg, #ffed4a, #ffd700);
}

/* パンくずリスト */
.breadcrumb {
  font-size: 14px;
  color: #bbb;
  background: rgba(17, 17, 17, 0.8);
  padding: 10px 0;
}

.breadcrumb .container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 30px;
}

.breadcrumb a {
  color: #ffd700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  text-decoration: underline;
  color: #ffed4a;
}

/* メインコンテナ */
.container {
  max-width: 1000px;
  margin: 40px auto;
  padding: 30px;
  background: linear-gradient(135deg, #111, #1a1a1a);
  border-left: 5px solid #ffd700;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
  min-height: 500px;
}

/* 見出し */
h1, h2, h3, h4, h5, h6 {
  color: #ffd700;
  font-weight: 700;
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(24px, 4vw, 32px);
  border-bottom: 2px solid #ffd700;
  padding-bottom: 10px;
}

h3 {
  font-size: clamp(20px, 3vw, 24px);
  margin: 25px 0 15px;
}

/* テキスト・リスト */
p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 20px;
  color: #e0e0e0;
}

ul, ol {
  font-size: 16px;
  line-height: 1.8;
  padding-left: 20px;
  margin-bottom: 20px;
}

li {
  margin-bottom: 8px;
}

/* リンク */
a {
  color: #ffd700;
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: #ffed4a;
  text-decoration: underline;
}

/* 日付表示 */
.date {
  font-size: 14px;
  color: #888;
  font-style: italic;
  margin-bottom: 15px;
}

/* 記事リスト */
.article-list {
  max-height: 500px;
  overflow-y: auto;
  padding: 20px;
  border: 1px solid #333;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.3);
}

.article-list::-webkit-scrollbar {
  width: 8px;
}

.article-list::-webkit-scrollbar-track {
  background: #222;
  border-radius: 4px;
}

.article-list::-webkit-scrollbar-thumb {
  background: #ffd700;
  border-radius: 4px;
}

.article-list::-webkit-scrollbar-thumb:hover {
  background: #ffed4a;
}

.article-list article {
  padding: 15px 0;
  border-bottom: 1px solid #333;
}

.article-list article:last-child {
  border-bottom: none;
}

.article-list a {
  font-size: 1.2em;
  font-weight: 500;
  color: #fff;
  display: block;
  margin-bottom: 8px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.article-list a:hover {
  color: #ffd700;
  transform: translateX(10px);
  text-decoration: underline;
}

/* セクション */
section {
  margin-bottom: 50px;
  padding: 20px 0;
}

section:not(:last-child) {
  border-bottom: 1px solid #333;
}

/* イベント項目 */
.event-item {
  background: rgba(255, 215, 0, 0.05);
  padding: 20px;
  border-radius: 8px;
  border-left: 4px solid #ffd700;
  margin-bottom: 20px;
}

.event-item h3 {
  margin: 0 0 10px;
}

.event-item h3 a {
  color: #ffd700;
  font-weight: 600;
}

.event-item .date {
  margin-bottom: 10px;
  color: #aaa;
}

/* FAQセクション */
.faq-item {
  background: rgba(255, 215, 0, 0.03);
  border-left: 4px solid #ffd700;
  padding: 20px;
  margin-bottom: 20px;
  border-radius: 6px;
}

.faq-item h3 {
  color: #ffd700;
  font-size: 1.2em;
  margin-bottom: 10px;
}

.faq-item p {
  color: #e0e0e0;
  margin: 10px 0 0;
}

/* CTAボタン */
.cta-box {
  background: rgba(255, 215, 0, 0.1);
  border-left: 5px solid #ffd700;
  padding: 25px;
  border-radius: 6px;
  margin-top: 30px;
  text-align: center;
}

.cta-box h3 {
  font-size: 1.4em;
  color: #ffd700;
  margin-bottom: 10px;
}

.cta-box p {
  margin-bottom: 15px;
}

.cta-button {
  background: linear-gradient(135deg, #ffd700, #ffed4a);
  color: #000;
  padding: 12px 24px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: inline-block;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
}

/* フッター */
footer {
  background: #111;
  padding: 20px;
  text-align: center;
  border-top: 1px solid #333;
  margin-top: 40px;
  color: #bbb;
}

footer p {
  font-size: 14px;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
  header {
    flex-direction: column;
    gap: 15px;
    text-align: center;
    padding: 20px 15px;
  }

  .flag-title {
    justify-content: center;
    flex: none;
  }

  .flag-title img {
    height: 60px;
  }

  .links {
    justify-content: center;
    flex: none;
  }

  .container, .breadcrumb .container {
    margin: 20px 10px;
    padding: 20px;
  }

  .article-list, .faq-item {
    max-height: 300px;
    padding: 15px;
  }

  .faq-item h3 {
    font-size: 1em;
  }

  .faq-item p {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .links a {
    padding: 8px 12px;
    font-size: 13px;
  }

  .site-title {
    font-size: 18px;
  }

  .container {
    padding: 15px;
  }

  section {
    margin-bottom: 30px;
    padding: 15px 0;
  }

  .cta-button {
    font-size: 14px;
    padding: 10px 16px;
  }
}

/* アクセシビリティ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

a:focus, button:focus, input:focus, textarea:focus, select:focus {
  outline: 2px solid #ffd700;
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-contrast: high) {
  body, .container {
    background: #000;
    color: #fff;
  }

  .container {
    border: 2px solid #ffd700;
  }

  a, h1, h2, h3, h4, h5, h6 {
    color: #ffff00;
  }
}

/* 印刷スタイル */
@media print {
  body, header, .container {
    background: #fff;
    color: #000;
    text-shadow: none;
  }

  header {
    border-bottom: 2px solid #000;
  }

  .container {
    border-left: 3px solid #000;
    box-shadow: none;
  }

  .links {
    display: none;
  }

  a, h1, h2, h3, h4, h5, h6 {
    color: #000;
  }

  a {
    text-decoration: underline;
  }
}