@charset "utf-8";
/*
Template: jstork19
Theme Name: stork19_custom
Theme URI:http://open-cage.com/stork19/
Version: 1.3.0
Author: opencage
Author URI: https://open-cage.com/
*/
/* ===================================
   うまメモ 競馬場天気バー（ティッカー流れる版）
=================================== */

/* 全体のコンテナ：縦幅をギュッとスリムに */
.umamemo-weather-wrap {
  width: 100%;
  overflow: hidden;
  background: #fffdf8;
  border-top: 2px solid #f6c453;
  border-bottom: 2px solid #f6c453;
  padding: 6px 0; /* 縦幅を大幅に削減 */
  display: flex;
}

/* アニメーションを適用する本体 */
.umamemo-weather-ticker {
  display: flex;
  width: max-content;
}

/* 競馬場データのグループ（HTML側で2セット並べる前提） */
.umamemo-weather-group {
  display: flex;
  align-items: center;
  padding-right: 50px; /* ループのつなぎ目の余白 */
  animation: umamemoTicker 30s linear infinite; /* 30秒で1周（速さはここを調整） */
}

/* ホバー時に動きを止める（親切設計） */
.umamemo-weather-wrap:hover .umamemo-weather-group {
  animation-play-state: paused;
}

/* 各競馬場のスタイル：カードから「1行のパーツ」へ変更 */
.umamemo-weather-card {
  display: inline-flex;
  align-items: center;
  background: transparent; /* 背景を透明にしてスッキリ */
  border: none; /* 枠線を削除 */
  box-shadow: none; /* 影を削除 */
  padding: 0;
  margin-right: 35px; /* 各競馬場ごとの間隔 */
  width: auto; /* 幅を自動に */
}

/* ホバー時の浮き上がりも不要なのでリセット */
.umamemo-weather-card:hover {
  transform: none;
  box-shadow: none;
}

/* コース名、アイコン、気温、天気を横一列に */
.course-name {
  font-weight: 700;
  font-size: 14px;
  color: #333;
  margin: 0 6px 0 0; /* 右側にだけ隙間をあける */
}

.umamemo-weather-card img {
  width: 24px;  /* アイコンを小さく */
  height: 24px;
  margin: 0 6px 0 0;
  display: inline-block;
  vertical-fit: middle;
}

.temp {
  font-size: 14px; /* 文字サイズを統一 */
  font-weight: bold;
  color: #ff7b00;
  margin: 0 6px 0 0;
}

.desc {
  font-size: 12px;
  color: #666;
  margin: 0;
}

/* 左へ滑らかにスライドさせる無限ループアニメーション */
@keyframes umamemoTicker {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-100%, 0, 0);
  }
}

/* =========================
   スマホ最適化（流れる速度だけ少し調整）
========================= */
@media (max-width: 768px) {
  .umamemo-weather-group {
    animation-duration: 20s; /* スマホは画面が狭いので少し早めに流す */
  }
  .umamemo-weather-card {
    margin-right: 25px; /* 間隔を少し詰める */
  }
}