/**
 * よこすかコンサートNavi スタイルシート
 * 洗練されたUI/UXとアクセシビリティを実現
 * 
 * 推奨モジュール分割:
 * - base.css（リセット＋基本タイポグラフィ）
 * - variables.css（変数・カスタムプロパティ）
 * - layout.css（コンテナ、グリッド、レスポンシブ基盤）
 * - components/（カード、ボタン、モーダルなど）
 * - pages/（ページ固有のスタイル）
 * - utilities.css（汎用クラス）
 */

/* ======= 1. 基本変数と設定 ======= */
:root {
  /* カラーパレット */
  --color-primary: #2563a9;      /* 明るい青 */
  --color-primary-light: #3378c5; /* ホバー用の明るい青 */
  --color-primary-dark: #1a4b84;  /* ダークモード用の暗い青 */
  --color-accent: #e74c3c;       /* アクセント色（赤） */
  --color-accent-light: #f86e5d; /* ホバー用の明るい赤 */
  --color-background: #f5f7fa;   /* 背景色 */
  --color-card: #ffffff;         /* カード背景 */
  --color-text: #2d3748;         /* 本文テキスト */
  --color-text-light: #718096;   /* 薄いテキスト */
  --color-border: #e2e8f0;       /* 境界線 */
  --color-success: #2ecc71;      /* 成功メッセージ */
  --color-error: #e74c3c;        /* エラーメッセージ */
  --color-warning: #f39c12;      /* 警告メッセージ */
  
  /* 余白・スペーシング */
  --space-xs: 0.25rem;   /* 4px */
  --space-sm: 0.5rem;    /* 8px */
  --space-md: 1rem;      /* 16px */
  --space-lg: 1.5rem;    /* 24px */
  --space-xl: 2rem;      /* 32px */
  --space-xxl: 3rem;     /* 48px */
  
  /* シャドウ */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 8px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.08);
  --shadow-lg: 0 10px 15px rgba(0,0,0,0.04), 0 4px 6px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px rgba(0,0,0,0.04), 0 8px 10px rgba(0,0,0,0.05);
  
  /* アニメーション */
  --transition-fast: 150ms;
  --transition-normal: 250ms;
  --transition-slow: 350ms;
  
  /* ブレークポイント */
  --breakpoint-sm: 576px;  /* スマホ */
  --breakpoint-md: 768px;  /* タブレット */
  --breakpoint-lg: 992px;  /* 小型デスクトップ */
  --breakpoint-xl: 1200px; /* 大型デスクトップ */
  
  /* 丸みを帯びた角 */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 9999px;
}

/* ダークモード変数 */
.dark-mode {
  --color-primary: #3378c5;
  --color-primary-light: #4a8dd9;
  --color-primary-dark: #1a4b84;
  --color-background: #1a202c;
  --color-card: #2d3748;
  --color-text: #f7fafc;
  --color-text-light: #a0aec0;
  --color-border: #4a5568;
}

/* ======= 2. 基本スタイル ======= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Noto Sans JP', sans-serif;
}

body {
  background-color: var(--color-background);
  color: var(--color-text);
  line-height: 1.6;
  font-weight: 400;
  transition: background-color var(--transition-normal);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* タイポグラフィの基本スタイル */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--space-md);
}

h1 { font-size: 2rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  margin-bottom: var(--space-md);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-light);
}

/* ======= 3. ヘッダースタイル ======= */
header {
  background-color: var(--color-primary);
  color: white;
  padding: var(--space-md) 0;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background-color var(--transition-normal), box-shadow var(--transition-normal);
}

.header-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 15px 0 5px;
  gap: 8px;
}

/* サイトタイトルとタグライン */
.title-container {
  text-align: center;
  margin-bottom: 5px;
  width: 100%;
}

.site-title {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: 0.03em;
  line-height: 1.2;
}

.site-title a {
  color: white;
  text-decoration: none;
  position: relative;
  display: inline-block;
}

.site-title a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: white;
  transition: width var(--transition-normal);
}

.site-title a:hover::after {
  width: 100%;
}

