/*
===========================================
静岡パブリックピッチ - メインスタイルシート
===========================================

目次:
1. Reset & Basic Styles - 基本リセットとベーススタイル
2. お知らせバー - トップの告知バー
3. Header - ヘッダーナビゲーション
4. Hero Section - メインビジュアルエリア
5. About Section - イベント概要セクション
6. News Section - ニュースセクション
7. Agenda Section - アジェンダセクション
8. Schedule Section - スケジュールセクション
9. Merit Section - 参加メリットセクション
10. Entry Section - エントリーセクション
11. Footer - フッター
12. Floating Button - フローティングボタン
13. Page Hero Section - サブページヒーロー
14. Challenges Section - 課題セクション
15. Responsive Styles - レスポンシブ対応

===========================================
*/

/* 1. Reset & Basic Styles - 基本リセットとベーススタイル */
body,
h1,
h2,
h3,
p,
ul {
  margin: 0;
  padding: 0;
  font-family: "MFW-PAotoGothicStdN-Regular", sans-serif;
}

body {
  color: #333;
  background-color: white;
  background-image: url("images/body-background.jpg");
  background-size: 100% auto;
  background-position: top center;
  background-repeat: repeat-y;
  background-attachment: fixed;
  position: relative;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* 2. お知らせバー - サイト上部の重要な告知を表示 */
.announcement-bar {
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: white;
  padding: 12px 0;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  position: relative;
  z-index: 1000;
}

.announcement-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

.announcement-title {
  font-weight: 700;
  margin-right: 10px;
}

.announcement-dates {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.announcement-date {
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 13px;
  white-space: nowrap;
}

/* 3. Header - サイトヘッダーとナビゲーション */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  width: 100%;
  box-sizing: border-box;
  z-index: 100;
  color: #333;
  position: relative;
}

header.home-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(255, 255, 255, 0.95);
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Scroll offset for fixed header */
#news, #about {
  scroll-margin-top: 80px;
}

/* Fixed header for desktop - 768px以上でデスクトップ表示 */
@media (min-width: 768px) {
  header:not(.home-header) {
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
  }

  /* Add top padding to body to compensate for fixed header */
  body:not(.home-page) {
    padding-top: 120px;
  }
}

header .logo {
  height: 80px; /* コンテナの高さを指定 */
}

header .logo img {
  height: 100%; /* 親要素の高さに合わせる */
  width: auto;
}

header nav ul {
  display: flex;
}

header nav li {
  margin-left: 30px;
}

header nav a {
  font-family: "MFW-PAotoGothicStdN-DeBold", sans-serif;
  font-size: 16px;
}

#hamburger-btn {
  display: none; /* Hide by default */
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 101;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

#hamburger-btn span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: #333;
  margin: 3px 0;
  transition: all 0.3s ease-in-out;
  border-radius: 2px;
}

