@charset "UTF-8";

/* =============================================================================
   カスタムプロパティ（CSS変数）
   ============================================================================= */
:root {
  /* カラーパレット */
  --main-color: #159414;
  --accent-color: #BF6A7A;
  --dark-main-color: #0C540B;
  --text-bright-color: #fff;
  --icon-color: #fff;
  --icon-bk-color: #ddd;
  --gray-color: #ddd;
  --download-color: #2671B5;
  
  /* レイアウト */
  --large-width: 1000px;
  --middle-width: 800px;
  
  /* レスポンシブフォントサイズ */
  font-size: clamp(14px, 2vw, 18px);
}

/* =============================================================================
   ベーススタイル
   ============================================================================= */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'メイリオ', 'Hiragino Kaku Gothic Pro', sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

/* =============================================================================
   共通コンポーネント
   ============================================================================= */

/* コンテナ */
.container {
  max-width: var(--large-width);
  margin: 0 auto;
  padding: 0 20px;
}

.container-small {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* セクションヘッダー */
.section-header {
  margin: 0;
  padding: 20px;
  background-color: var(--main-color);
  color: var(--text-bright-color);
  font-size: 1.5rem;
  text-align: center;
}

/* ボタンスタイル */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border: 3px solid currentColor;
  border-radius: 6px;
  color: var(--text-bright-color);
  font-size: 14px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
  margin: 5px 5px 0 0;
}

.btn:hover {
  background-image: linear-gradient(rgba(255,255,255,0.2), rgba(255,255,255,0.2));
  transform: translateY(-1px);
}

.btn--external {
  background-color: var(--accent-color);
}

.btn--download {
  background-color: var(--download-color);
}

/* アイコン付きボタン */
.btn i {
  font-size: 16px;
}

/* =============================================================================
   ヘッダー
   ============================================================================= */
header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  background-color: rgba(245, 255, 252, 0.95);
  backdrop-filter: blur(5px);
}

.headA {
  display: inline-block;
}

.headA img {
  width: 124px;
  height: auto;
  max-width: 100%;
}

.headB ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.headB a {
  display: block;
  padding: 15px;
  color: inherit;
  font-size: 12px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.headB a:hover {
  background-color: rgba(0,0,0,0.1);
}

/* ハンバーガーメニュー */
.headC {
  margin-right: 10px;
  padding: 0;
  border: none;
  outline: none;
  background: none;
  font-size: 28px;
  opacity: 0.5;
  cursor: pointer;
  transition: opacity 0.3s ease;
  display: none;
}

.headC:hover {
  opacity: 0.8;
}

/* レスポンシブヘッダー */
@media (max-width: 767px) {
  .headC {
    display: block;
  }
  
  .headB {
    display: none;
  }
}

@media (min-width: 768px) {
  header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .headB ul {
    display: flex;
  }
  
  .headB {
    display: block !important;
  }
}

/* =============================================================================
   メインコンテンツエリア
   ============================================================================= */

/* ヒーローセクション */
.conA {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 80vh;
  min-height: 500px;
  background-image: 
    linear-gradient(rgba(0,0,0,0.1), rgba(0,0,0,0.1)), 
    url(img/hero1.jpg);
  background-position: center;
  background-size: cover;
  color: #fff;
  text-align: center;
}

.conA h1 {
  margin: 20vh 0 10px 0.2em;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(24px, 5vw, 45px);
  letter-spacing: 0.2em;
}

.conA p {
  margin: 0;
  font-size: clamp(14px, 3vw, 24px);
}

/* 緊急ニュースエリア */
.urgent-news {
  position: absolute;
  z-index: 10;
  animation: pulse 2s infinite;
}

.urgent-news-content {
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.urgent-news-header {
  background-color: var(--accent-color);
  color: white;
  padding: 10px 15px;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 8px;
}

.urgent-news-body {
  padding: 15px;
  text-align: center;
}

.urgent-news-body p {
  margin: 0 0 15px;
  color: #333;
  font-weight: bold;
}

.urgent-news-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--main-color);
  color: white;
  padding: 8px 15px;
  border-radius: 4px;
  font-size: 14px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.3s ease;
}

.urgent-news-btn:hover {
  background-color: var(--dark-main-color);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* レスポンシブ緊急ニュース */
@media (max-width: 767px) {
  .urgent-news {
    top: 80px;
    left: 15px;
    right: 15px;
  }
  
  .urgent-news-header {
    padding: 8px 12px;
    font-size: 14px;
  }
  
  .urgent-news-body {
    padding: 12px;
  }
  
  .urgent-news-body p {
    font-size: 13px;
    margin-bottom: 12px;
  }
  
  .urgent-news-btn {
    padding: 8px 12px;
    font-size: 13px;
  }
}

@media (min-width: 768px) {
  .urgent-news {
    top: 100px;
    right: 30px;
    width: 300px;
  }
}

/* コンテンツBセクション */
.conB .container {
  padding: 20px 0 10px;
}

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

.conB h2 {
  margin: 0 0 10px;
  font-size: clamp(18px, 4vw, 24px);
}

.conB p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.8;
  opacity: 0.8;
  text-align: left;
}

