/* ===== SP メニュー (Figma node 2287:209) ===== */
@media (max-width: 1399px) {
  .navigation {
    position: fixed;
    right: 0;
    top: 5px;
    width: 216px;
    height: auto !important;
    max-height: calc(100vh - 10px);
    background: rgba(255, 255, 255, 0.96);
    border-radius: 12px 0 0 12px;
    box-shadow: none !important;
    z-index: 10000;
    transform: translateX(110%) !important;
    overflow: hidden;
    transition: transform 0.15s linear;
  }

  .navigation.is-slided {
    transform: translateX(0%) !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.25) !important;
    z-index: 10000 !important;
  }

  .navigation-container {
    display: block !important;
    position: relative;
    padding: 38px 0 30px 32px;
    height: auto !important;
    max-height: calc(100vh - 10px);
    box-sizing: border-box;
    overflow-y: auto;
  }

  /* 閉じるボタン (右上 ×) */
  .navigation-close {
    position: absolute;
    top: 13px;
    right: 15px;
    width: 22px;
    height: 22px;
    cursor: pointer;
  }

  .navigation-close img {
    width: 22px;
    height: 22px;
    display: block;
  }

  /* 上段: Top + マイページ 横並び */
  .navigation-top {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 30px;
    margin: 0 0 26px;
    padding-left: 8px;
  }

  .navigation-top-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-decoration: none;
  }

  .navigation-top-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
  }

  .navigation-top-icon img {
    display: block;
    width: auto;
    height: 20px;
    max-width: 22px;
  }

  /* マイページの右上 赤丸バッジ */
  .navigation-top-badge {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #f03c3c;
    border: 1.5px solid #fff;
  }

  .navigation-top-text {
    color: #f03c3c;
    text-align: center;
    font-family: "Zen Maru Gothic", sans-serif;
    font-weight: 500;
    font-size: 11px;
    line-height: 1;
    letter-spacing: -0.44px;
  }

  .navigation-top-item--mypage .navigation-top-text {
    font-family: "Noto Sans JP", sans-serif;
    font-weight: 500;
  }

  /* メインメニュー */
  .navigation-list {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .navigation-list li a {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #f03c3c;
    text-decoration: none;
  }

  .navigation-list-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
  }

  .navigation-list-icon img {
    display: block;
    width: auto;
    height: 20px;
    max-width: 22px;
  }

  .navigation-list-icon i {
    font-size: 18px;
    color: #f03c3c;
    line-height: 1;
  }

  .navigation-list-text {
    color: #f03c3c;
    font-family: "Zen Maru Gothic", sans-serif;
    font-weight: 700;
    font-size: 15px;
    line-height: 15px;
    letter-spacing: 0.3px;
  }

  /* フッターリンク (グレー細字) */
  .navigation-sublist {
    list-style: none;
    margin: 0;
    padding: 0 0 0 38px;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .navigation-sublist li a {
    color: #4d4d4d;
    text-decoration: none;
    font-family: "Zen Maru Gothic", sans-serif;
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 0.22px;
  }

  /* === SP メニュー ポップアップ (出発地 / 国内 / 海外 共通) (Figma 2691:21960) ===
   * .navigation-popup       — 第一階層 (エリア/地方一覧)
   * .navigation-popup-prefs — 第二階層 (都道府県/国 一覧)
   * 3 種類 (.navigation-dept / .navigation-dest / .navigation-abroad) の wrapper にも
   * 同時に付与され、共通の CSS が当たる. */
  .navigation-popup {
    position: fixed;
    right: 0;
    top: 5px;
    width: 216px;
    height: 560px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 12px 0 0 12px;
    box-shadow: none !important;
    z-index: 10001;
    padding: 38px 0 30px 38px;
    box-sizing: border-box;
    overflow-y: auto;
    transform: translateX(110%) !important;
    transition: transform 0.15s linear;
  }

  .navigation-popup.is-open {
    transform: translateX(0%) !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.25) !important;
  }

  .navigation-popup-close {
    position: absolute;
    top: 13px;
    right: 15px;
    width: 22px;
    height: 22px;
    cursor: pointer;
    z-index: 2;
    /* 都道府県パネルが上に重なっても × が押せるように */
  }

  .navigation-popup-close img {
    display: block;
    width: 22px;
    height: 22px;
  }

  /* エリア一覧 */
  .navigation-popup-areas {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 28px;
  }

  .navigation-popup-areas li button {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #f03c3c;
    font-family: "Zen Maru Gothic", sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 15px;
    letter-spacing: 0.36px;
    text-align: left;
  }

  /* 国内TOP / 海外TOP リンク (国内/海外 popup のみ) */
  .navigation-popup-areas-top a {
    display: block;
    color: #f03c3c;
    text-decoration: none;
    font-family: "Zen Maru Gothic", sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 15px;
    letter-spacing: 0.36px;
  }

  /* "目的地" などのセクションラベル (区切り) */
  .navigation-popup-areas-label {
    color: #999;
    font-family: "Zen Maru Gothic", sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 1;
    letter-spacing: 0.24px;
    margin-top: -10px; /* 直前 li との gap 詰め */
  }

  /* 第二階層 (都道府県/国 一覧) ポップアップ (Figma 2691:22047) */
  .navigation-popup-prefs {
    position: fixed;
    right: 0;
    top: 5px;
    width: 216px;
    height: 560px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 12px 0 0 12px;
    box-shadow: none !important;
    z-index: 10002;
    padding: 38px 0 30px 38px;
    box-sizing: border-box;
    overflow-y: auto;
    transform: translateX(110%) !important;
    transition: transform 0.15s linear;
  }

  .navigation-popup-prefs.is-open {
    transform: translateX(0) !important;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.25) !important;
  }

  .navigation-popup-prefs-close {
    position: absolute;
    top: 13px;
    right: 15px;
    width: 22px;
    height: 22px;
    cursor: pointer;
    z-index: 2;
  }

  .navigation-popup-prefs-close img {
    display: block;
    width: 22px;
    height: 22px;
  }

  .navigation-popup-prefs-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 28px;
  }

  .navigation-popup-prefs-list li a {
    display: block;
    color: #f03c3c;
    text-decoration: none;
    font-family: "Zen Maru Gothic", sans-serif;
    font-weight: 700;
    font-size: 18px;
    line-height: 15px;
    letter-spacing: 0.36px;
  }
}
