/* モバイルビュー (834px以下) */
@media screen and (max-width: 834px) {

  /* ヘッダー・サイドバー */
  .sidebar {
    width: 100%;
    min-width: auto;
    height: 82px;
    flex-direction: row;
    padding: 0;
    box-sizing: border-box;
    position: relative;
    z-index: 50;
  }

  .sidebar-inner {
    width: 90%;
    max-width: 834px;
    margin: 0 auto;
    padding: 0;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 100%;
  }

  /* ロゴ */
  .logo-container {
    flex-direction: row;
    width: auto;
    align-items: center;
    margin: 0;
  }

  body.sub-page .logo-container {
    position: absolute;
    top: 24px;
    left: 5%;
    z-index: 20;
  }

  .logo {
    max-width: 104px;
    width: 104px;
    margin: 0;
    padding: 0;
  }

  .logo-lower {
    max-width: 104px;
    width: 104px;
    margin: 0;
    padding: 0;
  }

  .logo-lower .desktop-logo {
    display: none !important;
  }

  .logo-lower .sp-logo {
    display: block !important;
    margin: 0 auto;
  }

  .logo img.desktop-logo {
    display: none;
  }

  .logo img.sp-logo {
    display: block;
    width: 100%;
  }

  .business-hours {
    display: none;
  }

  /* ハンバーガーメニュー */
  .hamburger-menu {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4.5px;
    z-index: 100;
    cursor: pointer;
    width: 30px;
    height: 30px;
    position: fixed;
    top: 26px;
    right: 5%;
  }

  .hamburger-line {
    width: 30px;
    height: 10px;
  }

  .home-menu-item {
    display: block;
  }

  .home-menu-item img {
    max-height: 17px;
    width: auto;
  }

  /* SNSアイコン */
  .sns-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 43.5px;
    margin-top: 0px;
  }

  .sns-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 27px;
  }

  .sns-icon img {
    max-width: 100%;
    height: auto;
    display: block;
  }

  .sns-icon:nth-child(1) img {
    max-width: 27px;
  }

  .sns-icon:nth-child(2) img {
    max-width: 27px;
  }

  .sns-icon:nth-child(3) img {
    max-width: 22.5px;
    margin-top: 0;
    vertical-align: middle;
  }

  .sns-icon:hover {
    transform: none;
  }

  .nav-item:nth-child(7) a.outlink:hover .outlink-icon {
    transform: none;
  }

  body.sub-page .main-visual {
    width: 100% !important;
    height: 100vh !important;
    margin-top: 82px;
  }
}

/* タブレット調整 (744px～834px) */
@media screen and (min-width: 744px) and (max-width: 834px) {}

/* モバイル (480px以下) */
@media screen and (max-width: 480px) {}

/* デスクトップ表示 (835px以上) */
@media screen and (min-width: 835px) {

  .home-menu-item {
    display: none;
  }

  .logo img.sp-logo {
    display: none;
  }

  .logo img.desktop-logo {
    display: block;
  }

  .logo-lower .sp-logo {
    display: none !important;
  }

  .logo-lower .desktop-logo {
    display: block !important;
  }

  body:not(.sub-page) .nav:not(.active) {
    display: flex;
    position: static;
    opacity: 1;
    height: auto;
    transform: none;
    transition: none;
  }

  body.sub-page .nav:not(.active) {
    display: none !important;
    opacity: 0 !important;
    transform: translateY(-100px) !important;
  }

  .sns-icons {
    display: none;
  }

  .sns-icon:hover {
    transform: translateY(-2px);
  }

  .nav-item:nth-child(7) a.outlink:hover .outlink-icon {
    transform: translateY(-1px);
    transition: transform 0.3s ease;
  }

  .hamburger-menu .hamburger-line {
    width: 44px;
  }
}

/* PCビュー時の高さ調整 */
@media screen and (min-width: 835px) {
  .sidebar-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
  }

  .logo-container {
    flex-shrink: 0;
  }

  .nav {
    margin-top: auto;
  }

  @media screen and (max-height: 754px) {
    body:not(.sub-page) .nav-list {
      gap: 5px;
    }

    body:not(.sub-page) .nav-item a img {
      transform: scale(0.9);
      transform-origin: left center;
    }

    body:not(.sub-page) .nav-item:not(.home-menu-item) a {
      padding-bottom: 12px;
    }
  }
}

/* 左ナビの表示制御 */
@media screen and (min-width: 835px) {

  body.top-page.top-position .sidebar .nav {
    display: flex;
    opacity: 1;
    transform: none;
    transition: none;
  }

  body.menu-open .sidebar .nav:not(.active) {
    display: none;
  }
}