.conB .icon {
  display: inline-block;
  margin-bottom: 20px;
  font-size: 40px;
  width: 2em;
  line-height: 2em;
  border-radius: 50%;
  text-align: center;
  background-color: var(--icon-bk-color);
  color: var(--icon-color);
}

/* QRコードとイメージ */
.qr-container,
.image-container {
  margin: 15px auto 5px;
  text-align: center;
}

.qr-container {
  width: 50%;
  max-width: 150px;
}

.image-container {
  max-width: 80%;
}

.qr-code,
.image {
  width: 100%;
  height: auto;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.qr-code {
  aspect-ratio: 1/1;
}

/* スケジュール表 */
.schedule-table {
  margin: 10px 0;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  width: 100%;
}

.schedule-item {
  display: flex;
  border-bottom: 1px solid #f0f0f0;
  background-color: #fafafa;
}

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

.schedule-date {
  background-color: var(--main-color);
  color: white;
  padding: 10px 15px;
  min-width: 120px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}

.schedule-time {
  padding: 10px 15px;
  display: flex;
  align-items: center;
  flex: 1;
}

/* レスポンシブコンテンツB */
@media (min-width: 768px) {
  .conB .container {
    display: flex;
  }
  
  .conB .text {
    flex: 1;
  }
  
  .conB h2 {
    font-size: 18px;
  }
  
  .image-container {
    max-width: 60%;
  }
  
  .qr-container {
    max-width: 120px;
  }
}

/* =============================================================================
   コンテンツセクション
   ============================================================================= */

/* カレンダー */
.calendar .container {
  padding: 20px;
}

.calendar p {
  text-align: center;
  margin-bottom: 20px;
  font-size: 14px;
}

.calendar-wrapper {
  width: 100%;
  max-width: 800px;
  margin: 0 auto 40px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.calendar-wrapper iframe {
  width: 100%;
  height: 500px;
  border: none;
}

@media (max-width: 767px) {
  .calendar-wrapper iframe {
    height: 400px;
  }
}

/* ギャラリー */
.listC .container {
  display: flex;
  flex-wrap: wrap;
  max-width: none;
  margin-top: 2px;
  margin-bottom: 10vh;
  padding: 0;
}

.listC article {
  flex: 1 1 250px;
  display: flex;
}

.listC a {
  position: relative;
  flex: 1;
  margin: 2px;
  display: block;
  border: 1px solid var(--gray-color);
  background-color: currentColor;
  color: inherit;
  text-decoration: none;
  transition: opacity 0.3s ease;
}

.listC a:hover {
  opacity: 0.8;
}

.listC .photo {
  min-height: 250px;
  background-position: center;
  background-size: cover;
  opacity: 0.9;
}

.listC .text {
  position: absolute;
  bottom: 0;
  left: 0;
  margin: 10px;
  color: var(--text-bright-color);
}

.listC h3 {
  margin: 0;
  font-size: clamp(14px, 1.2vw, 18px);
}

@media (min-width: 1000px) {
  .listC article {
    flex: 1 1 25%;
  }
}

/* タイムライン（活動履歴・沿革） */
.timeline-section {
  max-width: 1000px;
  margin: 0 auto 30px;
  padding: 0 15px;
}

.timeline-table {
  width: 100%;
  border-collapse: collapse;
  margin: 15px 0;
  background-color: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border-radius: 5px;
  overflow: hidden;
}

.timeline-table th {
  background-color: var(--main-color);
  color: white;
  padding: 12px 15px;
  text-align: left;
  font-size: 15px;
}

.timeline-table td {
  padding: 10px 15px;
  border-bottom: 1px solid #eee;
  font-size: 14px;
  line-height: 1.4;
}

.timeline-table td:first-child {
  white-space: nowrap;
  font-weight: bold;
  color: #333;
  border-right: 1px solid #eee;
  background-color: #f8f8f8;
  width: 120px;
}

.timeline-table tr:last-child td {
  border-bottom: none;
}

.timeline-table tr:hover {
  background-color: #f9f9f9;
}

/* カード形式タイムライン（沿革用） */
.card-timeline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 15px 0;
}

.era-card {
  flex: 1;
  min-width: 230px;
  background-color: white;
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  overflow: hidden;
}

.era-header {
  background-color: var(--main-color);
  color: white;
  padding: 10px 15px;
  font-weight: bold;
  font-size: 15px;
}

.era-content {
  padding: 15px;
}

.era-item {
  margin-bottom: 10px;
  position: relative;
  padding-left: 12px;
  font-size: 14px;
  line-height: 1.4;
}

.era-item:last-child {
  margin-bottom: 0;
}

.era-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  background-color: var(--main-color);
  border-radius: 50%;
}