.site-tagline {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0 0 5px 0;
  line-height: 1.2;
  font-weight: normal;
}

/* ナビゲーションリンク */
.nav-links {
  display: flex;
  gap: 8px;
  width: 100%;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--space-sm);
}

.nav-links a {
  display: inline-block;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
  text-align: center;
  font-weight: 500;
  margin: 0 4px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative; 
  overflow: hidden;
}

.nav-links a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background-color: rgba(255,255,255,0.1);
  transition: transform var(--transition-normal);
  transform: translateX(0);
  z-index: 1;
}

.nav-links a:hover::before {
  transform: translateX(100%);
}

.nav-links a:hover:not(.post-button) {
  background-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.nav-links a.active-nav-link {
  background-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  font-weight: 700;
}

.post-button {
  background-color: var(--color-accent);
  color: white;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.post-button:hover {
  background-color: var(--color-accent-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* ======= 4. メインコンテンツスタイル ======= */
main {
  padding: 0.5rem 0;
  min-height: calc(100vh - 180px);
}

/* ======= 5. フィルタリングとナビゲーション ======= */
.filter-section {
  background-color: var(--color-card);
  padding: 8px 10px;
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
  transition: box-shadow var(--transition-normal);
}

.filter-section:hover {
  box-shadow: var(--shadow-md);
}

.filter-group {
  display: flex;
  align-items: center;
  min-width: auto;
  flex: 0 1 auto;
}

.filter-section label {
  white-space: nowrap;
  margin-right: 5px;
  font-weight: 500;
}

.filter-section select {
  min-width: 120px;
  max-width: 100%;
}

.filter-section select,
.filter-section input[type="text"] {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background-color: var(--color-card);
  color: var(--color-text);
  font-size: 0.95rem;
  min-width: 120px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.filter-section select:hover,
.filter-section input[type="text"]:hover {
  border-color: var(--color-primary-light);
}

.filter-section select:focus,
.filter-section input[type="text"]:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 169, 0.2);
}

/* ======= 6. 検索機能スタイル ======= */
.search-container {
  flex: 1;
  min-width: 200px;
  margin-right: var(--space-md);
}

.search-input-wrapper {
  position: relative;
  display: flex;
  width: 100%;
}

.search-input {
  flex: 1;
  padding: var(--space-sm) var(--space-md);
  padding-right: 70px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background-color: var(--color-card);
  color: var(--color-text);
  font-size: 0.95rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  width: 100%;
}

.search-input:hover {
  border-color: var(--color-primary-light);
}

.search-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 169, 0.2);
}

.search-button,
.clear-search-button {
  position: absolute;
  height: 100%;
  background: none;
  border: none;
  cursor: pointer;
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}


.search-button {
  width: 35px;
  right: 10px;
  color: var(--color-text-light);
}

.clear-search-button {
  height: 24px;
  width: 24px;
  background-color: #718096;
  border-radius: 50%;
  color: white;
  right: 45px;
  top: 50%;
  transform: translateY(-50%);
}

.search-button:hover {
  color: var(--color-primary);
}

.clear-search-button:hover {
  background-color: #4A5568;
}

.search-icon {
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24' stroke='%23718096' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.clear-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24' stroke='white' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.search-result-info {
  display: none;
  background-color: var(--color-card);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  margin: var(--space-md) 0;
  font-size: 0.9rem;
  color: var(--color-text);
  text-align: left;
  animation: fadeIn var(--transition-normal);
}

.search-result-count {
  font-weight: 600;
  color: var(--color-primary);
}

.search-keyword {
  font-weight: 600;
  font-style: italic;
}

.search-empty-result {
  text-align: center;
  padding: var(--space-xl);
  color: var(--color-text-light);
}

.recent-searches {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--color-card);
  border: 1px solid var(--color-border);
  border-top: none;
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  box-shadow: var(--shadow-md);
  z-index: 100;
  max-height: 200px;
  overflow-y: auto;
  display: none;
}

.recent-search-item {
  padding: var(--space-sm) var(--space-md);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.recent-search-item:hover {
  background-color: rgba(0,0,0,0.05);
}

.recent-search-item .search-time {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-left: var(--space-sm);
}

/* ======= 7. コンサートカード基本スタイル ======= */
.concert-cards {
  display: grid;
  margin-top: 10px;
  gap: var(--space-md);
  grid-template-columns: repeat(6, 1fr);
}

/* カードの基本構造 - aspect-ratio使用（モダンブラウザ向け） */
.concert-card {
  position: relative;
  width: 100%;
  /* モダンブラウザ向け */
  aspect-ratio: 1 / 1.414;
  /* 旧ブラウザ向けフォールバック */
  height: 0;
  padding-bottom: 141.4%; /* A4縦比率のフォールバック */
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* aspect-ratioがサポートされている場合、paddingを上書き */
@supports (aspect-ratio: 1 / 1) {
  .concert-card {
    height: auto;
    padding-bottom: 0;
  }
}

.concert-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* カード画像 */
.concert-card .card-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-position: center;
  background-size: cover;
}

/* カードコンテンツエリア */
.concert-card .card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: auto;
  min-height: 110px;
  padding: 12px 10px 8px;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.9) 15%,
    rgba(0, 0, 0, 0.7) 50%,
    rgba(0, 0, 0, 0.4) 75%,
    rgba(0, 0, 0, 0.1) 90%,
    rgba(0, 0, 0, 0.0) 100%
  );
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* カード内テキスト要素 */
.concert-card .concert-date {
  display: flex;
  align-items: baseline;
  margin-bottom: 0;
  line-height: 1.2;
  padding-top: 5px;
}