/* 4. Hero Section - メインページのヒーローエリア */
.hero {
  height: calc(100vh - 80px);
  margin-top: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 40px;
  background-image: url("images/hero-background.svg");
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero-content {
  color: white;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.hero-unified-badge {
  position: absolute;
  top: 200px;
  right: 40px;
  background: linear-gradient(135deg, #ff6b35, #f7931e);
  color: white;
  border-radius: 15px;
  padding: 0;
  box-shadow: 0 8px 25px rgba(255, 107, 53, 0.3);
  overflow: hidden;
  max-width: 280px;
  z-index: 10;
}

.unified-badge-header {
  background: rgba(0, 0, 0, 0.1);
  padding: 12px 20px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.badge-title {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.unified-badge-content {
  padding: 15px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pitch-event {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pitch-event:last-child {
  border-bottom: none;
}

.pitch-date {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
}

.pitch-location {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.hero-content h2 {
  font-size: 60px; /* Adjusted font size for the new title */
  font-family: "MFW-PAotoGothicStdN-Bold", sans-serif;
}

.hero-title-image {
  max-width: 100%;
  height: auto;
  width: auto;
  max-height: 400px;
}

.hero-content p {
  margin-top: 20px;
  font-size: 18px;
}

/* Hero Section - Call to Action Button */
.hero .btn {
  /* レイアウト: flexboxを使用してアイコンとテキストを横並びに配置 */
  display: flex;
  align-items: center;
  
  /* スペーシング */
  margin-top: 30px;
  padding: 15px 30px;
  
  /* スタイリング */
  background-color: white;
  color: #333;
  border-radius: 50px;
  
  /* フォント */
  font-family: "MFW-PAotoGothicStdN-DeBold", sans-serif;
}

.hero .btn .arrow {
  margin-left: 10px;
  border: 1px solid #333;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

/* 5. About Section - イベント概要セクション */
.about {
  padding: 80px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.about h2 {
  font-size: 36px;
  margin-bottom: 40px;
  line-height: 1.6;
  color: #003366; /* 仮の紺色 */
  font-family: "MFW-PAotoGothicStdN-DeBold", sans-serif;
}

.about p {
  max-width: 800px;
  margin: 0 auto;
  line-height: 2;
  text-align: left;
}

/* Responsive - デスクトップ表示（768px以上） */
@media (min-width: 768px) {
  /* デスクトップ表示: ハンバーガーボタンを非表示にし、ナビゲーションを表示 */
  header #hamburger-btn {
    display: none;
  }

  header nav {
    display: block;
    position: static;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    visibility: visible;
    background-color: transparent;
    box-shadow: none;
    border-top: none;
  }

  header nav ul {
    flex-direction: row;
    padding: 0;
  }

  header nav li {
    margin: 0 0 0 30px;
    text-align: left;
  }

  header nav a {
    padding: 0;
    border-radius: 0;
  }
}

@media (max-width: 768px) {
  /* お知らせバー - モバイル */
  .announcement-bar {
    padding: 8px 0;
    font-size: 13px;
    overflow: hidden;
  }
  
  .announcement-content {
    flex-direction: row;
    gap: 15px;
    padding: 0;
    justify-content: flex-start;
    animation: scroll-announcement 20s linear infinite;
    white-space: nowrap;
    min-width: 100%;
  }
  
  .announcement-title {
    margin-right: 15px;
    margin-bottom: 0;
    flex-shrink: 0;
  }
  
  .announcement-dates {
    gap: 15px;
    justify-content: flex-start;
    flex-shrink: 0;
  }
  
  .announcement-date {
    font-size: 12px;
    padding: 3px 10px;
    flex-shrink: 0;
  }
  
  /* スクロールアニメーション */
  @keyframes scroll-announcement {
    0% {
      transform: translateX(100%);
    }
    100% {
      transform: translateX(-100%);
    }
  }
  
  /* ホバー時にアニメーションを停止 */
  .announcement-bar:hover .announcement-content {
    animation-play-state: paused;
  }
}

/* 小さなスマホ画面用 */
@media (max-width: 480px) {
  .announcement-bar {
    padding: 6px 0;
    font-size: 12px;
  }
  
  .announcement-content {
    animation-duration: 25s; /* より遅いスクロール */
  }
  
  .announcement-title {
    font-size: 12px;
  }
  
  .announcement-date {
    font-size: 11px;
    padding: 2px 8px;
  }
}

@media (max-width: 768px) {
  header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
  }

  #hamburger-btn {
    display: flex; /* Show on mobile */
  }

  .hero-unified-badge {
    position: static;
    margin-top: 20px;
    min-width: auto;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .unified-badge-header {
    padding: 12px 20px;
  }

  .badge-title {
    font-size: 16px;
  }

  .unified-badge-content {
    padding: 12px 15px;
    gap: 8px;
  }

  .pitch-event {
    padding: 6px 0;
  }

  .pitch-date {
    font-size: 16px;
    min-width: 50px;
  }

  .pitch-location {
    font-size: 13px;
  }

  .hero {
    padding: 0 20px;
  }
  
  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  header nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-top: 1px solid #eee;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    pointer-events: none;
    visibility: hidden;
  }

  header nav.is-active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
  }

  header nav ul {
    flex-direction: column;
    padding: 20px;
    margin: 0;
  }

  header nav li {
    margin: 0;
    margin-bottom: 15px;
    text-align: center;
  }

  header nav li:last-child {
    margin-bottom: 0;
  }

  header nav a {
    display: block;
    padding: 10px 15px;
    border-radius: 5px;
    transition: background-color 0.2s ease;
  }

  header nav a:hover,
  header nav a.active {
    background-color: #f0f0f0;
    color: #003366;
  }

  /* ハンバーガーボタンのアニメーション */
  #hamburger-btn.is-active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  #hamburger-btn.is-active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
  }

  #hamburger-btn.is-active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .hero {
    padding: 40px 20px;
    height: 60vh;
  }

  .hero-content h2,
  .hero-content h3 {
    font-size: 42px;
  }

  .hero-title-image {
    max-height: 100px;
  }

  .about {
    padding: 40px 20px;
  }

  .about h2 {
    font-size: 28px;
  }
}

/* 6. News Section - ニュース・お知らせセクション */
.news {
  background-color: #eaf2f8; /* 薄い青系の背景色 */
  padding: 80px 0;
  position: relative;
  z-index: 1;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 32px;
  color: #003366;
  margin-bottom: 10px;
  font-family: "MFW-PAotoGothicStdN-DeBold", sans-serif;
}

.section-title p {
  color: #003366;
  position: relative;
  display: inline-block;
}

.section-title p::after {
  content: "";
  display: block;
  width: 50px;
  height: 2px;
  background-color: #003366;
  margin: 10px auto 0;
}

.news-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.news-card {
  background-color: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
  display: block;
}

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

.news-date {
  background-color: #003366;
  color: white;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 500;
}

.news-card h3 {
  padding: 20px 20px 10px;
  font-size: 20px;
  font-weight: 700;
  color: #003366;
  line-height: 1.4;
  margin: 0;
}

.news-card p {
  padding: 0 20px 20px;
  font-size: 14px;
  line-height: 1.6;
  color: #666;
  margin: 0;
}

.coming-soon-container {
  text-align: center;
  padding: 60px 20px;
}

.coming-soon-text {
  font-size: 24px;
  color: #003366;
  font-weight: 500;
}

.arrow-btn {
  background: none;
  border: 1px solid #003366;
  color: #003366;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 20px;
  cursor: pointer;
  margin: 0 20px;
}

.news-cards {
  display: flex;
  gap: 30px;
}

.card {
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  width: 350px;
}

.card-image {
  position: relative;
}

.card-image img {
  width: 100%;
  height: auto;
  display: block;
}

.card-image .status {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 24px;
  font-weight: bold;
}

.card-content {
  padding: 20px;
}

.card-content .date {
  font-size: 14px;
  color: #555;
  margin-bottom: 10px;
}

.card-content .title {
  font-size: 18px;
  font-family: "MFW-PAotoGothicStdN-DeBold", sans-serif;
  margin-bottom: 20px;
  color: #003366;
}

.card-content .more-btn {
  display: inline-block;
  padding: 10px 25px;
  background-color: #003366;
  color: white;
  border-radius: 20px;
  font-family: "MFW-PAotoGothicStdN-DeBold", sans-serif;
}

@media (max-width: 768px) {
  .news-container {
    grid-template-columns: 1fr;
    padding: 0 15px;
  }
  .news-card h3 {
    font-size: 18px;
  }
  .arrow-btn {
    margin: 20px 0;
  }
}

/* 7. Agenda Section - イベントアジェンダセクション */
.agenda {
  background-color: rgba(255, 255, 255, 0.85);
  padding: 80px 40px;
  position: relative;
  z-index: 1;
}

.agenda .section-title h2,
.agenda .section-title p {
  color: #003366;
}

.agenda-container {
  max-width: 1200px;
  margin: 50px auto 0;
}

.agenda-region {
  margin-bottom: 60px;
}

.agenda-region h3 {
  font-size: 28px;
  color: #003366;
  margin-bottom: 30px;
  padding-bottom: 10px;
  border-bottom: 3px solid #003366;
  display: inline-block;
  font-family: "MFW-PAotoGothicStdN-DeBold", sans-serif;
}

.agenda-region-group {
  margin-bottom: 60px;
}

.agenda-region-group h3 {
  font-size: 28px;
  color: #666;
  margin-bottom: 20px;
}

.coming-soon-regions {
  background-color: #f8f8f8;
  border: 2px dashed #ccc;
  border-radius: 12px;
  padding: 40px;
  text-align: center;
}

.coming-soon-info p {
  color: #666;
  font-size: 16px;
  margin: 0;
}

.agenda-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.agenda-card {
  background-color: white;
  border: 2px solid #003366;
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  min-height: 250px;
}

.agenda-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.agenda-card.coming-soon {
  background-color: #f5f5f5;
  border-style: dashed;
  cursor: default;
}

.agenda-card.coming-soon:hover {
  transform: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.card-icon {
  font-size: 48px;
  text-align: center;
  padding: 20px 0;
  background-color: #eaf2f8;
}

.card-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background-color: #f0f0f0;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.agenda-card:hover .card-image img {
  transform: scale(1.05);
}

.card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.card-category-header h4 {
  margin: 0;
  flex-grow: 1;
}

.municipality-logo {
  width: 80px !important;
  height: 80px !important;
  max-width: 80px !important;
  max-height: 80px !important;
  object-fit: contain;
  flex-shrink: 0;
}

.card-category {
  font-size: 12px;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.card-category-header h4,
.card-content h4 {
  display: inline-block;
  font-size: 15px;
  color: white;
  background-color: #003366;
  padding: 6px 12px;
  border-radius: 20px;
  margin-bottom: 0;
  font-family: "MFW-PAotoGothicStdN-DeBold", sans-serif;
}

.card-subtitle {
  font-size: 18px;
  color: #333;
  line-height: 1.6;
  margin-bottom: 15px;
  flex-grow: 1;
  font-weight: bold;
}

.card-department {
  font-size: 18px;
  color: #003366;
  border-top: 1px solid #eee;
  padding-top: 15px;
  margin-top: auto;
  font-weight: bold;
}

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

  .agenda-region h3 {
    font-size: 24px;
  }

  .card-content h4 {
    font-size: 18px;
  }
}

/* 8. Schedule Section - スケジュール・タイムラインセクション */
.schedule {
  padding: 80px 40px;
  background-color: #eaf2f8;
  position: relative;
  z-index: 1;
}

.schedule .section-title {
  color: #003366;
}

.schedule-deadlines {
  margin: 40px auto;
  max-width: 800px;
}

.deadline-title {
  text-align: center;
  color: #003366;
  font-size: 20px;
  font-weight: normal;
  margin-bottom: 30px;
}

.deadline-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.deadline-item {
  display: flex;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #e0e0e0;
}

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

.deadline-date {
  color: #003366;
  font-size: 18px;
  font-weight: bold;
  min-width: 100px;
  margin-right: 40px;
}

.deadline-text {
  color: #003366;
  font-size: 16px;
}

.schedule-note {
  text-align: center;
  margin-top: 30px;
  color: #003366;
  font-size: 16px;
}

.timeline-container {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.schedule-image {
  max-width: 100%;
  height: auto;
}

.schedule-pc {
  display: block;
}

.schedule-sp {
  display: none;
}

@media (max-width: 768px) {
  .schedule-pc {
    display: none;
  }
  
  .schedule-sp {
    display: block;
  }
}

/* 9. Merit Section - 参加メリットセクション */
.merit {
  padding: 80px 40px;
  background-color: rgba(255, 255, 255, 0.85);
  position: relative;
  z-index: 1;
}

.merit .section-title h2,
.merit .section-title p {
  color: #003366;
}

.merit-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin-top: 50px;
}

.merit-card {
  background-color: white;
  border: 1px solid #ddd;
  border-radius: 15px;
  padding: 30px;
  width: 280px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  position: relative;
}

.merit-card::before,
.merit-card::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  background-color: #f0e68c; /* 黄色系のアクセント */
}

.merit-card::before {
  top: -10px;
  left: -10px;
  border-top-left-radius: 5px;
}

.merit-card::after {
  bottom: -10px;
  right: -10px;
  border-bottom-right-radius: 5px;
}

.merit-header {
  color: #003366;
}

.merit-header p {
  font-size: 16px;
}

.merit-header .number {
  font-size: 48px;
  font-weight: bold;
  line-height: 1;
}

.merit-card img {
  height: 80px;
  margin: 20px 0;
}

.merit-card .description {
  color: #003366;
  font-size: 16px;
  line-height: 1.8;
}

@media (max-width: 992px) {
  .merit-container {
    flex-direction: column;
    align-items: center;
  }
  .merit-card {
    margin-bottom: 40px;
  }
}

/* 9.5. Seminar Video Section - 説明会動画セクション */
.seminar-video {
  padding: 60px 40px;
  background-color: rgba(255, 255, 255, 0.9);
  position: relative;
  z-index: 1;
}

.seminar-video .section-title h2,
.seminar-video .section-title p {
  color: #003366;
}

.video-container {
  width: 70%; /* ページ幅の約70%に縮小 */
  margin: 30px auto 0; /* 中央寄せ */
}

@media (max-width: 992px) {
  .video-container {
    width: 85%;
    padding: 0 10px;
  }
}

@media (max-width: 768px) {
  .video-container {
    width: 100%;
    padding: 0;
  }
}

/* 10. Entry Section - エントリー・応募セクション */
.entry {
  padding: 80px 40px;
  background-color: #eaf2f8;
  position: relative;
  z-index: 1;
}

.entry .section-title h2,
.entry .section-title p {
  color: #003366;
}

.entry-container {
  max-width: 900px;
  margin: 50px auto 0;
  background-color: white;
  border: 1px solid #ccc;
  padding: 20px 50px 50px;
}

.entry-item {
  display: flex;
  padding: 30px 0;
  border-bottom: 1px dashed #ccc;
  align-items: flex-start;
}

.entry-item:last-of-type {
  border-bottom: none;
}

.entry-label {
  width: 180px;
  flex-shrink: 0;
  font-family: "MFW-PAotoGothicStdN-DeBold", sans-serif;
  color: #003366;
  position: relative;
  padding-left: 20px;
}

.entry-label::before {
  content: "▶";
  position: absolute;
  left: 0;
  top: 2px;
  color: #003366;
}

.entry-content {
  flex-grow: 1;
  line-height: 1.9;
}

.entry-content p {
  margin-bottom: 1em;
}

.entry-content p:last-child {
  margin-bottom: 0;
}

.entry-content ul {
  list-style-type: none;
  padding-left: 0;
}

.entry-content li {
  position: relative;
  padding-left: 1.2em;
  margin-bottom: 0.5em;
}

.entry-content li::before {
  content: "・";
  position: absolute;
  left: 0;
}

.entry-buttons {
  text-align: center;
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.entry-category {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  padding: 25px 20px;
  border: 2px solid #e0e0e0;
  border-radius: 15px;
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: auto;
  min-height: 200px;
}

.entry-category:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.entry-category h4 {
  color: #003366;
  font-size: 20px;
  font-weight: bold;
  margin: 0 0 15px 0;
  padding-bottom: 10px;
  border-bottom: 2px solid #003366;
  width: 100%;
  text-align: center;
}

.btn.btn-download {
  display: inline-block;
  padding: 15px 30px;
  background-color: #003366;
  color: white;
  border-radius: 50px;
  font-family: "MFW-PAotoGothicStdN-DeBold", sans-serif;
  font-size: 16px;
  border: 2px solid #003366;
  transition: background-color 0.3s, color 0.3s;
  width: 100%;
  max-width: 280px;
  box-sizing: border-box;
  text-align: center;
}

.btn.btn-download:hover {
  background-color: white;
  color: #003366;
}

/* Disabled buttons */
.btn.btn-disabled {
  background-color: #ccc;
  color: #666;
  cursor: not-allowed;
  border-color: #ccc;
}

.btn.btn-disabled:hover {
  background-color: #ccc;
  color: #666;
  transform: none;
}

.btn.btn-disabled small {
  font-size: 14px;
  font-weight: normal;
  opacity: 0.8;
}

/* Application form section */
.application-form-section {
  margin-top: 40px;
  padding-top: 30px;
  border-top: 2px solid #003366;
  text-align: center;
}

.application-form-section h3 {
  color: #003366;
  font-size: 24px;
  margin-bottom: 20px;
  font-weight: bold;
}

.btn.btn-application {
  display: inline-block;
  padding: 15px 30px;
  background-color: #003366;
  color: white;
  border-radius: 50px;
  font-family: "MFW-PAotoGothicStdN-Bold", sans-serif;
  font-size: 16px;
  border: 2px solid #003366;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 51, 102, 0.3);
  transform: translateY(0);
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 280px;
  box-sizing: border-box;
  text-align: center;
}

.btn.btn-application::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.btn.btn-application:hover::before {
  left: 100%;
}

.btn.btn-application:hover {
  background-color: #004488;
  border-color: #004488;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 51, 102, 0.4);
}

@media (max-width: 768px) {
  .entry-item {
    flex-direction: column;
  }
  .entry-label {
    margin-bottom: 15px;
  }
  .btn.btn-download {
    width: 100%;
  }

  .entry-buttons {
    flex-direction: column;
    gap: 20px;
  }

  .entry-category {
    min-width: auto;
    width: 100%;
    padding: 15px;
  }

  .entry-category h4 {
    font-size: 18px;
  }

  .application-form-section h3 {
    font-size: 20px;
  }

  .btn.btn-application {
    width: 100%;
    padding: 18px 30px;
    font-size: 18px;
  }
}

/* 11. Footer - サイトフッター */
footer {
  background-color: #003366;
  color: white;
  padding: 60px 0;
  text-align: center;
  position: relative;
  z-index: 1;
}

footer .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

footer .section-title h2,
footer .section-title p {
  color: white;
}

.contact-info {
  margin-top: 30px;
}

.contact-info p {
  margin-bottom: 10px;
  font-size: 16px;
}

.contact-info a {
  color: #4a90e2;
  font-size: 18px;
  font-family: "MFW-PAotoGothicStdN-DeBold", sans-serif;
}

.contact-info a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  footer .container {
    padding: 0 20px;
  }
}

/* Floating Button - 固定位置のフローティングボタン */
.floating-btn-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
}

.floating-btn {
  background-color: #ff6b6b;
  color: white;
  padding: 15px 25px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  font-family: "MFW-PAotoGothicStdN-DeBold", sans-serif;
  font-size: 16px;
  box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
  text-align: center;
  white-space: nowrap;
  width: 100%;
}

.floating-btn:hover {
  background-color: #ff5252;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 107, 0.6);
}

.floating-dropdown {
  position: absolute;
  bottom: 100%;
  right: 0;
  background-color: white;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  min-width: 280px;
  margin-bottom: 10px;
  border: 1px solid #e0e0e0;
}

.floating-btn-container:hover .floating-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-item {
  display: flex;
  flex-direction: column;
  padding: 20px;
  text-decoration: none;
  color: #333;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease;
}

.dropdown-item:last-child {
  border-bottom: none;
  border-radius: 0 0 15px 15px;
}

.dropdown-item:first-child {
  border-radius: 15px 15px 0 0;
}

.dropdown-item:hover {
  background-color: #f8f9fa;
}

.dropdown-title {
  font-family: "MFW-PAotoGothicStdN-DeBold", sans-serif;
  font-size: 16px;
  color: #003366;
  margin-bottom: 5px;
}

.dropdown-desc {
  font-size: 14px;
  color: #666;
}

@keyframes pulse {
  0% {
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
  }
  50% {
    box-shadow: 0 4px 25px rgba(255, 107, 107, 0.6);
  }
  100% {
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
  }
}

/* モバイル表示でのフローティングボタン調整 */
@media (max-width: 768px) {
  .floating-btn-container {
    /* モバイルでは左右のマージンを設定し、幅を画面に合わせる */
    bottom: 20px;
    right: 20px;
    left: 20px;
    /* rightとleftを同時指定することで、コンテナが画面幅に合わせて伸縮 */
  }
  
  .floating-btn {
    padding: 12px 20px;
    font-size: 14px;
    border-radius: 25px;
    /* ボタンはコンテナの幅いっぱいに表示 */
  }
  
  .floating-dropdown {
    /* ドロップダウンも画面幅に合わせて表示 */
    right: 0;
    left: 0;
    min-width: auto;
  }
  
  .dropdown-item {
    padding: 15px;
  }
}

/* 13. Page Hero Section - サブページのヒーローセクション */
.page-hero {
  background: linear-gradient(135deg, #003366 0%, #004488 100%);
  color: white;
  padding: 120px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("images/hero-background.svg") center/cover;
  opacity: 0.1;
  z-index: 1;
}

.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 40px;
}

.page-hero-content h1 {
  font-size: 48px;
  margin-bottom: 20px;
  font-family: "MFW-PAotoGothicStdN-DeBold", sans-serif;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-hero-content p {
  font-size: 20px;
  opacity: 0.9;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .page-hero {
    padding: 100px 0 60px;
  }

  .page-hero-content {
    padding: 0 20px;
  }

  .page-hero-content h1 {
    font-size: 32px;
  }

  .page-hero-content p {
    font-size: 18px;
  }
}

/* 14. Challenges Intro Section - 課題紹介セクション */
.challenges-intro {
  padding: 60px 40px;
  background-color: white;
  position: relative;
  z-index: 1;
}

.challenges-intro .container {
  max-width: 1000px;
  margin: 0 auto;
}

.challenges-intro h2 {
  font-size: 28px;
  color: #003366;
  margin-bottom: 30px;
  text-align: center;
}

.challenges-intro p {
  font-size: 16px;
  line-height: 1.8;
  color: #333;
  text-align: center;
}

/* 14-2. Challenges Overview - 課題概要表示 */
.challenges-overview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  max-width: 1000px;
  margin: 50px auto 0;
  padding: 0 20px;
}

.challenge-category {
  background-color: white;
  border: 2px solid #003366;
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  transition: all 0.3s ease;
}

.challenge-category:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.challenge-category h3 {
  font-size: 24px;
  color: #003366;
  margin-bottom: 20px;
}

.challenge-category p {
  font-size: 16px;
  line-height: 1.6;
  color: #666;
  margin-bottom: 30px;
}

.btn.btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background-color: #003366;
  color: white;
  border-radius: 50px;
  font-family: "MFW-PAotoGothicStdN-DeBold", sans-serif;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn.btn-primary:hover {
  background-color: #004488;
  transform: translateY(-2px);
}

@media (max-width: 768px) {
  .challenges-overview {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .challenge-category {
    padding: 30px 20px;
  }
}

/* Active Navigation Link */
nav a.active {
  color: #ff6b6b;
  font-weight: bold;
}

/* Sub-page header style */
header.with-background {
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  z-index: 101;
}

/* Challenge Detail Page Styles */
.challenge-detail {
  padding: 60px 0;
  background-color: rgba(255, 255, 255, 0.95);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }
}

.challenge-header {
  margin-bottom: 50px;
}

.municipality-info {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.municipality-info h2 {
  font-size: 28px;
  color: #003366;
  font-family: "MFW-PAotoGothicStdN-DeBold", sans-serif;
}

.category-tag {
  background-color: #4a90e2;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-family: "MFW-PAotoGothicStdN-DeBold", sans-serif;
}

.challenge-title h3 {
  font-size: 32px;
  color: #333;
  line-height: 1.4;
}

.challenge-sections {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.challenge-section {
  background-color: white;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  position: relative;
}

.section-number {
  position: absolute;
  top: -15px;
  left: 30px;
  background-color: #003366;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "MFW-PAotoGothicStdN-DeBold", sans-serif;
  font-size: 18px;
}

.challenge-section h4 {
  font-size: 20px;
  color: #003366;
  margin-bottom: 20px;
  margin-top: 10px;
  font-family: "MFW-PAotoGothicStdN-DeBold", sans-serif;
}

.challenge-section h5 {
  font-size: 18px;
  color: #4a90e2;
  margin-bottom: 15px;
  margin-top: 20px;
  font-family: "MFW-PAotoGothicStdN-DeBold", sans-serif;
  padding-left: 15px;
  border-left: 4px solid #4a90e2;
  background-color: #f8f9fa;
  padding: 12px 15px;
  border-radius: 4px;
}

.challenge-section ul {
  list-style: none;
  padding: 0;
}

.challenge-section li {
  margin-bottom: 15px;
  padding-left: 20px;
  position: relative;
  line-height: 1.6;
}

.challenge-section li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #4a90e2;
  font-weight: bold;
}

.challenge-section p {
  line-height: 1.6;
  margin-bottom: 15px;
}

.challenge-section .note {
  font-size: 14px;
  color: #666;
  font-style: italic;
  margin-bottom: 20px;
}

/* Entry Section Improvements */
.entry-container {
  max-width: 900px;
  margin: 50px auto 0;
  background-color: white;
  border: 1px solid #ccc;
  padding: 20px 50px 50px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
  .municipality-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .municipality-info h2 {
    font-size: 24px;
  }

  .challenge-title h3 {
    font-size: 26px;
  }

  .challenge-section {
    padding: 20px;
  }

  .section-number {
    left: 20px;
  }

  .entry-container {
    margin: 30px 20px 0;
    padding: 20px 30px 40px;
  }

  .entry-item {
    flex-direction: column;
    gap: 15px;
  }

  .entry-label {
    width: 100%;
    margin-bottom: 10px;
  }

  .entry-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .btn.btn-download {
    min-width: auto;
    width: 100%;
  }
}