.era-year {
  font-weight: bold;
  color: #333;
}

@media (max-width: 767px) {
  .timeline-table td:first-child {
    width: 100px;
  }
  
  .era-card {
    min-width: 100%;
  }
}

/* 新聞記事モーダル */
.newspaper-single {
  margin: 15px auto;
  max-width: 300px;
  text-align: center;
}

.newspaper-thumbnail-single {
  position: relative;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.newspaper-thumbnail-single:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(0,0,0,0.25);
}

.newspaper-thumbnail-single img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.newspaper-thumbnail-single:hover img {
  transform: scale(1.05);
}

.newspaper-overlay-single {
  position: absolute;
  inset: 0;
  background-color: rgba(0,0,0,0.7);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.newspaper-thumbnail-single:hover .newspaper-overlay-single {
  opacity: 1;
}

.newspaper-overlay-single i {
  font-size: 24px;
  margin-bottom: 8px;
}

.newspaper-overlay-single span {
  font-size: 12px;
  font-weight: bold;
}

.newspaper-caption {
  margin-top: 10px;
  font-size: 13px;
  color: #555;
  line-height: 1.4;
  padding: 8px;
  background-color: #f8f8f8;
  border-radius: 4px;
  border-left: 4px solid var(--main-color);
}

/* モーダルウィンドウ */
.news-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background-color: rgba(0,0,0,0.8);
  animation: fadeIn 0.3s ease;
}

.news-modal-content {
  position: relative;
  background-color: white;
  margin: 2% auto;
  padding: 0;
  width: 90%;
  max-width: 900px;
  border-radius: 8px;
  overflow: hidden;
  max-height: 95vh;
  display: flex;
  flex-direction: column;
}

.news-modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  color: white;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
  background-color: rgba(0,0,0,0.6);
  width: 35px;
  height: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

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

.news-modal-image {
  width: 100%;
  height: auto;
  max-height: calc(95vh - 80px);
  object-fit: contain;
}

.news-modal-info {
  padding: 15px;
  background-color: #f8f8f8;
  color: #333;
  font-size: 14px;
  text-align: center;
  border-top: 2px solid var(--main-color);
}

@media (max-width: 767px) {
  .newspaper-single {
    max-width: 250px;
  }
  
  .news-modal-content {
    width: 95%;
    margin: 1% auto;
    max-height: 98vh;
  }
  
  .news-modal-close {
    width: 30px;
    height: 30px;
    font-size: 24px;
    top: 5px;
    right: 5px;
  }
}

/* アクセス */
.location {
  margin-bottom: 20px;
}

.location p {
  margin: 0;
  padding: 20px;
  font-size: 14px;
  text-align: center;
}

.location iframe {
  width: 100%;
  height: 400px;
  vertical-align: bottom;
}

/* =============================================================================
   フッター
   ============================================================================= */
footer {
  color: var(--text-bright-color);
  background-color: var(--dark-main-color);
}

footer .container {
  padding: 40px 20px;
}

/* ソーシャルメディア */
.social-media {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.facebook-widget h3,
.instagram-widget h3,
.footB h3 {
  margin: 0 0 10px;
  border-bottom: 1px solid currentColor;
  font-size: 14px;
}

.instagram-widget {
  max-width: 340px;
}

.instagram-media {
  max-width: 340px !important;
  min-width: auto !important;
  margin: 0 !important;
}

/* フッターナビゲーション */
.footB ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footB li {
  font-size: 12px;
  line-height: 1.8;
}

.social-links ul {
  display: flex;
  gap: 15px;
}

.social-links li {
  font-size: 14px;
}

.social-links a {
  color: var(--text-bright-color);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: color 0.3s ease;
}

.social-links a:hover {
  color: var(--accent-color);
}

.social-links i {
  font-size: 18px;
}

/* フッターコピーライト */
.footC {
  font-size: 12px;
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

/* レスポンシブフッター */
@media (min-width: 768px) {
  .social-media {
    flex-direction: row;
    flex-wrap: wrap;
  }
  
  .facebook-widget,
  .instagram-widget {
    flex: 1;
    min-width: 340px;
  }
}

/* =============================================================================
   アニメーション
   ============================================================================= */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

/* 旧来のボタンスタイルとの互換性 */
.conB a {
  @extend .btn;
}

.conB a:not([download]) {
  @extend .btn--external;
}

.conB a[download] {
  @extend .btn--download;
}

.conB a.with-icon {
  /* 既にbtnクラスで対応済み */
}