.concert-card .date-number {
  font-size: 1.2rem;
  font-weight: 700;
  margin-right: 0.15rem;
  line-height: 1;
}

.concert-card .date-label {
  font-size: 0.8rem;
  margin-right: 0.4rem;
}

.concert-card .concert-time {
  font-size: 0.85rem;
  color: #ffda9e;
  margin: 0 0 2px 0;
  line-height: 1.1;
}

.concert-card .concert-title {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 2px 0;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.concert-card .concert-venue {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.95);
  margin: 0;
  padding: 0 0 2px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  line-height: 1.2;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.7);
}

/* 日付年表示 */
.date-year {
  display: none; /* 年表示を非表示に */
}

.date-label.day-of-week {
  margin-left: -0.5rem;
  margin-right: 0.5rem;
}

/* ======= 8. 詳細ページスタイル ======= */
.concert-detail {
  background-color: var(--color-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-xl);
  max-width: 1000px;
  margin: 0 auto;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  animation: fadeIn var(--transition-normal);
}

.detail-content {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xl);
  justify-content: flex-start;
}

.detail-poster {
  flex: 0 0 auto;
  width: 300px;
  max-width: 100%;
  aspect-ratio: 1/1.414;
  overflow: hidden;
  position: relative;
  order: 1;
  cursor: pointer;
}

/* aspect-ratioがサポートされていない環境用のフォールバック */
@supports not (aspect-ratio: 1/1.414) {
  .detail-poster {
    height: 0;
    padding-bottom: 141.4%;
  }
}

.detail-info-container {
  flex: 1;
  min-width: 300px;
  order: 2;
}

.detail-poster img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-slow);
}

.detail-poster:hover img {
  transform: scale(1.03);
}

.detail-poster:after {
  content: '拡大する';
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,0.6);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  opacity: 0;
  transition: opacity 0.3s;
}

.detail-poster:hover:after {
  opacity: 1;
}

.detail-header {
  margin-bottom: var(--space-lg);
}

.detail-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  line-height: 1.4;
}

.detail-date {
  color: var(--color-accent);
  font-weight: bold;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
}

.detail-date .date-year {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  margin-right: 0.3rem;
  display: inline;
}

.detail-date .date-number {
  font-family: 'M PLUS Rounded 1c', sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-right: 0.15rem;
  line-height: 1;
}

.detail-date .date-label {
  font-family: 'Noto Sans JP', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-accent);
  margin-right: 0.5rem;
}

