/* SPヘッダー改善 */
@media screen and (max-width: 768px) {
  /* ヘッダー */
  .rv_logo.dnl {
    display: block !important;
    background: #2c4d3a;
    padding: 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }

  .rv_logo .logo {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .rv_logo .logo a {
    display: flex;
    align-items: center;
  }

  .rv_logo .logo img {
    height: 40px;
    width: auto;
  }

  /* ハンバーガーメニューボタン */
  .sp-menu-btn {
    width: 40px;
    height: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
  }

  .sp-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    transition: all 0.3s ease;
  }

  .sp-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .sp-menu-btn.active span:nth-child(2) {
    opacity: 0;
  }

  .sp-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  /* スライドメニュー */
  .sp-slide-menu {
    position: fixed;
    top: 64px;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: calc(100vh - 64px);
    background: #fff;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 9998;
    overflow-y: auto;
  }

  .sp-slide-menu.active {
    right: 0;
  }

  .sp-slide-menu nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
  }

  .sp-slide-menu nav ul li {
    border-bottom: 1px solid #eee;
  }

  .sp-slide-menu nav ul li a {
    display: block;
    padding: 16px 20px;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    transition: background 0.3s ease;
  }

  .sp-slide-menu nav ul li a:hover {
    background: #f5f5f5;
  }

  /* 予約ボタン */
  .sp-reservation-btn {
    display: block;
    margin: 20px;
    padding: 14px;
    background: #c9302c;
    color: #fff;
    text-align: center;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 14px;
  }

  /* オーバーレイ */
  .sp-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    z-index: 9997;
  }

  .sp-menu-overlay.active {
    display: block;
  }

  /* メインコンテンツのpadding調整 */
  main {
    padding-top: 64px;
  }

  /* ベストレートヘッダー */
  .bes_head {
    padding: 30px 15px;
    background: linear-gradient(135deg, #f8f8f8 0%, #fff 100%);
  }

  .ribbon9 {
    position: relative;
    padding: 0;
    margin-bottom: 20px;
  }

  .ribbon9 h3 {
    font-size: 20px;
    line-height: 1.4;
    text-align: center;
    color: #2c4d3a;
    font-weight: bold;
    padding: 12px 20px;
    background: #fff;
    border: 2px solid #2c4d3a;
    border-radius: 4px;
    position: relative;
  }

  .bes_tit_cont {
    text-align: center;
  }

  .bes_tit_cont span {
    display: block;
    font-size: 16px;
    color: #c9302c;
    font-weight: bold;
    margin-bottom: 12px;
  }

  .bes_tit_cont p {
    font-size: 13px;
    line-height: 1.6;
    color: #666;
  }

  /* フッター改善 */
  .footer_sp {
    background: #2c4d3a;
    padding: 40px 20px 30px;
    color: #fff;
    text-align: center;
  }

  .footer_sp .footer-txt {
    max-width: 400px;
    margin: 0 auto;
  }

  .footer_sp .f_logo {
    margin-bottom: 25px;
  }

  .footer_sp .f_logo img {
    height: 50px;
    width: auto;
  }

  .footer_sp address {
    font-style: normal;
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 15px;
    color: rgba(255,255,255,0.9);
  }

  .footer_sp p {
    font-size: 13px;
    line-height: 1.8;
    margin-bottom: 10px;
    color: rgba(255,255,255,0.9);
  }

  /* フッターナビゲーション */
  .footer-nav {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.2);
    border-bottom: 1px solid rgba(255,255,255,0.2);
  }

  .footer-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px 30px;
  }

  .footer-nav ul li a {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
  }

  .footer-nav ul li a:hover {
    color: #fff;
  }

  /* SNSリンク */
  .footer-sns {
    margin: 25px 0;
    display: flex;
    justify-content: center;
    gap: 20px;
  }

  .footer-sns a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: background 0.3s ease;
  }

  .footer-sns a:hover {
    background: rgba(255,255,255,0.2);
  }

  .footer-sns i {
    font-size: 18px;
  }

  /* コピーライト */
  .footer_sp .copyright {
    font-size: 11px;
    color: rgba(255,255,255,0.7);
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
  }

  /* PCヘッダーとフッターを非表示 */
  .display-none-md {
    display: none !important;
  }

  .footer_pc {
    display: none !important;
  }

  /* コンテンツのパディング調整 */
  .cont {
    padding: 0;
  }

  #listel-privilege-root {
    padding: 20px 15px;
  }
}

/* タブレット対応 */
@media screen and (min-width: 769px) and (max-width: 1024px) {
  .rv_logo.dnl {
    display: none !important;
  }
  
  .footer_sp {
    display: none !important;
  }
  
  /* タブレットでもベストレートヘッダー非表示 */
  .bes_head {
    display: none !important;
  }
  
  /* SPメニュー関連を非表示 */
  .sp-slide-menu {
    display: none !important;
  }
  
  .sp-menu-overlay {
    display: none !important;
  }
}

/* PC対応 */
@media screen and (min-width: 1025px) {
  .rv_logo.dnl {
    display: none !important;
  }
  
  .footer_sp.dnl {
    display: none !important;
  }
  
  /* PCではベストレートヘッダーも非表示 */
  .bes_head {
    display: none !important;
  }
  
  /* SPメニュー関連を非表示 */
  .sp-slide-menu {
    display: none !important;
  }
  
  .sp-menu-overlay {
    display: none !important;
  }
}