
@media (max-width: 768px) {
  /* 1. 全体設定 */
  html {
    font-size: 95%;
  }

  /* 2. ヘッダーのスマホ最適化 */
  .site-header {
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: #fff;
    background-image: url('/park/img/common/header_bg_sp-80.jpg');
    background-size: cover;
  }

  .header-container {
    padding: 0 1rem;
    height: 60px;
    align-items: center; 
  }

  /* PC用のユーティリティ（文字サイズ等）  */
  .site-header .header-utilities {
    display: none !important;
  }

  .complex-logo {
    width: 3.5rem; 
  }

  .library-title {
    font-size: 1rem !important;
  }

  .access-link {
    width: 50% !important;       
    max-width: none !important;
    margin: 0 auto 1rem auto !important; 
    justify-content: center !important;  
    border: 1px solid #333 !important;
    height: 3rem !important; 
    background-color: #fff;
  }

  /* 3. ハンバーガーメニューボタン（三本線）  */
  .menu-toggle {
    display: block !important;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 1100;
  }

  .menu-toggle-icon {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #333;
    transition: all 0.3s;
    position: relative;
  }

  .menu-toggle-icon::before,
  .menu-toggle-icon::after {
    content: '';
    display: block;
    width: 25px; height: 2px;
    background-color: #333;
    position: absolute;
    left: 0;
    transition: all 0.3s;
  }

  .menu-toggle-icon::before { top: -8px; }
  .menu-toggle-icon::after { top: 8px; }

  /* メニュー展開時のアイコン変化（×印）  */
  body.menu-open .menu-toggle-icon {
    background-color: transparent;
  }
  body.menu-open .menu-toggle-icon::before {
    transform: rotate(45deg);
    top: 0;
  }
  body.menu-open .menu-toggle-icon::after {
    transform: rotate(-45deg);
    top: 0;
  }

  /* 4. ナビゲーションドロワー本体  */
  .nav-wrapper {
    display: flex !important;
    position: fixed;
    top: 0;
    right: -100%; 
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: #fff;
    z-index: 2000;
    transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    flex-direction: column;
    padding: 15px 0;
    box-shadow: -10px 0 20px rgba(0,0,0,0.1);
    overflow-y: auto;
  }

  body.menu-open .nav-wrapper {
    right: 0; 
  }

  /* ドロワー内の「閉じる」ボタン  */
  .btn-close-menu {
    align-self: flex-end;
    background: #f4f4f4;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 6px 15px;
    font-size: 0.85rem;
    margin: 0 5% 1rem 0;
    color: #333;
  }

  /* ドロワー内のナビボタンを縦並びに最適化  */
  .nav-wrapper .nav-button {
    width: 90% !important;
    margin: 0.5rem auto !important;
    height: 3.5rem !important;
    border-color: var(--primary-yellow) !important;
    color: #333;
  }

  .nav-wrapper .nav-list {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 0.5rem !important; 
    padding: 0 !important;
    width: 100% !important;
  }

  .nav-wrapper .nav-item {
    width: 100% !important;
    max-width: none !important; 
    flex: none !important;
  }

  .nav-wrapper .nav-button {
    width: 90% !important;   
    height: 3.8rem !important; 
    margin: 0 auto !important;
    display: flex !important;
    justify-content: center !important;
    font-size: 1.1rem !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
  }

  .nav-wrapper #mobile-utilities {
    display: flex !important;
    flex-direction: column !important; 
    align-items: center !important; 
    justify-content: center !important;
    gap: 1rem !important;
    padding: 1rem 0 !important;
    width: 100% !important;
    border-bottom: 1px solid #eee;
    margin-bottom: 1rem;
  }

  /* 文字サイズ切替の枠自体を中央配置・幅調整 */
  .nav-wrapper .font-size-selector {
    width: auto !important; 
    display: inline-flex !important; 
    justify-content: center !important;
    margin: 0 auto !important; 
    border: 1px solid #5f5f5f;
    padding: 0 1rem !important;
    height: 3rem !important; 
  }

  /* 5. TOPページ要素の調整（index.cssの補完）  */
  .park-img {
    max-height: 20rem; 
  }

  .notice-body {
      margin-left: 1rem;
      padding: 0 1rem 1.5rem 1rem;
      margin-top: 0;
    }

  /* 6. フッターの調整  */
  .footer-bg-container {
    height: auto !important; 
    min-height: 350px; 
    padding: 20px 0;
  }

  /* 背景画像が切れないように調整 */
  .footer-custom-bg {
    height: 100%;
    object-fit: cover;
  }

  .footer-bg-container {
    min-height: 120px;
  }

  .facility-list {
    flex-direction: column; 
    align-items: center;
    gap: 1rem; 
    width: 100%;
    padding: 0;
  }

  .facility-btn {
    width: 90% !important; 
    min-width: 0 !important;
    height: auto !important;
    min-height: 2rem; 
    padding: 0.8rem 1.5rem 0.8rem 2rem !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.4 !important; 
    overflow: hidden;
    border: solid 1px #333;
  }

  .facility-btn::before {
    width: 10px !important; 
    opacity: 1 !important;
    left: 0;
    top: 0;
    height: 100%;
  }

  .facility-btn:hover::before {
    width: 10px !important;
    opacity: 1 !important;
  }

  .facility-btn span {
    white-space: normal !important;
    word-break: break-all;
  }

  .footer-contact-list {
    grid-template-columns: 1fr;
    gap: 0.8rem;
  }

  .footer-contact-row{
    flex-direction: column;
    gap: 0.5rem;
  }

  .footer-divider{
    display: none;
  }

  .footer-contact-list li {
    font-size: 0.85rem;
  }

  .footer-contact-area {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .footer-inquiry {
    padding-left: 0;
    border-left: none;
    border-top: 1px solid #ccc;
    padding-top: 1.5rem;
  }

  .tel-link {
    pointer-events: auto;
    text-decoration: underline;
  }
  
  /* PC用メインメニューを隠す  */
  body > .global-nav {
    display: none !important;
  }
}