.detail-time {
  font-size: 1rem;
  color: var(--color-text);
  margin-top: 0.5rem;
  width: 100%;
}

.detail-info {
  margin-bottom: var(--space-lg);
}

.detail-info p {
  margin-bottom: 0.8rem;
}

.info-label {
  font-weight: bold;
  margin-right: 0.5rem;
  display: inline-block;
  width: auto;
}

.detail-description {
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

/* チケット・問い合わせ情報 */
.ticket-info,
.contact-info {
  margin-bottom: var(--space-lg);
}

.ticket-info h3,
.contact-info h3 {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 1.2rem;
  margin-bottom: var(--space-sm);
  color: var(--color-primary);
}

.ticket-info p,
.contact-info p {
  line-height: 1.8;
}

/* 詳細ページのボタン */
.detail-buttons {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-xl);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
  padding-bottom: var(--space-md);
}

.detail-button {
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.detail-button:hover {
  transform: translateY(-2px);
}

.website-button {
  background-color: var(--color-primary);
  color: white;
}

.website-button:hover {
  background-color: var(--color-primary-light);
}

.back-button {
  background-color: var(--color-border);
  color: var(--color-text);
}

.back-button:hover {
  background-color: #e5e5e5;
}

/* 詳細ページのシェア機能とPR */
.detail-footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  gap: var(--space-lg);
}

.detail-share {
  margin-top: 0;
  padding-top: 0;
  flex: 1;
  min-width: 220px;
  opacity: 0.9;
  transition: opacity var(--transition-fast);
  text-align: center;
}

.detail-share:hover {
  opacity: 1;
}

.share-text {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 8px;
  white-space: nowrap;
  text-align: center;
}

.share-icons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  align-items: center;
}

.share-icon-link {
  display: inline-block;
  transition: transform var(--transition-fast);
  flex: 0 0 auto;
}

.share-icon-link:hover {
  transform: translateY(-2px);
}

.share-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

/* PR広告スタイル */
.piano-studio-ad {
  flex: 1;
  max-width: 350px;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.piano-studio-ad:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.piano-ad-img {
  width: 100%;
  height: auto;
  display: block;
}

.piano-studio-ad::before {
  content: 'PR';
  position: absolute;
  top: 5px;
  right: 5px;
  background-color: rgba(255, 255, 255, 0.7);
  color: var(--color-text-light);
  font-size: 0.7rem;
  padding: 2px 4px;
  border-radius: 2px;
  z-index: 1;
}

/* ======= 9. 画像拡大モーダル ======= */
.zoom-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.3s;
}

.zoom-modal.show {
  opacity: 1;
}

.zoom-content {
  position: relative;
  margin: auto;
  padding: 0;
  width: 90%;
  height: 90%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.zoom-img {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  margin: auto;
  box-shadow: 0 5px 20px rgba(0,0,0,0.2);
  transform: scale(0.9);
  opacity: 0;
  transition: transform 0.3s, opacity 0.3s;
}

.zoom-img.show {
  transform: scale(1);
  opacity: 1;
}

.zoom-close {
  position: absolute;
  top: 10px;
  right: 20px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 2001;
  background-color: rgba(0,0,0,0.5);
  width: 50px;
  height: 50px;
  border-radius: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 40px;
}

.zoom-close:hover {
  background-color: rgba(0,0,0,0.8);
}

/* ======= 10. フォーム・コンテンツページスタイル ======= */
.form-container {
  background-color: var(--color-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-xl);
  max-width: 800px;
  margin: 0 auto;
}

.form-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-lg);
  text-align: center;
}

.form-description {
  margin-bottom: var(--space-lg);
  text-align: center;
  line-height: 1.8;
}

.form-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  background-color: var(--color-accent);
  color: white;
  border-radius: var(--radius-md);
  font-weight: bold;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  font-size: 1.1rem;
  border: none;
  cursor: pointer;
}

