/* css/style.css */
:root {
  --color-primary: #6a11cb;
  --color-secondary: #2575fc;
  --color-accent-kansai: #FF6B6B;
  --color-accent-tochigi: #4ECDC4;
  --color-accent-chara: #9D4EDD;
  --color-text: #333;
  --color-text-light: #666;
  --color-bg: #fff;
  --color-bg-light: #f8f9fa;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  --shadow-light: 0 5px 15px rgba(0, 0, 0, 0.08);
  --radius: 20px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Arial', 'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
  background: var(--color-primary); /* グラデーションを単色に変更 */
  color: var(--color-text);
  min-height: 100vh;
  line-height: 1.6;
}

.container {
  max-width: 1200px;
  margin: 20px auto;
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* ヘッダー */
.site-header {
  background: var(--color-accent-kansai); /* グラデーションを単色に変更 */
  color: white;
  padding: 30px 20px;
  text-align: center;
}

.site-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  margin-bottom: 10px;
}

.site-logo {
  margin-bottom: 20px;
}

.site-logo img {
  max-width: 100%;
  height: auto;
}

/* ナビゲーション */
.main-nav {
  margin-top: 20px;
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  list-style: none;
}

.nav-link {
  padding: 10px 20px;
  color: white;
  text-decoration: none;
  border-radius: 25px;
  background: rgba(255, 255, 255, 0.1);
  transition: var(--transition);
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* コントロールパネル */
.control-panel {
  padding: 25px;
  background-color: var(--color-bg-light);
  border-bottom: 2px solid #e9ecef;
}

.controls-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}

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

/* セレクトボックス */
.select-control {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--color-accent-tochigi);
  border-radius: 10px;
  font-size: 16px;
  background-color: white;
  cursor: pointer;
  transition: var(--transition);
}

.select-control:focus {
  outline: none;
  border-color: var(--color-accent-chara);
  box-shadow: 0 0 0 3px rgba(157, 78, 221, 0.1);
}

/* ボタン */
.btn {
  padding: 12px 25px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--color-accent-kansai); /* グラデーションを単色に変更 */
  color: white;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(255, 107, 107, 0.4);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-icon {
  flex-shrink: 0;
}

/* 方言選択 */
.dialect-selector {
  grid-column: 1 / -1;
}

.dialect-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.dialect-btn {
  padding: 12px 20px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  position: relative;
}

.dialect-btn.active {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.dialect-btn:focus {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.dialect-btn--kansai {
  background: #FFD166; /* グラデーションを単色に変更 */
  color: var(--color-text);
}

.dialect-btn--tochigi {
  background: #06D6A0; /* グラデーションを単色に変更 */
  color: white;
}

.dialect-btn--chara {
  background: #EF476F; /* グラデーションを単色に変更 */
  color: white;
}

.dialect-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: bold;
  background: rgba(255, 255, 255, 0.2);
}

/* ニュースセクション */
.news-section {
  padding: 30px;
}

.news-display {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.news-item {
  background: white;
  border-radius: 15px;
  padding: 25px;
  box-shadow: var(--shadow-light);
  border-left: 6px solid;
  transition: var(--transition);
  position: relative;
}

.news-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.news-item--kansai {
  border-color: #FF9A3C;
}

.news-item--tochigi {
  border-color: #118AB2;
}

.news-item--chara {
  border-color: var(--color-accent-chara);
}

.news-date {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.news-title {
  font-size: 1.4rem;
  margin-bottom: 15px;
  line-height: 1.4;
}

.news-title a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s;
}

.news-title a:hover {
  color: var(--color-accent-kansai);
  text-decoration: underline;
}

.news-content {
  line-height: 1.6;
  color: #555;
  font-size: 1.05rem;
}

/* ユーティリティクラス */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.news-placeholder {
  text-align: center;
  padding: 50px 20px;
  font-size: 1.2rem;
  color: var(--color-text-light);
}

/* ローディング＆エラー状態 */
.loading {
  text-align: center;
  padding: 50px;
}

.error-message {
  text-align: center;
  padding: 30px;
  background: #ffe6e6;
  border-radius: 10px;
  color: #d32f2f;
}

/* レスポンシブデザイン */
@media (max-width: 480px) {
  .site-header {
    padding: 20px 15px;
  }
  
  .nav-list {
    flex-direction: column;
    align-items: center;
  }
  
  .news-section {
    padding: 20px 15px;
  }
  
  .news-item {
    padding: 20px 15px;
  }
}