/* リセットCSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* 基本設定 */
body {
  font-family: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  color: #1f2937;
  background-color: #f8fafc;
}
/*headerメニューここからコピー*/
.nav-menu {
    display: none;
    /* Hidden by default for mobile (controlled by JS for hamburger) */
    flex-direction: column;
    position: absolute;
    top: 4rem;
    /* Header height */
    left: 0;
    width: 100%;
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    padding: 1rem 0;
    gap: 0;
    z-index: 1000;
}

.nav-menu.active {
    display: flex;
}

.nav-menu .nav-link {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}

.nav-menu .nav-link:last-child {
    border-bottom: none;
}

.logo-image {
    width: 50%;
    height: auto;
}


.nav {
    display: none;
    gap: 1.5rem;
}
.mobile-menu-btn {
    display: flex;
    /* Visible by default for mobile */
    flex-direction: column;
    gap: 0.25rem;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    width: 1.5rem;
    height: 2px;
    background: #374151;
    transition: all 0.3s;
}

.header {
    background: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid #e5e7eb;
    top: 0;
    margin :0 auto 0.5rem auto;
}
.header-container {
  padding:0 1rem 1rem 1rem;
}
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4rem;
}

.facility-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.facility-header i {
    color: #2563eb;
    font-size: 1.5rem;
}

.facility-header h3 {
    font-size: 1.5rem;
    font-weight: bold;
    font-size: clamp(8px, 5vw, 38px);
    color: #1e3a8a;
}
.logo-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    background: #2563eb;
    padding: 0.5rem;
    border-radius: 0.5rem;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text > div {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
}

.logo-text p {
    font-size: 0.875rem;
    color: #6b7280;
}

/*headerメニューここまでコピー*/

/* Footerここからコピー */
.footer {
    padding: 1rem 0;
}


.footer-copyright {
    text-align: center;
}

.footer-copyright p {
    font-size: 0.875rem;
}
/*footerここまでコピー*/

/*ロケーションここから*/

.location-section {
  padding: 3rem 0;
}

.location-card {
  max-width: 32rem;
  margin: 0 auto;
  background: white;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}
.location-card h2 {
  text-align: center;
  padding-top:1.5rem;
  margin-bottom:0;
}
.location-content {
  padding: 1.5rem;
}

.address-info {
  display: flex;
  align-items: flex-start;
  gap: 1%;
  margin-bottom: 1rem;
}

.address {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
}
.address > span {
  font-size: 0.9rem;
    font-weight: 400;
}

.landmark {
   padding-left: 6%;
  color: #000000;
  margin-top: 0.5rem;
}

.landmark-info {
  background: #eff6ff;
  padding: 1rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  color: #1e40af;
}
.contact-item {
  padding-left: 6%;
  display: flex;
  align-items: center;
  gap: 1%;
}
.contact-item02 {
  padding-left: 6%;
  display: flex;
  align-items:flex-start;
  gap: 1%;
}
/*ロケーションここまで*/
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

