:root {
  --primary: #0f4c81;
  --secondary: #f6b042;
  --light: #fdfdfd;
  --text: #333;
  --muted: #6b7280;
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  color: var(--text);
  background: #f4f6fb;
}

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

a:hover {
  text-decoration: underline;
}

header {
  background: var(--primary);
  color: white;
  padding: 1.5rem 1rem;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.committee-logo {
  height: 50px;
  width: auto;
  border-radius: 0.25rem;
}

.site-title {
  margin: 0;
  font-size: 1.75rem;
  letter-spacing: 0.04em;
}

nav ul {
  display: flex;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 600;
}

nav a {
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 0.5rem;
  transition: background 0.2s ease;
}

nav a:hover,
nav a:focus {
  background: rgba(255, 255, 255, 0.2);
}

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.hero {
  background: linear-gradient(135deg, #fff 0%, #f0f7ff 100%);
  border-radius: 1.25rem;
  padding: 2.5rem;
  box-shadow: 0 20px 40px rgba(15, 76, 129, 0.1);
  margin-bottom: 2.5rem;
}

/* 画像がある場合のみflexレイアウトを適用 */
.hero.hero-with-image {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.hero-visual {
  flex: 1;
  max-width: 400px;
}

.hero-content {
  flex: 1;
}

.main-visual {
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
  box-shadow: 0 8px 16px rgba(15, 76, 129, 0.15);
}

.hero h1 {
  margin-top: 0;
  font-size: 2.2rem;
  color: var(--primary);
}

.hero p {
  font-size: 1.1rem;
  line-height: 1.8;
}

.section {
  background: white;
  border-radius: 1rem;
  padding: 1.75rem;
  box-shadow: 0 12px 24px rgba(15, 76, 129, 0.08);
  margin-bottom: 2rem;
}

.section h2 {
  margin-top: 0;
  border-left: 0.35rem solid var(--secondary);
  padding-left: 0.75rem;
  font-size: 1.6rem;
}

.grid-2 {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.grid-2 img {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 0.5rem;
  box-shadow: 0 4px 8px rgba(15, 76, 129, 0.1);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #fff3d7;
  color: #7a4d00;
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.event-info {
  margin-bottom: 1rem;
}

.countdown-section {
  text-align: center;
  background: linear-gradient(135deg, var(--primary) 0%, #2563eb 100%);
  color: white;
  margin-bottom: 2.5rem;
  padding: 3rem 2rem;
}

.countdown-display {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  letter-spacing: 0.02em;
  margin: 0;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.countdown-number {
  font-weight: 800;
  font-size: 1em;
}

.countdown-unit {
  font-size: 0.6em;
  font-weight: 500;
  margin-right: 0.5em;
  opacity: 0.9;
}

.date-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}

.date-badge {
  display: inline-flex;
  align-items: center;
  background: var(--secondary);
  color: white;
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.date-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--primary);
}

.venue-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.venue-details h3,
.access-info h3 {
  margin-top: 0;
  color: var(--primary);
  font-size: 1.2rem;
}

.map-container {
  margin-top: 1rem;
}

.map-container iframe {
  width: 100%;
  border-radius: 0.5rem;
  box-shadow: 0 4px 8px rgba(15, 76, 129, 0.1);
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.contact-card {
  background: #f9fafc;
  border: 1px solid #e0e7ff;
  border-radius: 0.85rem;
  padding: 1rem;
  box-shadow: 0 8px 16px rgba(15, 76, 129, 0.04);
}

.contact-card h3 {
  margin-top: 0;
  font-size: 1.1rem;
}

dl {
  margin: 0;
}

dl + dl {
  margin-top: 1.25rem;
}

dt {
  font-weight: 600;
  color: var(--muted);
}

dd {
  margin: 0.25rem 0 0.75rem 0;
}

footer {
  background: #0b3054;
  color: white;
  text-align: center;
  padding: 1.5rem 1rem;
}

footer p {
  margin: 0.25rem 0;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  color: white;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(15, 76, 129, 0.2);
  text-decoration: none;
}

.notice-list {
  display: grid;
  gap: 1rem;
}

.notice-item {
  background: #f9fafc;
  border-left: 0.4rem solid var(--primary);
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  box-shadow: 0 10px 20px rgba(15, 76, 129, 0.06);
}

.notice-item h3 {
  margin: 0;
  font-size: 1.1rem;
}

.notice-item p {
  margin: 0.5rem 0 0;
  line-height: 1.7;
}

.notice-item.with-image {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.notice-content {
  flex: 1;
}

.notice-image {
  flex: 0 0 200px;
}

.notice-image img {
  width: 100%;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 4px 8px rgba(15, 76, 129, 0.1);
}

.external-links {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.external-links a {
  display: block;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid #dbeafe;
  background: #f1f7ff;
  font-weight: 600;
  transition: transform 0.2s ease;
}

.external-links a:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.tagline {
  margin: 1rem 0 0;
  font-size: 1.1rem;
  color: var(--muted);
}

/* SNSリンクのスタイル */
.sns-section {
  text-align: center;
  margin-bottom: 2rem;
}

.sns-links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.sns-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  transition: all 0.2s ease;
  text-decoration: none;
  color: white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.sns-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  text-decoration: none;
}

.sns-link.twitter {
  background: linear-gradient(135deg, #1da1f2 0%, #0d8bd9 100%);
}

.sns-link.twitter:hover {
  background: linear-gradient(135deg, #0d8bd9 0%, #0a7bc4 100%);
}

.sns-link.instagram {
  background: linear-gradient(135deg, #833ab4 0%, #fd1d1d 50%, #fcb045 100%);
}

.sns-link.instagram:hover {
  background: linear-gradient(135deg, #7209b7 0%, #e91e63 50%, #f57c00 100%);
}

.sns-link.gidanyan {
  background: linear-gradient(135deg, #f6b042 0%, #e69500 100%);
}

.sns-link.gidanyan:hover {
  background: linear-gradient(135deg, #e69500 0%, #cc8400 100%);
}

.sns-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

@media (max-width: 768px) {
  .sns-links {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }
  
  .sns-link {
    width: 220px;
    justify-content: center;
  }
}

/* バス路線番号のスタイル */
.bus-route {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  height: 2rem;
  padding: 0.1rem 0.1rem;
  margin: 0 0.2rem;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 0.4rem;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: relative;
}

.bus-route::before {
  content: '';
  margin-right: 0rem;
  font-size: 0rem;
}

/* C系統のスタイル（青系） */
.bus-route.c-line {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  border: 2px solid #1e40af;
}

.bus-route.c-line:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
  background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
}

/* N系統のスタイル（緑系） */
.bus-route.n-line {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  border: 2px solid #047857;
}

.bus-route.n-line:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

/* バス路線情報のコンテナ */
.bus-routes-group {
  gap: 0.1rem;
}

.bus-routes-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  align-items: center;
  margin: 0.2rem 0;
}

.route-description {
  font-weight: 600;
  color: var(--primary);
  margin-right: 0.5rem;
}

@media (max-width: 640px) {
  .bus-route {
    min-width: 2.5rem;
    height: 1.8rem;
    font-size: 0.8rem;
  }
  
  .bus-route::before {
    font-size: 0.7rem;
    margin-right: 0.2rem;
  }
  
  .bus-routes-group {
    gap: 0.3rem;
  }
}

@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .header-logo {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .committee-logo {
    height: 40px;
  }

  nav ul {
    flex-wrap: wrap;
  }

  .hero {
    padding: 2rem;
  }

  .hero.hero-with-image {
    flex-direction: column;
    text-align: center;
  }

  .hero-visual {
    max-width: 100%;
    order: -1;
  }

  .notice-item.with-image {
    flex-direction: column;
    text-align: center;
  }

  .notice-image {
    flex: none;
    max-width: 250px;
    margin: 0 auto;
  }

  .date-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .venue-info {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .map-container iframe {
    height: 200px;
  }

  .countdown-section {
    padding: 2rem 1rem;
  }

  .countdown-display {
    font-size: 1.8rem;
    padding: 0.8rem;
    line-height: 1.3;
  }

  .countdown-unit {
    font-size: 0.5em;
    margin-right: 0.3em;
  }
}