.form-submit:hover {
  background-color: var(--color-accent-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.form-submit-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='12' y1='5' x2='12' y2='19'%3E%3C/line%3E%3Cline x1='5' y1='12' x2='19' y2='12'%3E%3C/line%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.form-notes {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.form-notes h3 {
  font-size: 1.2rem;
  margin-bottom: var(--space-md);
  color: var(--color-primary);
}

.form-notes ul {
  padding-left: var(--space-lg);
  line-height: 1.8;
}

.form-notes li {
  margin-bottom: var(--space-sm);
}

/* 利用規約ページ */
#terms-page .container {
  background-color: var(--color-card);
  color: var(--color-text);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

#terms-page h2 {
  margin-bottom: var(--space-md);
}

#terms-page h3, 
#terms-page h4 {
  margin-top: var(--space-md);
  margin-bottom: var(--space-sm);
}

#terms-page p,
#terms-page ul {
  margin-bottom: var(--space-md);
  line-height: 1.8;
}

#terms-page ul {
  list-style: disc;
  padding-left: 1.5rem;
}

#terms-page li {
  margin-bottom: var(--space-xs);
}

#terms-page hr {
  margin: var(--space-lg) 0;
}

/* ======= 11. アーカイブページスタイル ======= */
.archive-header {
  margin-bottom: var(--space-lg);
}

.archive-title {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--color-primary);
}

.archive-description {
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
}

.archive-filters {
  margin-bottom: var(--space-lg);
}

.year-month-container {
  margin-bottom: var(--space-xl);
}

.year-month {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-primary);
  color: var(--color-primary);
}

/* ======= 12. 管理者ページスタイル ======= */
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
}

.admin-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-primary);
}

.admin-actions {
  display: flex;
  gap: var(--space-sm);
}

.admin-tabs {
  display: flex;
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-lg);
}

.tab-button {
  padding: var(--space-md);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-weight: 500;
  transition: border-color var(--transition-fast), color var(--transition-fast);
}

.tab-button:hover {
  color: var(--color-primary);
}

.tab-button.active {
  border-bottom-color: var(--color-primary);
  color: var(--color-primary);
  font-weight: 700;
}

.admin-tab {
  display: none;
}

.admin-tab.active-tab {
  display: block;
}

.admin-tab-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
}

.admin-tab-header h3 {
  margin: 0;
  color: var(--color-primary);
}

.pending-list,
.admin-concert-list {
  background-color: var(--color-card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.pending-item {
  padding: var(--space-lg);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
  transition: background-color var(--transition-fast);
}

.pending-item:hover {
  background-color: rgba(0,0,0,0.02);
}

.pending-item:last-child {
  border-bottom: none;
}

.pending-info {
  flex: 1;
  min-width: 250px;
}

.pending-title {
  font-weight: 700;
  margin-bottom: var(--space-xs);
  font-size: 1.1rem;
}

.pending-details {
  font-size: 0.9rem;
  color: var(--color-text-light);
}

.pending-actions {
  display: flex;
  gap: var(--space-sm);
  flex-wrap: wrap;
}

.pending-button {
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  font-weight: bold;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.pending-button:hover {
  transform: translateY(-2px);
}

.approve-button {
  background-color: var(--color-success);
  color: white;
}

.reject-button {
  background-color: var(--color-error);
  color: white;
}

.edit-button {
  background-color: var(--color-primary);
  color: white;
}

.delete-button {
  background-color: #888;
  color: white;
}

.past-concert {
  background-color: rgba(0,0,0,0.02);
}

.concert-status {
  display: inline-block;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
  margin-left: var(--space-sm);
}

.concert-status.past {
  background-color: var(--color-error);
  color: white;
}

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

.archive-expired {
  background-color: var(--color-primary);
  color: white;
}

/* ======= 13. ログインモーダル ======= */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.5);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(3px);
}

.modal-content {
  background-color: var(--color-card);
  padding: var(--space-xl);
  border-radius: var(--radius-lg);
  max-width: 450px;
  width: 90%;
  position: relative;
  box-shadow: var(--shadow-xl);
  opacity: 0;
  transform: scale(0.95);
  transition: opacity var(--transition-normal), transform var(--transition-normal);
}

.modal-content.modal-show {
  opacity: 1;
  transform: scale(1);
}

.close-modal {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--color-text-light);
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.close-modal:hover {
  color: var(--color-text);
  transform: rotate(90deg);
}

.modal-title {
  margin-bottom: var(--space-lg);
  font-size: 1.5rem;
  text-align: center;
  color: var(--color-primary);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: var(--space-xs);
}

.form-input {
  width: 100%;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  font-size: 1rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px rgba(37, 99, 169, 0.2);
}

/* ======= 14. ユーティリティと補助スタイル ======= */
/* ボタン基本クラス */
.button {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  font-weight: bold;
  cursor: pointer;
  border: none;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
  text-align: center;
}

.button:hover {
  transform: translateY(-2px);
}

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

.primary-button:hover {
  background-color: var(--color-primary-light);
}

.secondary-button {
  background-color: var(--color-border);
  color: var(--color-text);
}

.secondary-button:hover {
  background-color: #e5e5e5;
}

/* ローディング表示 */
.loading-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-xl);
  width: 100%;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(0, 0, 0, 0.1);
  border-left-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: var(--space-md);
}

