
@media (max-width: 768px) {



  body {
    height: auto;
  }
  

  .header {
    position: relative;
    height: auto;
    padding: 20px 16px 10px;

    display: flex;
    flex-direction: column;
    align-items: center;   
    gap: 3px;         

    text-align: center;
  }

  .logo-img {
    position: static;
    width: 240px;
    margin: 15px;
    display: block;
  }

  .datetime {
    position: static;
    font-size: 20px;
    margin: 0;
  }

  .subtitle {
    position: static;
    font-size: 26px;
    margin: 0;
  }



.content {
  position: relative;
  margin-top: 20px;
  padding: 0 16px 60px; /* footerまでの余白 */
}


.panel {
  position: relative;
  top: auto;
  left: auto;
  right: auto;

  width: 100%;
  max-width: 100%;    
  margin: 0 auto 10px;   /* 上下マージン・中央揃え */

  display: flex;          /* ラインとテキスト横並び */
  align-items: flex-start;
  gap: 12px;

  /* フェードイン */
  opacity: 0;       /* 初期状態は透明 */
  animation: fadeInPanel 0.8s ease forwards;  /* フェードイン用アニメーション */

  /* 背景・角丸・パディング */
  background-color: #f0f8ff;
  border-radius: 5px;
  padding: 12px 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* フェードインアニメーションの設定 */
@keyframes fadeInPanel {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

  .panel.left,
  .panel.right {
    left: auto;
    right: auto;
  }

  /* 青ライン（mobile専用） */
  .panel-line {
    width: 20px;
    min-height: 180px;
    height: auto;
    margin-right: 14px;

    /* 上にずらす */
    position: relative;
    top: -10px;
  }

  /* テキスト */
  .panel-content {
    width: auto;
    flex: 1;
  }

  /* 路線 */
  .route {
    font-size: 22px;
    margin: 0 0 6px;
    line-height: 1.3;
  }




  .time-row {
    gap: 10px;
  }

  .time {
    font-size: 64px;
    line-height: 1;
  }

  .in {
    font-size: 13px;
    padding: 3px 6px;
    border-radius: 4px;
  }

  .next {
    font-size: 14px;
    margin-top: 4px;
  }




.footer {
  position: relative;  
  bottom: auto;      
  left: auto;          

  width: 100%;
  height: auto;

  padding: 10px 16px;
  background: #e5e5e5;

  display: flex;
  align-items: center;
  justify-content: space-between;

  transform: none;
  z-index: 1000;
}
 
  .mdl-logo,
  .more-btn {
    position: static;
  }

  .mdl-logo {
    height: 15px;
  }

  .more-btn {
  position: relative;   /* relative で移動 */
  margin-top: -170px;    /* 上にあげる */
  margin-right: 10px;
  font-size: 16px;
}

  .bus-icon {
    width: 25px;
    margin-right: 4px;
  }
}
