    /* ===========================================
       モバイルベース（〜599px）- 現状維持
       =========================================== */
    .app-container {
      max-width: 420px;
      margin: 0 auto;
      background: #F5F5F5;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
      position: relative;
    }

    /* [MOBILE] サイドバー非表示 */
    .sidebar {
      display: none;
    }

    /* ヘッダー */
    .header {
      background: linear-gradient(135deg, #1565C0 0%, #1976D2 100%);
      color: white;
      padding: 16px;
      display: flex;
      align-items: center;
      gap: 12px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

    .header h1 {
      font-size: 18px;
      font-weight: 600;
    }

    .back-btn {
      background: rgba(255, 255, 255, 0.2);
      border: none;
      border-radius: 50%;
      width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      color: white;
    }

    /* [MOBILE/TABLET] メインエリア: flexboxで下部ナビを最下部に配置 */
    .main-area {
      display: flex;
      flex-direction: column;
      height: 100vh;
      flex: 1;
      overflow: hidden;
    }

    /* メインコンテンツ */
    .main-content {
      flex: 1;
      overflow-y: auto;
      display: flex;
      flex-direction: column;
    }

    .screen {
      flex: 1;
      padding: 20px 16px;
      display: none;
      flex-direction: column;
    }

    .screen.active {
      display: flex;
    }

    /* ホーム画面: モバイルベース */
    .home-layout-wrapper {
      display: flex;
      flex-direction: column;
      gap: 16px;
      flex: 1;
    }

    .home-left-column {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    .home-right-column {
      display: flex;
      flex-direction: column;
      gap: 16px;
    }

    /* 同意画面 */
    .consent-screen {
      justify-content: center;
      align-items: center;
      text-align: center;
      padding: 40px 24px;
      background: linear-gradient(180deg, #1565C0 0%, #0D47A1 100%);
      min-height: 100vh;
    }

    .consent-logo {
      width: 90px;
      height: 90px;
      background: white;
      border-radius: 20px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 24px;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    }

    .consent-title {
      color: white;
      font-size: 22px;
      font-weight: 700;
      margin-bottom: 8px;
    }

    .consent-subtitle {
      color: rgba(255, 255, 255, 0.9);
      font-size: 15px;
      margin-bottom: 6px;
    }

    .consent-version {
      color: rgba(255, 255, 255, 0.6);
      font-size: 12px;
      margin-bottom: 32px;
    }

    .consent-box {
      background: white;
      border-radius: 16px;
      padding: 24px 20px;
      margin-bottom: 20px;
      text-align: left;
    }

    .consent-text {
      font-size: 15px;
      color: #333;
      line-height: 1.7;
    }

    .consent-note {
      background: rgba(255, 255, 255, 0.1);
      border-radius: 12px;
      padding: 14px;
      margin-bottom: 24px;
      text-align: left;
    }

    .consent-note p {
      font-size: 11px;
      color: rgba(255, 255, 255, 0.8);
      line-height: 1.6;
    }

    .consent-btn {
      width: 100%;
      padding: 18px;
      border-radius: 14px;
      border: none;
      background: white;
      color: #1565C0;
      font-size: 17px;
      font-weight: 700;
      cursor: pointer;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    }

    /* カード */
    .card {
      background: white;
      border-radius: 16px;
      padding: 20px;
      margin-bottom: 16px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    .card-label {
      font-size: 13px;
      color: #666;
      margin-bottom: 6px;
    }

    .card-value {
      font-size: 28px;
      font-weight: 700;
      color: #1565C0;
    }

    .card-value span {
      font-size: 16px;
      font-weight: 400;
    }

    /* 次の運行カード - ナビ強調版 */
    .next-trip-card {
      background: white;
      border-radius: 20px;
      overflow: hidden;
      margin-bottom: 16px;
      box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
      min-height: 280px;
      display: flex;
      flex-direction: column;
    }

    .next-trip-header {
      background: linear-gradient(135deg, #1565C0 0%, #1976D2 100%);
      color: white;
      padding: 20px;
      cursor: pointer;
      flex-shrink: 0;
    }

    .next-trip-label {
      font-size: 12px;
      opacity: 0.8;
      margin-bottom: 8px;
    }

    .next-trip-time {
      font-size: 32px;
      font-weight: 700;
      margin-bottom: 4px;
    }

    .next-trip-user {
      font-size: 18px;
      font-weight: 600;
      margin-bottom: 12px;
    }

    .next-trip-route {
      display: flex;
      align-items: center;
      gap: 10px;
      background: rgba(255, 255, 255, 0.15);
      border-radius: 10px;
      padding: 12px;
    }

    .next-trip-badge {
      background: rgba(255, 255, 255, 0.25);
      padding: 4px 10px;
      border-radius: 6px;
      font-size: 12px;
      font-weight: 600;
    }

    .next-trip-route-text {
      font-size: 14px;
    }

    /* ナビ開始エリア - 強調表示 */
    .next-trip-navi-area {
      background: linear-gradient(135deg, #00796B 0%, #009688 100%);
      padding: 16px 20px;
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    .next-trip-navi-label {
      font-size: 11px;
      color: rgba(255, 255, 255, 0.8);
      margin-bottom: 10px;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .next-trip-navi-dest {
      font-size: 16px;
      font-weight: 700;
      color: white;
      margin-bottom: 12px;
    }

    .next-trip-navi-btns {
      display: flex;
      gap: 10px;
    }

    .next-trip-navi-btn {
      flex: 1;
      padding: 14px;
      border-radius: 12px;
      border: none;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }

    .next-trip-navi-btn.google {
      background: white;
      color: #00796B;
    }

    .next-trip-navi-btn.apple {
      background: rgba(255, 255, 255, 0.2);
      color: white;
      border: 1px solid rgba(255, 255, 255, 0.4);
    }

    /* 大きなボタン */
    .big-btn {
      width: 100%;
      padding: 22px;
      border-radius: 16px;
      border: none;
      font-size: 18px;
      font-weight: 700;
      cursor: pointer;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 6px;
    }

    .big-btn.primary {
      background: linear-gradient(135deg, #1565C0 0%, #1976D2 100%);
      color: white;
      box-shadow: 0 4px 16px rgba(21, 101, 192, 0.35);
    }

    .big-btn.success {
      background: linear-gradient(135deg, #2E7D32 0%, #43A047 100%);
      color: white;
      box-shadow: 0 4px 16px rgba(46, 125, 50, 0.35);
    }

    .big-btn.danger {
      background: linear-gradient(135deg, #C62828 0%, #D32F2F 100%);
      color: white;
      box-shadow: 0 4px 16px rgba(198, 40, 40, 0.35);
    }

    .big-btn.secondary {
      background: white;
      color: #1565C0;
      border: 2px solid #1565C0;
      box-shadow: none;
    }

    .big-btn.navi {
      background: linear-gradient(135deg, #00796B 0%, #009688 100%);
      color: white;
      box-shadow: 0 4px 16px rgba(0, 121, 107, 0.35);
    }

    .big-btn-icon {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .big-btn-hint {
      font-size: 12px;
      font-weight: 400;
      opacity: 0.9;
    }

    .big-btn:active {
      transform: scale(0.98);
    }

    /* 運行リスト - ナビアイコン追加 */
    .trip-list-item {
      background: white;
      border-radius: 16px;
      padding: 16px;
      margin-bottom: 12px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
      display: flex;
      align-items: center;
      gap: 12px;
      border: none;
      width: 100%;
      text-align: left;
    }

    .trip-list-item:active {
      background: #F5F5F5;
    }

    .trip-time {
      font-size: 18px;
      font-weight: 700;
      color: #1565C0;
      min-width: 55px;
    }

    .trip-info {
      flex: 1;
      cursor: pointer;
    }

    .trip-user {
      font-size: 16px;
      font-weight: 600;
      color: #333;
      margin-bottom: 2px;
    }

    .trip-route {
      font-size: 13px;
      color: #666;
    }

    .trip-navi-btn {
      background: linear-gradient(135deg, #00796B 0%, #009688 100%);
      color: white;
      border: none;
      border-radius: 10px;
      padding: 10px 14px;
      font-size: 13px;
      font-weight: 600;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 6px;
      flex-shrink: 0;
    }

    .trip-status {
      padding: 5px 10px;
      border-radius: 16px;
      font-size: 12px;
      font-weight: 600;
      flex-shrink: 0;
    }

    .trip-status.pending {
      background: #FFF3E0;
      color: #E65100;
    }

    .trip-status.active {
      background: #E8F5E9;
      color: #2E7D32;
    }

    .trip-status.completed {
      background: #E0E0E0;
      color: #666;
    }

    .trip-status.cancelled {
      background: #FFEBEE;
      color: #C62828;
    }

    /* 運行詳細 - ナビステータス固定バー */
    .navi-status-bar {
      background: linear-gradient(135deg, #00796B 0%, #009688 100%);
      color: white;
      padding: 16px 20px;
      margin: -20px -16px 16px -16px;
      display: flex;
      align-items: center;
      justify-content: space-between;
    }

    .navi-status-bar.inactive {
      background: #78909C;
    }

    .navi-status-left {
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .navi-status-icon {
      width: 44px;
      height: 44px;
      background: rgba(255, 255, 255, 0.2);
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .navi-status-info {
      display: flex;
      flex-direction: column;
    }

    .navi-status-label {
      font-size: 11px;
      opacity: 0.8;
    }

    .navi-status-dest {
      font-size: 16px;
      font-weight: 700;
    }

    .navi-status-badge {
      background: rgba(255, 255, 255, 0.25);
      padding: 6px 12px;
      border-radius: 20px;
      font-size: 12px;
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .navi-status-badge.active {
      background: #FFC107;
      color: #333;
    }

    .navi-pulse {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: currentColor;
      animation: pulse 1.5s infinite;
    }

    @keyframes pulse {
      0% {
        opacity: 1;
      }

      50% {
        opacity: 0.4;
      }

      100% {
        opacity: 1;
      }
    }

    /* 詳細ヘッダー */
    .detail-header {
      background: white;
      border-radius: 16px;
      padding: 20px;
      margin-bottom: 16px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    .detail-user {
      font-size: 24px;
      font-weight: 700;
      color: #333;
      margin-bottom: 10px;
    }

    .detail-badge {
      display: inline-block;
      background: #E3F2FD;
      color: #1565C0;
      padding: 6px 14px;
      border-radius: 8px;
      font-size: 14px;
      font-weight: 600;
      margin-bottom: 14px;
    }

    .detail-time-card {
      background: #F5F5F5;
      border-radius: 10px;
      padding: 14px;
    }

    .detail-time-label {
      font-size: 12px;
      color: #666;
      margin-bottom: 4px;
    }

    .detail-time-value {
      font-size: 22px;
      font-weight: 700;
      color: #1565C0;
    }

    /* 相談記録を保存済み表示 */
    .consultation-status-card {
      background: #FFF8E1;
      border: 2px solid #FFC107;
      border-radius: 12px;
      padding: 14px 16px;
      margin-bottom: 16px;
      display: none;
    }

    .consultation-status-card.show {
      display: block;
    }

    .consultation-status-header {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-bottom: 8px;
    }

    .consultation-status-icon {
      width: 28px;
      height: 28px;
      background: #FFC107;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .consultation-status-title {
      font-size: 14px;
      font-weight: 600;
      color: #E65100;
    }

    .consultation-status-body {
      padding-left: 38px;
    }

    .consultation-status-time {
      font-size: 12px;
      color: #888;
      margin-bottom: 4px;
    }

    .consultation-status-summary {
      font-size: 13px;
      color: #333;
      line-height: 1.5;
    }

    /* 相談ボタン */
    .consult-btn {
      width: 100%;
      padding: 16px 20px;
      border-radius: 14px;
      border: none;
      background: linear-gradient(135deg, #FF9800 0%, #FFA726 100%);
      color: white;
      font-size: 15px;
      font-weight: 700;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      box-shadow: 0 4px 12px rgba(255, 152, 0, 0.3);
      margin-bottom: 16px;
    }

    .consult-btn:active {
      transform: scale(0.98);
    }

    /* ルート順序表示 */
    .route-order-card {
      background: white;
      border-radius: 16px;
      padding: 16px;
      margin-bottom: 16px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    .route-order-title {
      font-size: 13px;
      color: #666;
      margin-bottom: 14px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .route-step {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      padding: 12px;
      border-radius: 10px;
      margin-bottom: 8px;
      background: #F5F5F5;
    }

    .route-step:last-child {
      margin-bottom: 0;
    }

    .route-step.current {
      background: #E3F2FD;
      border: 2px solid #1565C0;
    }

    .route-step.completed {
      background: #E8F5E9;
      opacity: 0.7;
    }

    .route-step-num {
      width: 28px;
      height: 28px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 13px;
      font-weight: 700;
      flex-shrink: 0;
    }

    .route-step-num.pending {
      background: #E0E0E0;
      color: #666;
    }

    .route-step-num.current {
      background: #1565C0;
      color: white;
    }

    .route-step-num.completed {
      background: #2E7D32;
      color: white;
    }

    .route-step-info {
      flex: 1;
    }

    .route-step-label {
      font-size: 11px;
      color: #888;
      margin-bottom: 2px;
    }

    .route-step-place {
      font-size: 15px;
      font-weight: 600;
      color: #333;
      margin-bottom: 2px;
    }

    .route-step-addr {
      font-size: 12px;
      color: #666;
    }

    .route-step-navi-btn {
      background: linear-gradient(135deg, #00796B 0%, #009688 100%);
      color: white;
      border: none;
      border-radius: 8px;
      padding: 8px 12px;
      font-size: 12px;
      font-weight: 600;
      cursor: pointer;
      display: flex;
      align-items: center;
      gap: 4px;
      flex-shrink: 0;
    }

    /* ナビ開始カード（詳細画面用） */
    .navi-start-card {
      background: linear-gradient(135deg, #00796B 0%, #009688 100%);
      border-radius: 16px;
      padding: 20px;
      margin-bottom: 16px;
      color: white;
    }

    .navi-start-header {
      display: flex;
      align-items: center;
      gap: 12px;
      margin-bottom: 14px;
    }

    .navi-start-icon {
      width: 48px;
      height: 48px;
      background: rgba(255, 255, 255, 0.2);
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .navi-start-title {
      font-size: 16px;
      font-weight: 700;
    }

    .navi-start-dest {
      background: rgba(255, 255, 255, 0.1);
      border-radius: 10px;
      padding: 14px;
      margin-bottom: 14px;
    }

    .navi-start-dest-label {
      font-size: 11px;
      opacity: 0.8;
      margin-bottom: 4px;
    }

    .navi-start-dest-name {
      font-size: 18px;
      font-weight: 700;
      margin-bottom: 4px;
    }

    .navi-start-dest-addr {
      font-size: 13px;
      opacity: 0.9;
    }

    .navi-start-btns {
      display: flex;
      gap: 10px;
    }

    .navi-start-btn {
      flex: 1;
      padding: 14px;
      border-radius: 12px;
      border: none;
      font-size: 14px;
      font-weight: 600;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
    }

    .navi-start-btn.google {
      background: white;
      color: #00796B;
    }

    .navi-start-btn.apple {
      background: rgba(255, 255, 255, 0.2);
      color: white;
      border: 1px solid rgba(255, 255, 255, 0.4);
    }

    /* ボタングループ */
    .btn-group {
      display: flex;
      flex-direction: column;
      gap: 12px;
      margin-top: auto;
    }

    /* 画面フッターノート */
    .screen-footer-note {
      text-align: center;
      font-size: 10px;
      color: #888;
      padding: 14px;
      line-height: 1.6;
      margin-top: auto;
    }

    /* モーダル */
    .modal {
      display: none;
    }

    .modal.open {
      display: block;
    }

    .modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.5);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 1000;
      padding: 20px;
    }

    .modal.open .modal-overlay {
      display: flex;
    }

    .modal-overlay.open {
      display: flex;
    }

    .modal-content {
      background: white;
      border-radius: 20px;
      padding: 28px 24px;
      max-width: 360px;
      width: 100%;
      text-align: center;
    }

    .modal-icon {
      width: 64px;
      height: 64px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 16px;
    }

    .modal-icon.success {
      background: #E8F5E9;
    }

    .modal-icon.danger {
      background: #FFEBEE;
    }

    .modal-icon.navi {
      background: #E0F2F1;
    }

    .modal-title {
      font-size: 18px;
      font-weight: 700;
      color: #333;
      margin-bottom: 12px;
    }

    .modal-message {
      font-size: 14px;
      color: #666;
      line-height: 1.7;
      margin-bottom: 24px;
    }

    .modal-btns {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .modal-btn {
      width: 100%;
      padding: 16px;
      border-radius: 12px;
      border: none;
      font-size: 16px;
      font-weight: 600;
      cursor: pointer;
    }

    .modal-btn.primary {
      background: #1565C0;
      color: white;
    }

    .modal-btn.success {
      background: #2E7D32;
      color: white;
    }

    .modal-btn.danger {
      background: #C62828;
      color: white;
    }

    .modal-btn.secondary {
      background: #F5F5F5;
      color: #666;
    }

    /* ナビモーダル */
    .navi-modal-content {
      background: white;
      border-radius: 20px;
      padding: 24px;
      max-width: 340px;
      width: 100%;
    }

    .navi-modal-header {
      text-align: center;
      margin-bottom: 20px;
    }

    .navi-modal-icon {
      width: 60px;
      height: 60px;
      background: linear-gradient(135deg, #00796B 0%, #009688 100%);
      border-radius: 16px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 12px;
      color: white;
    }

    .navi-modal-title {
      font-size: 17px;
      font-weight: 700;
      color: #333;
      margin-bottom: 4px;
    }

    .navi-modal-dest {
      font-size: 14px;
      color: #666;
      margin-top: 4px;
    }

    .navi-modal-btns {
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin-bottom: 12px;
    }

    .navi-modal-btn {
      width: 100%;
      padding: 16px;
      border-radius: 12px;
      border: none;
      font-size: 16px;
      font-weight: 600;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
    }

    .navi-modal-btn.google {
      background: #00796B;
      color: white;
    }

    .navi-modal-btn.apple {
      background: #333;
      color: white;
    }

    .navi-modal-note {
      font-size: 10px;
      color: #888;
      line-height: 1.5;
    }

    /* 相談BottomSheetモーダル */
    .bottomsheet-overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: rgba(0, 0, 0, 0.5);
      z-index: 1000;
      display: none;
      align-items: flex-end;
      justify-content: center;
    }

    .bottomsheet-overlay.open {
      display: flex;
    }

    .bottomsheet-content {
      background: white;
      border-radius: 24px 24px 0 0;
      width: 100%;
      max-width: 420px;
      max-height: 90vh;
      overflow-y: auto;
      padding: 0;
      animation: slideUp 0.3s ease;
    }

    @keyframes slideUp {
      from {
        transform: translateY(100%);
      }

      to {
        transform: translateY(0);
      }
    }

    .bottomsheet-header {
      background: linear-gradient(135deg, #FF9800 0%, #FFA726 100%);
      color: white;
      padding: 20px;
      position: sticky;
      top: 0;
      z-index: 10;
    }

    .bottomsheet-handle {
      width: 40px;
      height: 4px;
      background: rgba(255, 255, 255, 0.4);
      border-radius: 2px;
      margin: 0 auto 16px;
    }

    .bottomsheet-title {
      font-size: 18px;
      font-weight: 700;
      margin-bottom: 6px;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .bottomsheet-subtitle {
      font-size: 13px;
      opacity: 0.9;
    }

    .bottomsheet-body {
      padding: 20px;
    }

    .bottomsheet-warning {
      background: #FFF3E0;
      border: 2px solid #FF9800;
      border-radius: 12px;
      padding: 14px;
      margin-bottom: 20px;
    }

    .bottomsheet-warning p {
      font-size: 12px;
      color: #E65100;
      line-height: 1.6;
      display: flex;
      align-items: flex-start;
      gap: 8px;
    }

    .bottomsheet-warning svg {
      flex-shrink: 0;
      margin-top: 2px;
    }

    .form-group {
      margin-bottom: 20px;
    }

    .form-label {
      font-size: 14px;
      font-weight: 600;
      color: #333;
      margin-bottom: 10px;
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .form-label .required {
      font-size: 11px;
      color: #C62828;
      font-weight: 400;
    }

    .form-label .optional {
      font-size: 11px;
      color: #888;
      font-weight: 400;
    }

    .form-options {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
    }

    .form-option {
      padding: 12px 18px;
      border-radius: 10px;
      border: 2px solid #E0E0E0;
      background: white;
      font-size: 14px;
      font-weight: 500;
      color: #333;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .form-option:hover {
      border-color: #FF9800;
    }

    .form-option.selected {
      border-color: #FF9800;
      background: #FFF3E0;
      color: #E65100;
    }

    .form-input {
      width: 100%;
      padding: 14px;
      border-radius: 10px;
      border: 2px solid #E0E0E0;
      font-size: 15px;
      font-family: inherit;
      transition: border-color 0.2s ease;
    }

    .form-input:focus {
      outline: none;
      border-color: #FF9800;
    }

    .form-textarea {
      width: 100%;
      height: 100px;
      padding: 14px;
      border-radius: 10px;
      border: 2px solid #E0E0E0;
      font-size: 15px;
      font-family: inherit;
      resize: none;
      transition: border-color 0.2s ease;
    }

    .form-textarea:focus {
      outline: none;
      border-color: #FF9800;
    }

    .form-checkboxes {
      display: flex;
      flex-direction: column;
      gap: 10px;
    }

    .form-checkbox {
      display: flex;
      align-items: center;
      gap: 12px;
      padding: 12px 14px;
      border-radius: 10px;
      border: 2px solid #E0E0E0;
      background: white;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .form-checkbox:hover {
      border-color: #FF9800;
    }

    .form-checkbox.checked {
      border-color: #FF9800;
      background: #FFF3E0;
    }

    .form-checkbox-box {
      width: 22px;
      height: 22px;
      border-radius: 6px;
      border: 2px solid #CCC;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
      transition: all 0.2s ease;
    }

    .form-checkbox.checked .form-checkbox-box {
      background: #FF9800;
      border-color: #FF9800;
    }

    .form-checkbox-label {
      font-size: 14px;
      color: #333;
    }

    .bottomsheet-footer {
      padding: 20px;
      padding-top: 0;
    }

    .bottomsheet-submit-btn {
      width: 100%;
      padding: 18px;
      border-radius: 14px;
      border: none;
      background: linear-gradient(135deg, #FF9800 0%, #FFA726 100%);
      color: white;
      font-size: 17px;
      font-weight: 700;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      box-shadow: 0 4px 16px rgba(255, 152, 0, 0.35);
      margin-bottom: 12px;
    }

    .bottomsheet-submit-btn:active {
      transform: scale(0.98);
    }

    .bottomsheet-cancel-btn {
      width: 100%;
      padding: 14px;
      border-radius: 12px;
      border: none;
      background: #F5F5F5;
      color: #666;
      font-size: 15px;
      font-weight: 600;
      cursor: pointer;
    }

    /* 運行終了画面 */
    .complete-screen {
      justify-content: center;
      align-items: center;
      text-align: center;
    }

    .complete-icon {
      width: 90px;
      height: 90px;
      border-radius: 50%;
      background: #E8F5E9;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 20px;
    }

    .complete-title {
      font-size: 22px;
      font-weight: 700;
      color: #2E7D32;
      margin-bottom: 20px;
    }

    .complete-card {
      background: white;
      border-radius: 16px;
      padding: 20px;
      margin-bottom: 16px;
      width: 100%;
      text-align: left;
    }

    .complete-row {
      display: flex;
      justify-content: space-between;
      padding: 10px 0;
      border-bottom: 1px solid #EEE;
    }

    .complete-row:last-child {
      border-bottom: none;
    }

    .complete-row-label {
      font-size: 13px;
      color: #888;
    }

    .complete-row-value {
      font-size: 15px;
      font-weight: 500;
      color: #333;
    }

    .record-summary {
      background: #F5F5F5;
      border-radius: 10px;
      padding: 14px;
      margin-top: 14px;
    }

    .record-summary-title {
      font-size: 12px;
      color: #666;
      margin-bottom: 10px;
    }

    .record-item {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 6px 0;
    }

    .record-item-icon {
      width: 22px;
      height: 22px;
      border-radius: 50%;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 11px;
    }

    .record-item-icon.start {
      background: #E3F2FD;
      color: #1565C0;
    }

    .record-item-icon.end {
      background: #E8F5E9;
      color: #2E7D32;
    }

    .record-item-text {
      flex: 1;
      font-size: 13px;
      color: #333;
    }

    .record-item-time {
      font-size: 13px;
      font-weight: 600;
      color: #1565C0;
    }

    .complete-note {
      background: #E8F5E9;
      border-radius: 10px;
      padding: 14px;
      font-size: 13px;
      color: #2E7D32;
      margin-bottom: 16px;
      width: 100%;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    /* ナビゲーション */
    .navbar {
      display: flex;
      justify-content: space-around;
      background: white;
      border-top: 1px solid #E0E0E0;
      padding: 10px 0;
      flex-shrink: 0;
      z-index: 500;
    }

    .nav-item {
      background: none;
      border: none;
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 4px;
      padding: 6px 16px;
      cursor: pointer;
      color: #757575;
    }

    .nav-item.active {
      color: #1565C0;
    }

    .nav-item span {
      font-size: 11px;
    }

    /* アクティブ運行バナー */
    .active-trip-banner {
      background: linear-gradient(135deg, #00796B 0%, #009688 100%);
      color: white;
      padding: 12px 16px;
      display: none;
      align-items: center;
      justify-content: space-between;
      cursor: pointer;
    }

    .active-trip-banner.show {
      display: flex;
    }

    .active-trip-info {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .active-pulse {
      width: 10px;
      height: 10px;
      border-radius: 50%;
      background: #FFC107;
      animation: pulse 1.5s infinite;
    }

    .active-trip-text {
      font-size: 14px;
      font-weight: 600;
    }


    /* 立ち寄り・キャンセル・メモ画面 */
    .stopover-info,
    .cancel-warning {
      border-radius: 12px;
      padding: 14px;
      margin-bottom: 16px;
      font-size: 13px;
      line-height: 1.6;
    }

    .stopover-info {
      background: #E3F2FD;
      color: #1565C0;
    }

    .cancel-warning {
      background: #FFEBEE;
      border: 2px solid #C62828;
      color: #C62828;
    }

    .stopover-options,
    .cancel-options {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-bottom: 16px;
    }

    .stopover-option,
    .cancel-option {
      padding: 14px 20px;
      border-radius: 10px;
      border: 2px solid #E0E0E0;
      background: white;
      font-size: 15px;
      font-weight: 500;
      color: #333;
      cursor: pointer;
    }

    .stopover-option.selected {
      border-color: #1565C0;
      background: #E3F2FD;
      color: #1565C0;
    }

    .cancel-option {
      width: 100%;
      text-align: left;
      display: flex;
      align-items: center;
      gap: 12px;
    }

    .cancel-option.selected {
      border-color: #C62828;
      background: #FFEBEE;
      color: #C62828;
    }

    .cancel-radio {
      width: 20px;
      height: 20px;
      border-radius: 50%;
      border: 2px solid #CCC;
    }

    .cancel-option.selected .cancel-radio {
      border-color: #C62828;
      background: #C62828;
    }

    .memo-textarea {
      width: 100%;
      height: 120px;
      padding: 14px;
      border-radius: 10px;
      border: 2px solid #E0E0E0;
      font-size: 15px;
      font-family: inherit;
      resize: none;
      margin-bottom: 12px;
    }

    .memo-hint {
      font-size: 12px;
      color: #888;
      margin-bottom: 20px;
    }

    /* アプリ設定 */
    .settings-group {
      background: white;
      border-radius: 14px;
      overflow: hidden;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
      margin-bottom: 16px;
    }

    .settings-item {
      width: 100%;
      background: none;
      border: none;
      border-bottom: 1px solid #EEE;
      padding: 16px;
      cursor: pointer;
      text-align: left;
      display: flex;
      justify-content: space-between;
      align-items: center;
      font-size: 15px;
      color: #333;
    }

    .settings-item:last-child {
      border-bottom: none;
    }

    .settings-item.danger {
      color: #C62828;
    }

    /* ===============================================
       [ADD] 設定配下の追加画面用スタイル
       =============================================== */

    /* アプリ情報カード */
    .settings-info-card {
      background: linear-gradient(135deg, #1565C0 0%, #1976D2 100%);
      border-radius: 16px;
      padding: 32px 24px;
      text-align: center;
      margin-bottom: 20px;
      color: white;
    }

    .settings-info-logo {
      width: 80px;
      height: 80px;
      background: white;
      border-radius: 20px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin: 0 auto 16px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .settings-info-title {
      font-size: 18px;
      font-weight: 700;
      margin-bottom: 4px;
    }

    .settings-info-subtitle {
      font-size: 14px;
      opacity: 0.85;
    }

    /* 詳細情報グループ */
    .settings-detail-group {
      background: white;
      border-radius: 14px;
      overflow: hidden;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
      margin-bottom: 20px;
    }

    .settings-detail-item {
      padding: 16px;
      border-bottom: 1px solid #EEE;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .settings-detail-item:last-child {
      border-bottom: none;
    }

    .settings-detail-label {
      font-size: 14px;
      color: #666;
    }

    .settings-detail-value {
      font-size: 14px;
      color: #333;
      font-weight: 500;
      text-align: right;
    }

    /* 注意ボックス */
    .settings-notice-box {
      background: #FFF8E1;
      border: 1px solid #FFE082;
      border-radius: 12px;
      padding: 16px;
      display: flex;
      gap: 12px;
      align-items: flex-start;
    }

    .settings-notice-box.info {
      background: #E3F2FD;
      border-color: #90CAF9;
    }

    .settings-notice-icon {
      color: #F9A825;
      flex-shrink: 0;
      margin-top: 2px;
    }

    .settings-notice-box.info .settings-notice-icon {
      color: #1565C0;
    }

    .settings-notice-text {
      font-size: 13px;
      color: #5D4037;
      line-height: 1.6;
    }

    .settings-notice-box.info .settings-notice-text {
      color: #1565C0;
    }

    /* セクションタイトル */
    .settings-section-title {
      font-size: 13px;
      color: #666;
      margin-bottom: 12px;
      padding-left: 4px;
    }

    /* トグルグループ */
    .settings-toggle-group {
      background: white;
      border-radius: 14px;
      overflow: hidden;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
      margin-bottom: 20px;
    }

    .settings-toggle-item {
      padding: 16px;
      border-bottom: 1px solid #EEE;
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 16px;
    }

    .settings-toggle-item:last-child {
      border-bottom: none;
    }

    .settings-toggle-info {
      flex: 1;
    }

    .settings-toggle-label {
      display: block;
      font-size: 15px;
      color: #333;
      font-weight: 500;
      margin-bottom: 4px;
    }

    .settings-toggle-desc {
      display: block;
      font-size: 12px;
      color: #888;
    }

    .settings-toggle {
      width: 52px;
      height: 30px;
      background: #E0E0E0;
      border-radius: 15px;
      cursor: pointer;
      position: relative;
      transition: background 0.2s ease;
      flex-shrink: 0;
    }

    .settings-toggle-slider {
      position: absolute;
      top: 3px;
      left: 3px;
      width: 24px;
      height: 24px;
      background: white;
      border-radius: 50%;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
      transition: transform 0.2s ease;
    }

    .settings-toggle-slider.active {
      transform: translateX(22px);
    }

    /* FAQグループ */
    .settings-faq-group {
      display: flex;
      flex-direction: column;
      gap: 12px;
      margin-bottom: 20px;
    }

    .settings-faq-item {
      background: white;
      border-radius: 14px;
      padding: 16px;
      box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

    .settings-faq-question {
      font-size: 15px;
      font-weight: 600;
      color: #333;
      margin-bottom: 10px;
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .settings-faq-answer {
      font-size: 14px;
      color: #666;
      line-height: 1.7;
      padding-left: 28px;
    }

    /* [ADD END] 設定配下の追加画面用スタイル */

    /* トースト通知 */
    .toast {
      position: fixed;
      bottom: 100px;
      left: 50%;
      transform: translateX(-50%) translateY(100px);
      background: #333;
      color: white;
      padding: 14px 24px;
      border-radius: 12px;
      font-size: 15px;
      font-weight: 600;
      display: flex;
      align-items: center;
      gap: 10px;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
      opacity: 0;
      transition: all 0.3s ease;
      z-index: 2000;
      pointer-events: none;
    }

    .toast.show {
      transform: translateX(-50%) translateY(0);
      opacity: 1;
      pointer-events: auto;
    }

    .toast.success {
      background: #2E7D32;
    }

    .toast.orange {
      background: #FF9800;
    }

    /* ===========================================
       タブレット（600px〜1023px）
       - 基本2カラム構成
       - ボタンサイズ・間隔はモバイル基準維持
       =========================================== */
    @media (min-width: 600px) {

      /* [TABLET] app-container: max-width解除、全幅使用 */
      .app-container {
        max-width: none;
        box-shadow: none;
        background: #F5F5F5;
      }

      /* [TABLET] ヘッダー: 全幅対応 */
      .header {
        padding: 16px 24px;
      }

      .header h1 {
        font-size: 20px;
      }

      /* [TABLET] メインコンテンツ: 最大幅設定 */
      .main-content {
        max-width: 960px;
        margin: 0 auto;
        width: 100%;
      }

      /* [TABLET] スクリーン: パディング調整 */
      .screen {
        padding: 24px;
      }

      /* [TABLET] 同意画面: 中央配置維持、幅制限 */
      .consent-screen {
        padding: 60px 40px;
      }

      .consent-box,
      .consent-note,
      .consent-btn {
        max-width: 480px;
      }

      /* [TABLET] 下部ナビ: モバイルと同様に表示 */
      .navbar {
        display: flex;
        justify-content: space-around;
        max-width: 960px;
        margin: 0 auto;
        width: 100%;
        background: white;
        border-top: 1px solid #E0E0E0;
        flex-shrink: 0;
      }

      /* [TABLET] デスクトップサイドナビ表示のための準備 */
      /* 詳細画面を2カラム化 */
      #detailScreen {
        display: none;
        flex-direction: column;
      }

      #detailScreen.active {
        display: flex;
      }

      /* [TABLET] 詳細画面内部を2カラム化 */
      .detail-layout-wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        flex: 1;
      }

      /* [TABLET] 左カラム: 情報系 */
      .detail-left-column {
        display: flex;
        flex-direction: column;
        gap: 16px;
      }

      /* [TABLET] 右カラム: アクション系 */
      .detail-right-column {
        display: flex;
        flex-direction: column;
        gap: 16px;
      }

      /* [TABLET] 相談ボタンはsticky */
      .consult-btn-wrapper {
        position: sticky;
        top: 24px;
      }

      /* [TABLET] ナビステータスバーを左カラム上部に */
      .navi-status-bar {
        margin: 0;
        border-radius: 16px;
      }

      /* [TABLET] ホーム画面を2カラム化 */
      .home-layout-wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 24px;
        flex: 1;
        align-items: start;
      }

      .home-left-column {
        display: flex;
        flex-direction: column;
        gap: 16px;
      }

      .home-right-column {
        display: flex;
        flex-direction: column;
        gap: 16px;
      }

      /* [TABLET] 運行一覧画面も2カラム想定 */
      .list-layout-wrapper {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
      }

      .trip-list-item {
        margin-bottom: 0;
      }

      /* [TABLET] bottomsheetを中央モーダルに変更 */
      .bottomsheet-overlay {
        align-items: center;
      }

      .bottomsheet-content {
        border-radius: 24px;
        max-width: 520px;
        max-height: 80vh;
      }

      /* [TABLET] トーストの位置調整 */
      .toast {
        bottom: 40px;
      }

      /* [TABLET] アクティブバナーの位置調整 */
      .active-trip-banner {
        padding: 14px 24px;
      }
    }

    /* ===========================================
       デスクトップ（1024px〜）
       - サイドバー表示
       - 左サイドナビ＋右メインコンテンツ
       - 完全に横長前提のレイアウト
       =========================================== */
    @media (min-width: 1024px) {

      /* [DESKTOP] body: 背景を業務用に落ち着いた色に */
      body {
        background: #ECEFF1;
      }

      /* [DESKTOP] app-container: フル幅、横並びレイアウト */
      .app-container {
        max-width: none;
        flex-direction: row;
        box-shadow: none;
        background: transparent;
      }

      /* [DESKTOP] サイドナビ: 表示 */
      .sidebar {
        display: flex;
        flex-direction: column;
        width: 240px;
        min-width: 240px;
        background: white;
        border-right: 1px solid #E0E0E0;
        height: 100vh;
        position: sticky;
        top: 0;
      }

      .sidebar-header {
        padding: 24px;
        border-bottom: 1px solid #EEE;
      }

      .sidebar-logo {
        display: flex;
        align-items: center;
        gap: 12px;
      }

      .sidebar-logo-icon {
        width: 48px;
        height: 48px;
        background: linear-gradient(135deg, #1565C0 0%, #1976D2 100%);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
      }

      .sidebar-logo-text {
        font-size: 14px;
        font-weight: 600;
        color: #333;
        line-height: 1.4;
      }

      .sidebar-nav {
        flex: 1;
        padding: 16px 0;
      }

      .sidebar-nav-item {
        width: 100%;
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 16px 24px;
        background: none;
        border: none;
        cursor: pointer;
        color: #666;
        font-size: 15px;
        font-weight: 500;
        text-align: left;
        transition: all 0.2s ease;
      }

      .sidebar-nav-item:hover {
        background: #F5F5F5;
        color: #333;
      }

      .sidebar-nav-item.active {
        background: #E3F2FD;
        color: #1565C0;
        font-weight: 600;
        border-right: 3px solid #1565C0;
      }

      .sidebar-nav-item svg {
        flex-shrink: 0;
      }

      .sidebar-footer {
        padding: 16px 24px;
        border-top: 1px solid #EEE;
        font-size: 12px;
        color: #888;
        line-height: 1.5;
      }

      /* [DESKTOP] メインエリア */
      .main-area {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 100vh;
        height: auto;
        overflow: visible;
        background: #FAFAFA;
      }

      /* [DESKTOP] ヘッダー: 横長対応 */
      .header {
        padding: 16px 32px;
        position: sticky;
        top: 0;
        z-index: 100;
      }

      .header h1 {
        font-size: 22px;
      }

      .back-btn {
        width: 44px;
        height: 44px;
      }

      /* [DESKTOP] 下部ナビ: 完全非表示 */
      .navbar {
        display: none !important;
      }

      /* [DESKTOP] メインコンテンツ */
      .main-content {
        flex: 1;
        max-width: 1200px;
        margin: 0 auto;
        width: 100%;
        padding: 0 32px;
        padding-bottom: 0;
      }

      /* [DESKTOP] スクリーン: パディング拡大 */
      .screen {
        padding: 32px 0;
      }

      /* [DESKTOP] 同意画面: 中央配置、幅制限維持 */
      .consent-screen {
        padding: 80px 60px;
        min-height: calc(100vh - 80px);
      }

      .consent-logo {
        width: 100px;
        height: 100px;
      }

      .consent-title {
        font-size: 28px;
      }

      .consent-box,
      .consent-note,
      .consent-btn {
        max-width: 520px;
      }

      /* [DESKTOP] ホーム画面: 2カラムレイアウト */
      .home-layout-wrapper {
        display: grid;
        grid-template-columns: 1fr 400px;
        gap: 32px;
        align-items: start;
      }

      .home-left-column {
        order: 1;
      }

      .home-right-column {
        order: 2;
        position: sticky;
        top: 100px;
      }

      /* [DESKTOP] 運行カード: デスクトップ用サイズ調整 */
      .next-trip-card {
        border-radius: 20px;
      }

      .next-trip-header {
        padding: 24px;
      }

      .next-trip-time {
        font-size: 36px;
      }

      .next-trip-user {
        font-size: 20px;
      }

      .next-trip-navi-area {
        padding: 20px 24px;
      }

      .next-trip-navi-dest {
        font-size: 18px;
      }

      /* [DESKTOP] 詳細画面: 2カラム */
      .detail-layout-wrapper {
        grid-template-columns: 1fr 400px;
        gap: 32px;
        align-items: start;
      }

      .detail-right-column {
        position: sticky;
        top: 100px;
      }

      /* [DESKTOP] 詳細ヘッダー */
      .detail-header {
        padding: 24px;
      }

      .detail-user {
        font-size: 28px;
      }

      .detail-time-value {
        font-size: 26px;
      }

      /* [DESKTOP] ナビ開始カード */
      .navi-start-card {
        padding: 24px;
        border-radius: 20px;
      }

      .navi-start-icon {
        width: 56px;
        height: 56px;
      }

      .navi-start-title {
        font-size: 18px;
      }

      .navi-start-dest-name {
        font-size: 20px;
      }

      .navi-start-btn {
        padding: 18px;
        font-size: 16px;
      }

      /* [DESKTOP] ルート順序カード */
      .route-order-card {
        padding: 20px;
      }

      .route-step {
        padding: 14px;
      }

      .route-step-place {
        font-size: 16px;
      }

      /* [DESKTOP] 相談カード: sticky配置 */
      .consult-btn-wrapper {
        position: sticky;
        top: calc(100px + 200px);
        padding: 20px;
      }

      .consult-btn {
        padding: 16px 24px;
        font-size: 16px;
      }

      /* [DESKTOP] ボタングループ: 横並び可能に */
      .btn-group {
        flex-direction: row;
        gap: 16px;
      }

      .big-btn {
        padding: 20px 24px;
        font-size: 17px;
      }

      /* [DESKTOP] モーダル: 大きめに */
      .modal-content {
        max-width: 420px;
        padding: 32px 28px;
      }

      .modal-title {
        font-size: 20px;
      }

      /* [DESKTOP] bottomsheet: 中央モーダルとして */
      .bottomsheet-content {
        max-width: 560px;
        border-radius: 24px;
      }

      .bottomsheet-header {
        padding: 24px;
      }

      .bottomsheet-body {
        padding: 24px;
      }

      /* [DESKTOP] 運行終了画面: 幅制限 */
      .complete-screen {
        max-width: 600px;
        margin: 0 auto;
      }

      .complete-card {
        padding: 24px;
      }

      /* [DESKTOP] アプリ設定画面 */
      .settings-group {
        max-width: 600px;
      }

      .settings-item {
        padding: 18px 20px;
        font-size: 16px;
      }

      /* [DESKTOP] トースト位置 */
      .toast {
        bottom: 60px;
        padding: 16px 28px;
        font-size: 16px;
      }

      /* [DESKTOP] アクティブバナー */
      .active-trip-banner {
        padding: 16px 32px;
      }

      .active-trip-text {
        font-size: 15px;
      }

      /* [DESKTOP] フッターノート */
      .screen-footer-note {
        padding: 16px;
        font-size: 11px;
      }

      /* [DESKTOP] 運行一覧: 3カラム */
      .list-layout-wrapper {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
      }
    }

    /* ===========================================
       大画面デスクトップ（1440px〜）
       =========================================== */
    @media (min-width: 1440px) {
      .sidebar {
        width: 280px;
        min-width: 280px;
      }

      .main-content {
        max-width: 1400px;
      }

      .home-layout-wrapper {
        grid-template-columns: 1fr 480px;
        gap: 48px;
      }

      .detail-layout-wrapper {
        grid-template-columns: 1fr 500px;
        gap: 48px;
      }

      .list-layout-wrapper {
        grid-template-columns: repeat(4, 1fr);
        gap: 24px;
      }
    }