/* ハイライト表示 */
.search-highlight {
  background-color: rgba(255, 215, 0, 0.3);
  border-radius: 2px;
  padding: 0 2px;
}

/* スケルトンローディングUI */
@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-container {
  display: grid;
  gap: var(--space-md);
}

.skeleton-card {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 141.4%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: #f0f0f0;
  box-shadow: var(--shadow-sm);
}

.skeleton-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 65%;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

.skeleton-content {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 35%;
  padding: var(--space-sm);
  background-color: white;
}

.skeleton-line {
  height: 12px;
  margin-bottom: 8px;
  border-radius: 2px;
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
}

.skeleton-line:last-child {
  width: 70%;
}

/* 最新情報バー */
.update-info-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 10px;
  background-color: rgba(245, 245, 245, 0.7);
  border-radius: var(--radius-sm);
  margin: 8px 0;
  font-size: 0.8rem;
  color: var(--color-text-light);
}

.update-info-bar:hover {
  background-color: #efefef;
}

.refresh-button {
  background: none;
  border: none;
  color: var(--color-primary);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  display: flex;
  align-items: center;
}

.refresh-button:hover {
  background-color: rgba(0,0,0,0.05);
}

.refresh-icon {
  margin-right: 4px;
  display: inline-block;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24' stroke='%232563a9' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M23 4v6h-6'/%3E%3Cpath d='M1 20v-6h6'/%3E%3Cpath d='M3.51 9a9 9 0 0 1 14.85-3.36L23 10M1 14l4.64 4.36A9 9 0 0 0 20.49 15'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

/* アクセスカウンター */
.visit-counter {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: var(--space-md) 0;
}

.counter-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

.counter-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
}

.mini-counter {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.5);
  margin-top: 5px;
  display: flex;
  justify-content: center;
  gap: 4px;
}

.mini-counter .counter-value {
  font-size: 0.75rem;
}

.mini-counter .counter-label {
  font-size: 0.7rem;
}

/* ======= 15. フッタースタイル ======= */
footer {
  background-color: var(--color-primary);
  color: white;
  padding: var(--space-xl) 0;
  margin-top: var(--space-xxl);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-lg);
  max-width: 1100px;
  margin: 0 auto;
}

.footer-col {
  flex: 1;
  min-width: 200px;
  margin-bottom: var(--space-lg);
}

.footer-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  position: relative;
  padding-bottom: var(--space-sm);
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: var(--color-accent);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  transition: color var(--transition-fast), transform var(--transition-fast);
  display: inline-block;
}

.footer-links a:hover {
  color: white;
  transform: translateX(5px);
}

.copyright {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: var(--space-lg);
  margin-top: var(--space-lg);
  border-top: 1px solid rgba(255,255,255,0.1);
}

.copyright p {
  margin-bottom: var(--space-xs);
}