/* ヘッダー */
.header02 {
  text-align: center;
  margin-bottom: 2rem;
  padding: 2rem 0;
  background: linear-gradient(to right, #2563eb, #1e40af);
  color: white;
  border-radius: 12px;
}

.header02-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.header02-subtitle {
  font-size: 1rem;
  opacity: 0.9;
}

/* フィルター */
.filters {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
}

.search-box {
  margin-bottom: 1rem;
}

.search-input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.search-input:focus {
  outline: none;
  border-color: #164e63;
}

.filter-row,
.archive-row {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.filter-row:last-child,
.archive-row:last-child {
  margin-bottom: 0;
}

.filter-select {
  flex: 1;
  padding: 0.75rem;
  border: 2px solid #e5e7eb;
  border-radius: 8px;
  font-size: 0.875rem;
  background: white;
  transition: border-color 0.2s;
}

.filter-select:focus {
  outline: none;
  border-color: #164e63;
}

/* 結果表示 */
.results-info {
  margin-bottom: 1rem;
}

.results-text {
  font-size: 0.875rem;
  color: #6b7280;
  text-align: center;
}

/* お知らせ一覧 */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.news-item {
  background: white;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  display: block;
}

.news-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.news-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.news-date {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
}

.new-badge {
  background: #dc2626;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.category-badge {
  background: #164e63;
  color: white;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
}

.news-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.4;
}

/* ページネーション */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

.pagination-btn {
  padding: 0.5rem 0.75rem;
  border: 2px solid #e5e7eb;
  background: white;
  color: #6b7280;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.875rem;
  transition: all 0.2s;
  text-decoration: none;
  display: inline-block;
}

.pagination-btn:hover:not(.disabled) {
  border-color: #164e63;
  color: #164e63;
}

.pagination-btn.active {
  background: #164e63;
  color: white;
  border-color: #164e63;
}

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

/* ローディング */
.loading {
  text-align: center;
  padding: 2rem;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #e5e7eb;
  border-top: 4px solid #164e63;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

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

.hidden {
  display: none;
}

/* 記事ページ */
.breadcrumb {
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
}

.breadcrumb-link {
  color: #164e63;
  text-decoration: none;
}

.breadcrumb-link:hover {
  text-decoration: underline;
}

.breadcrumb-separator {
  margin: 0 0.5rem;
  color: #6b7280;
}

.breadcrumb-current {
  color: #6b7280;
}

.article {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.article-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1.5rem;
  line-height: 1.3;
}

.article-meta {
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
}

.meta-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.meta-row:last-child {
  margin-bottom: 0;
}

.meta-label {
  font-weight: 600;
  color: #374151;
  min-width: 80px;
}

.meta-value {
  color: #6b7280;
}

.tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.tag {
  background: #f3f4f6;
  color: #374151;
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
}

.article-content {
  font-size: 1rem;
  line-height: 1.7;
  color: #374151;
}

.article-content h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
  color: #1f2937;
}

.article-content p {
  margin-bottom: 1rem;
}

.article-content ul,
.article-content ol {
  margin: 1rem 0;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-cta {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid #e5e7eb;
}

.cta-button {
  display: inline-block;
  background: #164e63;
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  transition: background-color 0.2s;
}

.cta-button:hover {
  background: #0f3a47;
}

/* 関連記事 */
.related-articles {
  margin-bottom: 2rem;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1rem;
}

.related-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.related-item {
  background: white;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s;
}

.related-item:hover {
  transform: translateY(-1px);
}

.related-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.25rem;
}

.related-date {
  font-size: 0.75rem;
  color: #6b7280;
}

/* 記事ナビゲーション */
.article-nav {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.nav-link {
  flex: 1;
  background: white;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s;
}

.nav-link:hover {
  transform: translateY(-1px);
}

.nav-link.prev {
  text-align: left;
}

.nav-link.next {
  text-align: right;
}

.nav-label {
  display: block;
  font-size: 0.75rem;
  color: #6b7280;
  margin-bottom: 0.25rem;
}

.nav-title {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #1f2937;
}

/* タブレット以上 */
@media (min-width: 768px) {
  .container {
    padding: 2rem;
  }

  .header02-title {
    font-size: 2.5rem;
  }

  .filter-row,
  .archive-row {
    flex-wrap: nowrap;
  }

  .filter-select {
    flex: none;
    min-width: 150px;
  }

  .news-header {
    flex-wrap: nowrap;
  }

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

  .article-nav {
    flex-direction: row;
  }

  .nav-link {
    max-width: 45%;
  }
}

/* デスクトップ */
@media (min-width: 1024px) {
  .filters {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.5rem;
    align-items: start;
  }

  .search-box {
    margin-bottom: 0;
  }

  .filter-controls {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
  }

  .article {
    padding: 3rem;
  }

  .article-title {
    font-size: 2.25rem;
  }
}
