/* -------------------------- */
/* 1. 基本設定と共通変数 */

html {
  font-size: 100%; 
  transition: font-size 0.2s ease-out;
}

:root {
  --primary-yellow: #ffb300;
  --soft-yellow: #ffe082;
  --text-yellow: #912000;
  --bg-yellow-light: #fffde7;
  --text-yellow-dark: #912000;
  --content-width: 75rem;
}

/* 文字サイズ変更用 */
html.font-size-l { font-size: 115%; }
html.font-size-s { font-size: 85%; }

body {
  font-family: "Helvetica Neue", "Helvetica", "Arial", "Hiragino Sans", "Hiragino Kaku Gothic ProN", "BIZ UDPGothic", "Meiryo", sans-serif;
  line-height: 1.6;
  color: #333;
  margin: 0;
  background-color: #fff;
}

a {
  color: inherit;
  text-decoration: none;
}

.search-info-text a:not(.link-yellow) {
  color: var(--text-yellow-dark);
  text-decoration: underline;
}

/* -------------------------- */
/* 2. ヘッダー (header.inc) */

.site-header {
  width: 100%;
  padding: 0.5rem 0 1rem 0;
  background-image: url('/park/img/common/header_bg-80.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #fff;
  min-height: 50px; 
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.header-container {
  max-width: var(--content-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 1.25rem 0.5rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  box-sizing: border-box;
}

.header-branding {
  display: flex;
  align-items: flex-end;
}

.complex-logo {
  height: auto;
  width: 7.5rem;
}

.library-title-area {
  margin: 0.75rem 0.9375rem;
  padding-left: 0.9375rem;
  border-left: 1px solid #444;
  line-height: 1;
}

.library-home-link {
  text-decoration: none;
}

.library-title {
  font-size: 1.5rem;
  font-weight: bold;
  color: #7756A6;
  letter-spacing: 0.02em;
}

/* 右側：ユーティリティ（文字サイズ・アクセス） */
.header-utilities {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.font-size-selector {
  background-color: #fff;
  border: 1px solid #5f5f5f;
  border-radius: 3.125rem;
  padding: 0 0.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
}

.utility-label {
  font-size: 0.875rem;
  font-weight: bold;
  margin-right: 8px;
  color: #555;
}

.font-btn-group {
  display: flex;
  background: #eee;
  border-radius: 1.25rem;
  padding: 2px;
  position: relative;
}

.font-btn-indicator {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 2rem;
  height: 2rem;
  background-color: #f5a600; 
  border-radius: 50%;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
  border: 1px solid rgba(0,0,0,0.1); 
}

.font-btn {
  position: relative;
  z-index: 1;
  width: 2rem;
  height: 2rem;
  border: none;
  background: transparent;
  font-size: 0.875rem;
  font-weight: bold;
  cursor: pointer;
  color: #333;
}

.font-btn.is-active {
  color: #333 !important;
}

/* インジケーター移動距離 */
.font-btn-group:has(#btn-font-l.is-active) .font-btn-indicator { transform: translateX(0); }
.font-btn-group:has(#btn-font-m.is-active) .font-btn-indicator { transform: translateX(2rem); }
.font-btn-group:has(#btn-font-s.is-active) .font-btn-indicator { transform: translateX(4rem); }

.access-link {
  height: 2.75rem;
  display: flex;
  align-items: center;
  padding: 0 1.25rem;
  background-color: #fff;
  border: 1px solid #5f5f5f;
  border-radius: 3.125rem;
  font-size: 0.875rem;
  font-weight: bold;
  text-decoration: none;
  color: #333;
  transition: all 0.2s;
}

.access-link:hover {
  background-color: #f8f8f8;
  border-color: #999;
}

/* -------------------------- */
/* 3. ナビゲーション (nav.inc) */

.global-nav {
  width: 100%;
  padding: 1.5rem 0;
}

.nav-list {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  list-style: none;
  display: flex;
  justify-content: space-around;
  gap: 1rem;
}

.nav-item {
  flex: 1;
  max-width: 12.5rem; 
}

.nav-button {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 3.5rem;
  background-color: #fff;
  border: 2px solid var(--primary-yellow);
  border-radius: 0.75rem;
  text-decoration: none;
  color: #333;
  font-weight: bold;
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.nav-button:hover {
  background-color: var(--bg-yellow-light);
  border-color: var(--primary-yellow);
  transform: translateY(-2px);
  color: #333;
}

/* --- 施設ボタン（共通） --- */
.facility-list {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}

.facility-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 11rem;
  height: 3rem;
  background-color: #fff;
  border: 1px solid #717072;
  border-radius: 50px;
  text-decoration: none;
  color: #333;
  font-weight: bold;
  font-size: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  overflow: hidden;
  z-index: 1;
}

.facility-btn::before {
  content: "";
  position: absolute;
  left: 0; top: 0; width: 8px; height: 100%;
  z-index: -1;
  transition: all 0.3s ease;
}

/* 個別カラー */
.btn-library::before { background-color: #a1d8e2;} 
.btn-park::before    { background-color: #f6d465;} 
.btn-sweets::before  { background-color: #f1a7b9; } 

.facility-btn:hover::before { width: 100%; opacity: 0.15; }
.facility-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(0,0,0,0.12); color: #333; }

/* --- 4. フッター (footer.inc)  --- */
.site-footer {
  width: 100%;
  margin-top: 2rem;
  border-top: 4px solid var(--primary-yellow);
}

.footer-bg-container {
  position: relative;
  width: 100%;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden; 
}

.footer-custom-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1; 
}

.footer-content {
  position: relative;
  z-index: 2;
  max-width: var(--content-width);
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

/* 連絡先エリア（住所・電話・メール）の横並び設定 */
.footer-contact-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
}

/* 左側：施設情報ブロック（住所・電話） */
.footer-info-block {
  text-align: left;
  line-height: 1.6; 
}

.footer-facility-name {
  font-weight: 600;
  font-size: 1rem;
  margin: 0 0 4px 0;
  color: #333;
}

.footer-address,
.footer-tel {
  font-size: 0.85rem;
  color: #555;
  margin: 0;
}

.footer-tel {
  margin-top: 4px;
}

.tel-link {
  text-decoration: none;
  color: inherit;
  font-weight: normal; 
}

/* 中央：仕切り線 */
.footer-divider {
  width: 1px;
  height: 40px;
  background-color: #7756A6; 
}

/* 右側：メールお問い合わせボタン */
.btn-mail-contact {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: #333;
  font-weight: bold;
  font-size: 1.2rem;
  transition: opacity 0.2s; 
}

.btn-mail-contact i {
  font-size: 2rem;
  color: #333; 
}

.btn-mail-contact:hover {
  opacity: 0.7;
}

/* コピーライト */
.footer-copyright {
  background-color: #444;
  color: #fff;
  padding: 0.8rem 0;
  text-align: center;
  font-size: 0.8rem; 
}

/* ページトップボタン */
.page-top-btn {
  position: fixed;
  right: 1.5rem; bottom: 1.5rem;
  width: 3.5rem; height: 3.5rem;
  background-color: var(--primary-yellow);
  color: #333 !important;
  border: 2px solid #fff !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3) !important;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 1000;
}

.page-top-btn.is-show { opacity: 1; visibility: visible; }

.facility-btn, 
.sub-btn, 
.page-top-btn {
  color: #333 !important; 
}

/* スマホ用 */
@media (max-width: 768px) {
  .facility-list { flex-direction: column; align-items: center; }
  .facility-btn { width: 100%; }
  .footer-contact-single { padding-left: 0.5rem; }
}

.menu-toggle, .nav-wrapper {
  display: none;
}

/* フォーカス時の視認性（アクセシビリティ） */
a:focus, button:focus {
  outline: 3px solid #005aad;
  outline-offset: 2px;
}

.icon-circle.red-tint {
  background-color: var(--soft-yellow);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-yellow);
  font-size: 1.4rem;
}