.admin-link {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  font-size: 0.8rem;
  transition: color var(--transition-fast);
  letter-spacing: 0.05em;
  opacity: 0.8;
  margin-top: var(--space-xs);
}

.admin-link:hover {
  color: rgba(255,255,255,0.7);
  opacity: 1;
}

/* ======= 16. アクセシビリティ ======= */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background-color: var(--color-primary);
  color: white;
  padding: var(--space-sm) var(--space-md);
  z-index: 1001;
  transition: top var(--transition-fast);
}

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

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* フォーカスインジケーター */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus,
[tabindex]:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* キーボードフォーカス時のカードスタイル */
.concert-card:focus {
  box-shadow: 0 0 0 3px var(--color-primary), var(--shadow-md);
  outline: none;
}

/* 高コントラストモード */
.high-contrast {
  --color-primary: #0000c8;
  --color-primary-light: #0000e0;
  --color-primary-dark: #000080;
  --color-accent: #d60000;
  --color-accent-light: #ff0000;
  --color-background: #ffffff;
  --color-card: #ffffff;
  --color-text: #000000;
  --color-text-light: #303030;
  --color-border: #505050;
}

.high-contrast .concert-card .card-content {
  background: rgba(0,0,0,0.9);
}

.high-contrast .calendar-day.today {
  background-color: #000000;
  color: #ffffff;
  border: 2px solid #ffa500;
}

.high-contrast a:focus,
.high-contrast button:focus,
.high-contrast input:focus,
.high-contrast select:focus,
.high-contrast textarea:focus {
  outline: 3px solid orange !important;
  outline-offset: 2px;
}

/* ======= 17. アニメーション ======= */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ページ遷移アニメーション */
.page {
  display: none;
  animation: fadeInUp var(--transition-normal);
}

.active-page {
  display: block;
}

/* ======= 18. レスポンシブ対応 ======= */
/* 統合したメディアクエリ - 共通のブレークポイントごとにまとめる */

/* スマホサイズ (576px以下) */
@media (max-width: 576px) {
  /* 基本レイアウト調整 */
  .container {
    padding: 0 6px;
    max-width: 100%;
  }
  
  /* フィルター部分 */
  .filter-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  
  .filter-group {
    width: 100%;
  }
  
  .filter-section label,
  .filter-section select {
    font-size: 0.9rem;
  }
  
  /* 検索関連 */
  .search-container {
    width: 100%;
    margin-right: 0;
    margin-bottom: var(--space-sm);
  }
  
  .search-result-info {
    font-size: 0.85rem;
    padding: var(--space-xs) var(--space-sm);
  }
  
  /* コンサートカード */
  .concert-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xs);
  }
  
  .card-content {
    padding: 8px 8px 12px;
  }
  
  .concert-date {
    margin-bottom: 2px;
  }
  
  .date-number {
    font-size: 1rem !important;
  }
  
  .date-label {
    font-size: 0.7rem !important;
  }
  
  .concert-title {
    font-size: 0.8rem !important;
    margin-bottom: 2px;
    -webkit-line-clamp: 1;
  }
  
  .concert-venue {
    font-size: 0.7rem !important;
  }
  
  .concert-time {
    font-size: 0.7rem !important;
    margin-bottom: 2px;
  }
  
  /* アーカイブページ */
  #archive-content .concert-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 4px;
  }
  
  .year-month {
    font-size: 1.1rem;
    margin-bottom: 8px;
    padding-bottom: 4px;
  }
  
  .year-month-container {
    margin-bottom: 1.5rem;
  }
  
  /* SNSシェアアイコン */
  .share-icon {
    width: 24px;
    height: 24px;
  }
  
  .share-icons {
    gap: var(--space-lg);
  }
  
  /* ボタン */
  .nav-links a {
    padding: 8px 12px;
    font-size: 0.9rem;
    margin: 0 2px;
  }
  
  .form-submit {
    padding: 12px 22px;
    font-size: 1rem;
  }
  
  /* ヘッダー */
  body header .header-content {
    flex-direction: column;
    align-items: center;
    padding-top: 8px;
    padding-bottom: 8px;
  }
  
  body header .header-content .site-title {
    font-size: 1.5rem;
    margin-bottom: 8px;
    text-align: center;
    width: 100%;
  }
  
  body header .header-content .nav-links {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding-left: 8px;
    padding-right: 8px;
    margin-top: 5px;
  }
  
  body header .header-content .nav-links a {
    padding: 6px 8px;
    font-size: 0.9rem;
    text-align: center;
    flex: 1;
    margin: 0 2px;
    white-space: nowrap;
  }
  
  /* 管理者ページ */
  .pending-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/* タブレットサイズ (768px以下) */
@media (max-width: 768px) {
  /* ヘッダー */
  .header-content {
    flex-direction: column;
    gap: var(--space-md);
  }
  
  .nav-links {
    width: 100%;
    justify-content: space-between;
  }
  
  /* 詳細ページ */
  .detail-content {
    flex-direction: column;
  }
  
  .detail-poster {
    max-width: 100%;
    margin: 0 auto 2rem;
  }
  
  .detail-footer-container {
    flex-direction: column;
    align-items: center;
    gap: var(--space-lg);
  }
  
  .detail-footer-container .detail-share {
    width: 100%;
    text-align: center;
  }
  
  .detail-footer-container .share-icons {
    justify-content: center;
  }
  
  .piano-studio-ad {
    width: 80%;
    max-width: 300px;
  }
  
  /* 検索関連 */
  .search-container {
    width: 100%;
    margin-right: 0;
    margin-bottom: var(--space-sm);
  }
  
  /* グリッド */
  .concert-cards {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
  }
}

/* 小型スマホ向け調整 (375px以下) */
@media (max-width: 375px) {
  /* フォント */
  .filter-section label,
  .filter-section select {
    font-size: 0.85rem;
  }
  
  /* ヘッダー */
  body header .header-content .site-title {
    font-size: 1.3rem;
  }
  
  body header .header-content .nav-links a {
    font-size: 0.85rem;
    padding: 5px 4px;
  }
  
  /* サイトタグライン */
  .site-tagline {
    font-size: 0.7rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
  
  /* カード調整 */
  .concert-card .card-content {
    min-height: 95px;
    padding: 10px 5px 8px;
  }
}

/* 最小サイズスマホ向け調整 (320px以下) */
@media (max-width: 320px) {
  /* フォント */
  .filter-section label,
  .filter-section select {
    font-size: 0.8rem;
  }
  
  /* カード調整 */
  .concert-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .concert-card .card-content {
    min-height: 90px;
    padding: 8px 5px 5px;
  }
}

/* デスクトップサイズ */
@media (min-width: 769px) and (max-width: 992px) {
  .concert-cards {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 993px) and (max-width: 1200px) {
  .concert-cards {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (min-width: 1201px) {
  .concert-cards {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* モバイル向け特殊対応 */
@media screen and (max-width: 428px) {
  .concert-cards {
    grid-template-columns: repeat(3, 1fr);
    width: 100%;
    max-width: 100%;
  }
}

/* ======= 19. プリント用スタイル ======= */
@media print {
  header, footer, .filter-section, .view-toggle, .theme-toggle, 
  #mobile-search-toggle, .accessibility-toolbar {
    display: none;
  }
  
  body {
    background-color: white;
    color: black;
  }
  
  .concert-card, .detail-content {
    box-shadow: none;
    border: 1px solid #ddd;
  }
  
  .card-content {
    background: rgba(0,0,0,0.7);
  }
  
  .concert-detail, .calendar-view {
    page-break-inside: avoid;
  }
}


/* 投稿ボタンの色修正 - ナビゲーションバー内の投稿ボタン */
.nav-links .post-button {
  background-color: var(--color-accent);
  color: white;
  font-weight: bold;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.nav-links .post-button:hover {
  background-color: var(--color-accent-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* フォーム内の投稿ボタン */
.form-submit {
  background-color: var(--color-accent) !important;
  color: white !important;
}

.form-submit:hover {
  background-color: var(--color-accent-light) !important;
  transform: translateY(-3px);
}